You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add configurable readline-style text transformations to TUI prompt #9234
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Summary
Add configurable Emacs/readline-style text editing shortcuts to the TUI (terminal) prompt input to improve text editing efficiency and provide power users with familiar keybindings.
Problem Statement
Currently, users working in the terminal UI must manually retype text to perform common text editing operations such as:
Changing word case (uppercase, lowercase, capitalize)
Pasting previously deleted text
Transposing characters
This slows down text editing workflows and prevents users from customizing keybindings to match their preferred editor shortcuts (particularly Emacs/readline style).
Desired Features
The following text transformation operations should be available as configurable keybindings:
Case Transformations
Uppercase word - Convert word from cursor position to uppercase
Lowercase word - Convert word from cursor position to lowercase
Capitalize word - Capitalize word from cursor position
Kill Ring / Paste Buffer
Yank - Paste the last deleted text at cursor position
Support for storing deleted text from existing delete operations (ctrl+k, ctrl+u, ctrl+w, alt+d)
Character Manipulation
Transpose characters - Swap character under cursor with previous character
Expected Behavior
All new shortcuts should be fully configurable via opencode.json keybindings configuration, allowing users to customize or disable them as needed. Default bindings should not conflict with existing TUI functionality.
This issue might be a duplicate of existing issues. Please check:
Keybinds #4997: Pinned keybinds issue covering many TUI keybind problems including word deletion (option+delete), emacs bindings (ctrl+a, ctrl+k), and general keybind navigation issues
Activity
github-actions commentedon Jan 18, 2026
This issue might be a duplicate of existing issues. Please check:
For keybind-related issues, please also check our pinned keybinds documentation: #4997
Feel free to ignore if none of these address your specific case.
aspiers commentedon Feb 12, 2026
It's not a duplicate and the PR fixing this is ready for review.
github-actions commentedon Apr 13, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.