You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
macos terminal before Tahoe does not support modifyOtherKeys, so it won't work there, but behaviour should be better in the latest version and option+delete and option+backspace are now mapped to by-word actions by default.
@kommander do you mean in opencode or on opentui (meaning we need to wait for an update in OC with the new opentui version)? Asking it because it's still not fixed in 1.0.161
I cannot reproduce this, option+backspace deletes the word before the cursor and option+delete deletes the word after the cursor as expected. Did something mess with the Ghostty config?
I have the issue with MacOS v26.1, OpenCode v1.0.206, and Ghostty v1.2.3.
ctrl+backspace and ctrl+w works to delete word backwards, and opt+delete (i.e. fn+opt+backspace) works to delete word forward. But opt+backpsace does not delete word backwards.
Reacted by Muneeb, m0n99, Antonio and Sverrir Arnórsson
Activity
github-actions commentedon Dec 2, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
luisrudge commentedon Dec 2, 2025
interesting.. it works in vscode's (cursor's) terminal. but it doesn't work in ghostty or macos terminal
kommander commentedon Dec 15, 2025
macos terminal before Tahoe does not support modifyOtherKeys, so it won't work there, but behaviour should be better in the latest version and
option+deleteandoption+backspaceare now mapped to by-word actions by default.luisrudge commentedon Dec 16, 2025
@kommander do you mean in opencode or on opentui (meaning we need to wait for an update in OC with the new opentui version)? Asking it because it's still not fixed in 1.0.161
kommander commentedon Dec 16, 2025
Where doesn't it work?
luisrudge commentedon Dec 16, 2025
opencode terminal text area
supnim commentedon Dec 16, 2025
just to note: option + backspace works in claude code via ghostty
kommander commentedon Dec 16, 2025
@luisrudge @supnim what is in your opencode configs? Custom or default?
supnim commentedon Dec 16, 2025
default boss
kommander commentedon Dec 16, 2025
I cannot reproduce this, option+backspace deletes the word before the cursor and option+delete deletes the word after the cursor as expected. Did something mess with the Ghostty config?
luisrudge commentedon Dec 16, 2025
default opencode config
ghostty config:
luisrudge commentedon Dec 17, 2025
interesting that I can navigate with option + arrow left/right and it navigates correctly. it's only an issue if I'm deleting text
supnim commentedon Dec 17, 2025
ghostty config:
Okay, I messed around a bit more, and found that
ctrl + backspacedoes the behaviour of what i exceptoption + backspaceto do.ps. im on a mac
aryaMode commentedon Dec 21, 2025
Setting up my ghostty config up like this worked for me:
macos-option-as-alt = truekeybind = alt+backspace=text:\x1b\x7fkeybind = alt+delete=esc:dluisrudge commentedon Dec 22, 2025
this works. really unfortunate that opencode doesn't work with the default options, though.
supnim commentedon Dec 27, 2025
this worked for me! thank you
valtism commentedon Dec 27, 2025
@kommander I think this is still an issue and should be reopened. It does not work by default for me with MacOS and Ghostty
rekram1-node commentedon Dec 27, 2025
What version of ghostty are you on, im on macos and default ghostty (v1.2.3) cannot replicate issue
valtism commentedon Dec 27, 2025
MacOS 26.1 and Ghostty tip (commit 669733d59 build 13319) tested with default config
opt+backspacejust does a single backspace.cmd+backspaceworks (deletes entire line)jakst commentedon Dec 28, 2025
I have the issue with MacOS v26.1, OpenCode v1.0.206, and Ghostty v1.2.3.
ctrl+backspaceandctrl+wworks to delete word backwards, andopt+delete(i.e.fn+opt+backspace) works to delete word forward. Butopt+backpsacedoes not delete word backwards.andrempeixoto commentedon Feb 18, 2026
This worked for me, in Ghostty config:
vaspoz commentedon Mar 3, 2026
in warp it doesn't work as well, no one mentioned combination
kommander commentedon Mar 3, 2026
That is a MacOS system level issue, for most terminals you either have to set "use option as meta key" in system settings or in the terminal config.
vaspoz commentedon Mar 3, 2026
No, it’s not
Same terminal, same OS, Claude Code - works, OpenCode - doesn’t