[FEATURE]: Support macOS line navigation shortcuts (⌘← / ⌘→) in text inputs/editors #9233

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

Originally created by @naveen-bharathi on GitHub (Feb 13, 2026).

Originally assigned to: @kommander 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

Context

This issue proposes adding macOS-standard cursor navigation shortcuts to Opencode’s text editing surfaces. These shortcuts are widely expected by macOS users and are supported across most native apps and many editor components.

Current Behaviour

In certain Opencode text editing contexts like chat input, editor-like fields and forms, the + and + shortcuts either do nothing, are handled by the app (for navigation or back/forward), or aren’t mapped to line start/end movement in custom editors.

Expected macOS Behaviour

When the focus is on an editable text control:

  • ⌘ + ← moves the cursor to the start of the current line.
  • ⌘ + → moves the cursor to the end of the current line.

Importance

  • This aligns with macOS platform conventions and muscle memory.
  • It improves editing speed and ergonomics, especially for prompts, code snippets and longer lines.
  • It helps users on laptop keyboards where the Home and End keys are less accessible or absent.
  • It reduces “paper cuts” in text-heavy workflows.

Scope

These shortcuts should be applied consistently in any area where users can type or edit, including:

  • Main chat/prompt input.
  • Multi-line text areas (like settings or configuration).
  • Any embedded editor component (if present).
  • Inline rename/edit fields (where reasonable).
Originally created by @naveen-bharathi on GitHub (Feb 13, 2026). Originally assigned to: @kommander 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 ### Context This issue proposes adding macOS-standard cursor navigation shortcuts to Opencode’s text editing surfaces. These shortcuts are widely expected by macOS users and are supported across most native apps and many editor components. ### Current Behaviour In certain Opencode text editing contexts like chat input, editor-like fields and forms, the `⌘` + `←` and `⌘` + `→` shortcuts either do nothing, are handled by the app (for navigation or back/forward), or aren’t mapped to line start/end movement in custom editors. ### Expected macOS Behaviour When the focus is on an editable text control: - `⌘ + ←` moves the cursor to the start of the current line. - `⌘ + →` moves the cursor to the end of the current line. ### Importance - This aligns with macOS platform conventions and muscle memory. - It improves editing speed and ergonomics, especially for prompts, code snippets and longer lines. - It helps users on laptop keyboards where the `Home` and `End` keys are less accessible or absent. - It reduces “paper cuts” in text-heavy workflows. ### Scope These shortcuts should be applied consistently in any area where users can type or edit, including: - Main chat/prompt input. - Multi-line text areas (like settings or configuration). - Any embedded editor component (if present). - Inline rename/edit fields (where reasonable).
yindo added the opentuidiscussion labels 2026-02-16 18:11:57 -05:00
Author
Owner

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

This issue might be related to existing issues. Please check:

  • #653: Add support for cmd+ keybinds on macOS - This issue is about supporting cmd+ keybinds generally, which is foundational for the macOS line navigation shortcuts you're requesting.

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

@github-actions[bot] commented on GitHub (Feb 13, 2026): This issue might be related to existing issues. Please check: - #653: Add support for cmd+ keybinds on macOS - This issue is about supporting `cmd+` keybinds generally, which is foundational for the macOS line navigation shortcuts you're requesting. For keybind-related issues and discussions, 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#9233