claude-code - 💡(How to fix) Fix Add word deletion keybindings (chat:deleteWordBack, chat:deleteWordForward) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46087Fetched 2026-04-11 06:29:19
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1
RAW_BUFFERClick to expand / collapse

Claude Code CLI should support word deletion keybindings, similar to terminal behavior on macOS.

Expected behavior:

  • alt+backspace: Delete the word before the cursor
  • alt+delete (or ctrl+alt+backspace): Delete the word after the cursor

This is a standard feature in most terminals and text editors.

Platform: macOS

extent analysis

TL;DR

Implementing alt+backspace and alt+delete keybindings for word deletion in the Claude Code CLI will provide the expected behavior.

Guidance

  • Review the current keybinding configuration in the Claude Code CLI to determine if there are any existing bindings that can be modified or extended to support word deletion.
  • Investigate the use of platform-specific key codes or modifiers (e.g., alt, ctrl, cmd) to implement the desired behavior on macOS.
  • Consider adding a settings option to allow users to customize keybindings for word deletion, providing flexibility and consistency with other terminals and text editors.
  • Look into existing libraries or frameworks that provide terminal emulation or text editing functionality, as they may offer built-in support for word deletion keybindings.

Example

No specific code example can be provided without more context about the Claude Code CLI's implementation, but a potential approach might involve using a library like readline or tty to handle keyboard input and implement custom keybindings.

Notes

The implementation details may vary depending on the specific technology stack and programming language used by the Claude Code CLI. Additionally, ensuring consistency with other platforms (e.g., Windows, Linux) may require further consideration.

Recommendation

Apply a workaround by implementing custom keybindings for word deletion, as this will provide the desired functionality without relying on an upgrade to a potentially non-existent fixed version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Add word deletion keybindings (chat:deleteWordBack, chat:deleteWordForward) [1 comments, 2 participants]