[FEATURE]: remove or navigate cursor per word group using option (mac) or ctrl (windows) #9364

Open
opened 2026-02-16 18:12:16 -05:00 by yindo · 1 comment
Owner

Originally created by @pradprat on GitHub (Feb 14, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request


Description
Currently, cursor movement in the editor operates on a character-by-character basis. This feature requests support for word-group cursor navigation and deletion using standard OS keyboard shortcuts:

  • macOS: Option + Arrow Keys to move cursor word-by-word, Option + Backspace/Delete to delete word-by-word
  • Windows/Linux: Ctrl + Arrow Keys to move cursor word-by-word, Ctrl + Backspace/Delete to delete word-by-word
    These are standard text editing shortcuts that users expect across virtually all text input fields and code editors. Supporting them would significantly improve the editing experience by allowing users to:
  1. Navigate quickly between words without reaching for the mouse
  2. Delete entire words at once instead of holding backspace through each character
    Expected Behavior
    Shortcut macOS Windows/Linux Action
    Move cursor left by word Option + ← Ctrl + ← Jump cursor to the beginning of the previous word
    Move cursor right by word Option + → Ctrl + → Jump cursor to the end of the next word
    Delete previous word Option + Backspace Ctrl + Backspace Remove the word to the left of the cursor
    Delete next word Option + Delete Ctrl + Delete Remove the word to the right of the cursor
    Select word left Shift + Option + ← Shift + Ctrl + ← Extend selection to the previous word boundary
    Select word right Shift + Option + → Shift + Ctrl + → Extend selection to the next word boundary
    Current Behavior
    Pressing these key combinations either does nothing, inserts unexpected characters, or is not handled by the application.
    Motivation
    This is a fundamental text editing convention across all major operating systems and applications (VS Code, browsers, terminal emulators, etc.). Missing support for these shortcuts disrupts muscle memory and slows down text editing workflows.
Originally created by @pradprat on GitHub (Feb 14, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request --- Description Currently, cursor movement in the editor operates on a character-by-character basis. This feature requests support for word-group cursor navigation and deletion using standard OS keyboard shortcuts: - macOS: Option + Arrow Keys to move cursor word-by-word, Option + Backspace/Delete to delete word-by-word - Windows/Linux: Ctrl + Arrow Keys to move cursor word-by-word, Ctrl + Backspace/Delete to delete word-by-word These are standard text editing shortcuts that users expect across virtually all text input fields and code editors. Supporting them would significantly improve the editing experience by allowing users to: 1. Navigate quickly between words without reaching for the mouse 2. Delete entire words at once instead of holding backspace through each character Expected Behavior | Shortcut | macOS | Windows/Linux | Action | |---|---|---|---| | Move cursor left by word | Option + ← | Ctrl + ← | Jump cursor to the beginning of the previous word | | Move cursor right by word | Option + → | Ctrl + → | Jump cursor to the end of the next word | | Delete previous word | Option + Backspace | Ctrl + Backspace | Remove the word to the left of the cursor | | Delete next word | Option + Delete | Ctrl + Delete | Remove the word to the right of the cursor | | Select word left | Shift + Option + ← | Shift + Ctrl + ← | Extend selection to the previous word boundary | | Select word right | Shift + Option + → | Shift + Ctrl + → | Extend selection to the next word boundary | Current Behavior Pressing these key combinations either does nothing, inserts unexpected characters, or is not handled by the application. Motivation This is a fundamental text editing convention across all major operating systems and applications (VS Code, browsers, terminal emulators, etc.). Missing support for these shortcuts disrupts muscle memory and slows down text editing workflows.
yindo added the opentuidiscussion labels 2026-02-16 18:12:16 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 14, 2026):

This issue might be a duplicate of or related to existing issues. Please check:

  • #3370: [FEATURE]: Text selection and navigation inside input with keyboard
  • #2880: Feature Request: Cntrl+arrow cursor navigation
  • #4261: Option+Right not jumping words as intended in some scenarios
  • #4965: option delete doesn't delete word by word
  • #4938: Keyboard shortcuts to edit prompts suck so much!

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Feb 14, 2026): This issue might be a duplicate of or related to existing issues. Please check: - #3370: [FEATURE]: Text selection and navigation inside input with keyboard - #2880: Feature Request: Cntrl+arrow cursor navigation - #4261: Option+Right not jumping words as intended in some scenarios - #4965: option delete doesn't delete word by word - #4938: Keyboard shortcuts to edit prompts suck so much! For keybind-related issues, please also check our pinned keybinds documentation: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9364