option delete doesn't delete word by word
Description
it was working until last week
OpenCode version
1.0.126
Steps to reproduce
type a few words in macos. press option + delete to delete a word, it only deletes a character.
Screenshot and/or share link
No response
Operating System
mac
Terminal
ghostty
This issue might be a duplicate of existing issues. Please check:
- #436: cmd+delete, option+delete - Feature request for these exact macOS keyboard shortcuts
- #1167: Feature Request: Support Ctrl+Backspace and Ctrl+Delete for Word Deletion in TUI - Similar word deletion feature request
- #4938: Keyboard shortcuts to edit prompts suck so much! - Broader issue covering keyboard shortcut problems including word deletion
Feel free to ignore if none of these address your specific case.
interesting.. it works in vscode's (cursor's) terminal. but it doesn't work in ghostty or macos terminal
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.