Configurable Enter behavior for the chat input#215
Open
leonidasbarkas98-cpu wants to merge 1 commit into
Open
Conversation
New setting claudeCodeChat.input.sendOnEnter (default on): - on: unchanged behavior - Enter sends, Shift+Enter inserts a line break. - off: Enter inserts a line break; sending is done with Ctrl+Enter (Cmd+Enter on macOS). Alt/Option+Enter now always inserts a line break regardless of the setting (covers andrepimenta#118); previously it would unintentionally send because only shiftKey was checked. The value rides the existing settingsData/updateSettings transport and is exposed in the in-app settings modal (new 'Input' section) as well as the native VS Code settings; toggling via the in-app modal applies live, native settings UI changes apply on the next modal open/reload (matching the existing behavior of the other settings). Refs: andrepimenta#117, andrepimenta#57 (partial - free shortcut remapping is out of scope), andrepimenta#118. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
New setting
claudeCodeChat.input.sendOnEnter(default on, preserving current behavior):The value rides the existing settingsData/updateSettings transport and is exposed both in the in-app settings modal (new "Input" section) and the native VS Code settings.
Addresses #117 and #118, partially #57 (free shortcut remapping is out of scope). Based on current main (ab6e307),
tsc --noEmitclean, no new dependencies.