[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:

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗