opencode icon indicating copy to clipboard operation
opencode copied to clipboard

option delete doesn't delete word by word

Open luisrudge opened this issue 3 weeks ago • 2 comments

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

luisrudge avatar Dec 02 '25 00:12 luisrudge

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.

github-actions[bot] avatar Dec 02 '25 00:12 github-actions[bot]

interesting.. it works in vscode's (cursor's) terminal. but it doesn't work in ghostty or macos terminal

luisrudge avatar Dec 02 '25 00:12 luisrudge

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 avatar Dec 15 '25 11:12 kommander