cmd + backspace doesn't work #1022

Open
opened 2026-02-16 17:29:06 -05:00 by yindo · 6 comments
Owner

Originally created by @willleeney on GitHub (Jul 31, 2025).

Originally assigned to: @adamdotdevin on GitHub.

should delete the entire line but doesn't

Originally created by @willleeney on GitHub (Jul 31, 2025). Originally assigned to: @adamdotdevin on GitHub. should delete the entire line but doesn't
Author
Owner

@rekram1-node commented on GitHub (Aug 29, 2025):

@willleeney do u still have this behavior? what terminal?

@rekram1-node commented on GitHub (Aug 29, 2025): @willleeney do u still have this behavior? what terminal?
Author
Owner

@art-shen commented on GitHub (Aug 30, 2025):

@rekram1-node yeah, it is still broken and necessary.

It's a standard behavior in any terminal, at least on macOS. Works in Claude Code like a charm and it was a huge downgrade in convenience when comparing the opencode.

At this moment:

  • + backspace removes the last word (broken in opencode)
  • + backspace removes the entire line (broken in opencode)
  • + arrow left navigates cursor before the last word — it is the only one working
  • + backspace navigates cursor to the begiining of the line (broken in opencode)

what terminal?

Any of them. System standard, Warp, in-VsCode, in-IDEA, etc.

@art-shen commented on GitHub (Aug 30, 2025): @rekram1-node yeah, it is still broken and necessary. It's a standard behavior in any terminal, at least on macOS. Works in Claude Code like a charm and it was a huge downgrade in convenience when comparing the opencode. At this moment: - `⌥` + <kbd>backspace</kbd> removes the last word **(broken in opencode)** - `⌘` + <kbd>backspace</kbd> removes the entire line **(broken in opencode)** - `⌥` + <kbd>arrow left</kbd> navigates cursor before the last word — it is the only one working - `⌘` + <kbd>backspace</kbd> navigates cursor to the begiining of the line **(broken in opencode)** > what terminal? Any of them. System standard, Warp, in-VsCode, in-IDEA, etc.
Author
Owner

@rekram1-node commented on GitHub (Aug 30, 2025):

thats strange im on macos works fine for me

tho i use ghostty

@rekram1-node commented on GitHub (Aug 30, 2025): thats strange im on macos works fine for me tho i use ghostty
Author
Owner

@art-shen commented on GitHub (Aug 30, 2025):

@rekram1-node, to be precise, I did a granular testing (macOS 15.6)

iTerm 3.5.14

  • + backspace works fine
  • + backspace does nothing
  • + arrow left/right works fine
  • + arrow left/right does nothing

macOS Terminal 2.14 (455.1)

  • + backspace doesn't remove the last word, only last character
  • + backspace does nothing (beep)
  • + arrow left/right works fine
  • + arrow left/right does nothing (beep)

Warp v0.2025.08.20.08.11.stable_03

  • + backspace doesn't remove the last word, only last character
  • + backspace doesn't remove the last word, only last character
  • + arrow left/right works fine!
  • + arrow left/right doesn't remove the last word, only last character

All of this works fine for Claude Code in Warp.

Terminal in Cursor 1.4.5 (VSCode 1.99.3)

  • + backspace works fine!
  • + backspace works fine!
  • + arrow left/right works fine!
  • + arrow left/right works fine!

Terminal in IDEA 252.23892.409

TUI interface in IDEA seems to not update after deleting characters, and glitchy overall. For Claude Code TUI works fine.

  • + backspace works fine
  • + backspace works as + backspace
  • + arrow left/right works fine
  • + arrow left/right works as + left/reight
@art-shen commented on GitHub (Aug 30, 2025): @rekram1-node, to be precise, I did a granular testing _(macOS 15.6)_ ### iTerm 3.5.14 - `⌥` + <kbd>backspace</kbd> — ✅ works fine - `⌘` + <kbd>backspace</kbd> — ❌ does nothing - `⌥` + <kbd>arrow left/right</kbd> — ✅ works fine - `⌘` + <kbd>arrow left/right</kbd> — ❌ does nothing ### macOS Terminal 2.14 (455.1) - `⌥` + <kbd>backspace</kbd> — ❌ doesn't remove the last word, only last character - `⌘` + <kbd>backspace</kbd> — ❌ does nothing (beep) - `⌥` + <kbd>arrow left/right</kbd> — ✅ works fine - `⌘` + <kbd>arrow left/right</kbd> — ❌ does nothing (beep) ### Warp v0.2025.08.20.08.11.stable_03 - `⌥` + <kbd>backspace</kbd> — ❌ doesn't remove the last word, only last character - `⌘` + <kbd>backspace</kbd> — ❌ doesn't remove the last word, only last character - `⌥` + <kbd>arrow left/right</kbd> — ✅ works fine! - `⌘` + <kbd>arrow left/right</kbd> — ❌ doesn't remove the last word, only last character _All of this works fine for Claude Code in Warp._ ### Terminal in Cursor 1.4.5 (VSCode 1.99.3) - `⌥` + <kbd>backspace</kbd> — ✅ works fine! - `⌘` + <kbd>backspace</kbd> — ✅ works fine! - `⌥` + <kbd>arrow left/right</kbd> — ✅ works fine! - `⌘` + <kbd>arrow left/right</kbd> — ✅ works fine! ### Terminal in IDEA 252.23892.409 _TUI interface in IDEA seems to not update after deleting characters, and glitchy overall. For Claude Code TUI works fine._ - `⌥` + <kbd>backspace</kbd> — ✅ works fine - `⌘` + <kbd>backspace</kbd> — ❌ works as `⌥` + <kbd>backspace</kbd> - `⌥` + <kbd>arrow left/right</kbd> — ✅ works fine - `⌘` + <kbd>arrow left/right</kbd> — ❌ works as `⌥` + <kbd>left/reight</kbd>
Author
Owner

@rekram1-node commented on GitHub (Aug 30, 2025):

wow very through that’s super nice of you thanks!

@rekram1-node commented on GitHub (Aug 30, 2025): wow very through that’s super nice of you thanks!
Author
Owner

@Eric162 commented on GitHub (Dec 17, 2025):

In wezterm, a config change is needed but then it works:

-- ~/.wezterm.lua

local wezterm = require 'wezterm'
local act = wezterm.action

config.keys = {
  -- Make Command-Backspace equivalent to Ctrl-u; kill-line
  { key = 'Backspace', mods = 'CMD', action = act{SendString = '\x15'} },
}

return config
@Eric162 commented on GitHub (Dec 17, 2025): In wezterm, a config change is needed but then it works: ```lua -- ~/.wezterm.lua local wezterm = require 'wezterm' local act = wezterm.action config.keys = { -- Make Command-Backspace equivalent to Ctrl-u; kill-line { key = 'Backspace', mods = 'CMD', action = act{SendString = '\x15'} }, } return config ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1022