Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard Shortcut Improvements for Claude Code #138

Open
freiit opened this issue Feb 26, 2025 · 1 comment
Open

Keyboard Shortcut Improvements for Claude Code #138

freiit opened this issue Feb 26, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@freiit
Copy link

freiit commented Feb 26, 2025

The current keyboard shortcut implementation in Claude Code has inconsistencies with the Claude web interface and lacks expected terminal behavior, causing workflow disruptions and potential data loss.

Current Behavior

  1. Only "Esc" can be used to exit the current mode
  2. Pressing Ctrl+C puts Claude Code sometimes in an unstable state requiring restart and resulting in cache loss
  3. Ctrl+Return is interpreted as "send to Claude" instead of creating a new line

Expected Behavior

  1. Ctrl+C should function as an alternative exit command (in addition to Esc)
  2. Ctrl+C should not cause an unstable application state
  3. Ctrl+Return should create a new line, consistent with the Claude web interface

Impact

  • Workflow disruption when muscle memory from web interface doesn't transfer
  • Risk of data loss when forced to restart after Ctrl+C puts application in unstable state
  • Reduced productivity due to inconsistent interface behaviors

Suggested Improvements

  1. Add Ctrl+C as an alternative exit command alongside Esc
  2. Fix application state handling when Ctrl+C is pressed
  3. Make Ctrl+Return create a new line instead of sending content to Claude
@roychri
Copy link

roychri commented Feb 26, 2025

M-Enter (esc followed by enter) would be also accepted for a new line in multi line. (like aider)
CTRL-J could also be accepted for a new line multi line. (like charmbracelet's gum cli tool)

@bcherny bcherny added the enhancement New feature or request label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants