opencode
opencode copied to clipboard
Alt+Backspace to delete word does not work
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
- Type a word into opencode textarea
- Ensure the cursor is somewhere in the middle of the word or at the end of the word
- Hit
Alt+Backspace - 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