Expose word-wise deletion actions for Chat input (chat:deleteWordForward / chat:deleteWordBackward)

Resolved 💬 3 comments Opened May 3, 2026 by richqubit Closed May 6, 2026

Problem

The Chat input handler does not support word-wise deletion. Ctrl-Del (which sends ^[[3;5~ and is bound to kill-word by readline in bash) does nothing in Claude Code, and there is no way to bind it via ~/.claude/keybindings.json because no corresponding action exists.

The current Chat context exposes chat:clearInput, chat:undo, chat:newline, etc., but nothing for word-wise edits in either direction.

Request

Expose two new actions for the Chat context:

  • chat:deleteWordForward — delete the word after the cursor (default suggestion: ctrl+delete)
  • chat:deleteWordBackward — delete the word before the cursor (default suggestion: alt+backspace / ctrl+backspace)

This would let users add bindings such as:

{
  \"context\": \"Chat\",
  \"bindings\": {
    \"ctrl+delete\": \"chat:deleteWordForward\",
    \"alt+backspace\": \"chat:deleteWordBackward\"
  }
}

Why it matters

Word-wise deletion is muscle memory in essentially every other text input (browsers, editors, shells via readline). Its absence in Claude Code's input is a small but constant friction point when editing longer prompts.

Environment

  • Claude Code CLI
  • Linux, bash, terminal sends ^[[3;5~ for Ctrl-Del (verified via cat -v)

View original on GitHub ↗

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