Feature Request: Support for Shell-Style / Emacs-Inspired Keybindings in Message Input
Would love to see support for standard shell/emacs-style keybindings in the message input box (similar to what’s available in terminals and Bash). Right now, using keystrokes like Esc+C (aka Meta+C) to uppercase the first letter of a word—or other shortcuts like Meta+B to jump back a word, Meta+D to delete the next word—either do nothing or trigger unrelated UI behaviors (e.g., Esc clearing the input altogether, which is especially frustrating).
This behavior breaks muscle memory for anyone used to working in terminal or Emacs-style editing environments. Supporting these common bindings would make the text entry experience much smoother, especially when editing long prompts or code snippets.
Some examples of what would be nice to support:
Meta+C– Capitalize wordMeta+U– Uppercase wordMeta+L– Lowercase wordMeta+B / Meta+F– Move by wordMeta+D– Delete word forwardMeta+Backspace– Delete word backwardCtrl+A/E/K/Y– Beginning/end of line, kill line, yank, etc.
At the very least, it’d be helpful to be able to disable the Esc → clear behavior or remap it.
Thanks for considering this!
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/796
- https://github.com/anthropics/claude-code/issues/1581
- https://github.com/anthropics/claude-code/issues/2088
If your issue is a duplicate, please close it and 👍 the existing issue instead.
🤖 Generated with Claude Code
There is a Vim mode, by the way, but it’s not really a Vim-like readline. :D
I find myself trying to edit, selecting, re-wording too frequently. Even if the https://github.com/manzaltu/claude-code-ide.el mode exists, quick access to the prompt with Emacs key bindings is a game changer for the emacsen.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.