Skip to content

Configurable Enter behavior for the chat input#215

Open
leonidasbarkas98-cpu wants to merge 1 commit into
andrepimenta:mainfrom
leonidasbarkas98-cpu:feat/configurable-enter
Open

Configurable Enter behavior for the chat input#215
leonidasbarkas98-cpu wants to merge 1 commit into
andrepimenta:mainfrom
leonidasbarkas98-cpu:feat/configurable-enter

Conversation

@leonidasbarkas98-cpu

Copy link
Copy Markdown

New setting claudeCodeChat.input.sendOnEnter (default on, preserving current behavior):

  • on: Enter sends, Shift+Enter inserts a line break (unchanged).
  • 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 (Enable using Option+Enter for multi-line prompts on macOS #118); previously it would unintentionally send because only shiftKey was checked.

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 --noEmit clean, no new dependencies.

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>
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