Skip to content

cmd + backspace doesn't work #1471

Closed
Closed

Description

@willleeney

should delete the entire line but doesn't

Activity

  1. rekram1-node commented on Aug 29, 2025

    @rekram1-node
    Collaborator

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

  2. art-shen commented on Aug 30, 2025

    @art-shen

    @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.

  3. rekram1-node commented on Aug 30, 2025

    @rekram1-node
    Collaborator

    thats strange im on macos works fine for me

    tho i use ghostty

  4. art-shen commented on Aug 30, 2025

    @art-shen

    @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
  5. rekram1-node commented on Aug 30, 2025

    @rekram1-node
    Collaborator

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

  6. Eric162 commented on Dec 17, 2025

    @Eric162
    Contributor

    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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions