opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Alt+Backspace to delete word does not work

Open jakst opened this issue 13 hours ago • 3 comments

Description

Keybindings for deleting word from the cursor and back are set as ctrl+w,ctrl+backspace,alt+backspace in https://github.com/sst/opencode/blob/f3febd6e395458698fceca2f175f59e0cf68c1d6/packages/opencode/src/config/config.ts#L565-L568

However, Alt+Backspace does not work, which is slightly frustrating since it's the only one of them that works in all input fields on a Mac, and hence the one that's in muscle memory for most (I would assume, at least for me).

OpenCode version

1.0.206

Steps to reproduce

  1. Type a word into opencode textarea
  2. Ensure the cursor is somewhere in the middle of the word or at the end of the word
  3. Hit Alt+Backspace
  4. Observe only one character was deleted instead of the whole word up to the cursor

Screenshot and/or share link

No response

Operating System

MacOS 26.1

Terminal

Ghostty, MacOS Terminal

jakst avatar Dec 28 '25 20:12 jakst