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!
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗