Skip to content

feat: add option to save from the NLP input with Enter - #2404

Open
k4zcho wants to merge 1 commit into
callumalpass:mainfrom
k4zcho:feat/nlp-enter-to-submit
Open

k4zcho wants to merge 1 commit into
callumalpass:mainfrom
k4zcho:feat/nlp-enter-to-submit

Conversation

@k4zcho

@k4zcho k4zcho commented Oct 15, 2026

Copy link
Copy Markdown

Adds an opt-in Enter saves task setting (Settings → Features → Natural language processing), off by default.

When enabled, in the task creation modal's natural language input:

  • Enter saves the task
  • Shift+Enter inserts a newline
  • Ctrl/Cmd+Enter still saves
  • Enter still accepts an open autocomplete suggestion

Motivation: for single-line quick capture, Enter inserting a newline is awkward, and Cmd+Enter can collide with global launcher hotkeys.

Changes: new nlpEnterToSubmit setting (type, default, toggle, English string; i18n manifest/state synced), handling in TaskCreationModal for both the CodeMirror editor and the textarea fallback, a small isCompletionOpen getter on EmbeddableMarkdownEditor, docs, and an unreleased.md entry.

Testing: added four unit tests (default newline, Enter saves when enabled, Shift+Enter stays a newline, autocomplete wins); existing modal tests pass, and lint and the production build pass. I also built it and tried it by hand in a real Obsidian vault: Enter saves, Shift+Enter inserts a newline, Cmd+Enter still saves, Enter accepts autocomplete suggestions, and turning the setting off restores the old behavior.

🤖 Generated with Claude Code

Add an opt-in "Enter saves task" setting (off by default). When enabled,
Enter in the task creation modal's natural language input saves the task
and Shift+Enter inserts a newline. Ctrl/Cmd+Enter keeps working, and Enter
still accepts an open autocomplete suggestion.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant