[FEATURE] Add bindable actions for `chat:deleteNextWord` and `chat:deletePreviousWord`
Resolved 💬 3 comments Opened May 20, 2026 by FichteFoll Closed Jun 19, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
I would like to bind ctrl+backspace and ctrl+delete to delete the previous and the next/following word relative to the caret, as I am used to in GUI editors. These operations are already available as ctrl+w and alt+d but they key bindings are hard-coded and not configurable currently.
This works as expected in OpenCode. My terminal emulator is alacritty on Linux.
Proposed Solution
Add chat:deleteNextWord and chat:deletePreviousWord as bindable key actions and ensure that ctrl+delete and ctrl+backspace escape sequences are interpreted correctly.
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
Interactive mode (TUI)
Use Case Example
_No response_
Additional Context
Related issues:
- https://github.com/anthropics/claude-code/issues/51694 (same request but to delete until the start of the line (currently ctrl+u))
- https://github.com/anthropics/claude-code/issues/58974 delete-word-forward currently also eats the word's trailing space
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗