Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Motivation: for single-line quick capture, Enter inserting a newline is awkward, and Cmd+Enter can collide with global launcher hotkeys.
Changes: new
nlpEnterToSubmitsetting (type, default, toggle, English string; i18n manifest/state synced), handling inTaskCreationModalfor both the CodeMirror editor and the textarea fallback, a smallisCompletionOpengetter onEmbeddableMarkdownEditor, docs, and anunreleased.mdentry.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