[PR #3717] feat(TUI): add autocomplete readline style keybinds #10738

Closed
opened 2026-02-16 18:15:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3717

State: closed
Merged: Yes


Add Ctrl+n/p navigation to autocomplete

Adds readline-style keybindings for navigating the autocomplete list when selecting files or agents with @.
What Changed

Autocomplete navigation:

  • Added Ctrl+p (move up) and Ctrl+n (move down) as alternatives to arrow keys
  • Keybinds only trigger when Ctrl is pressed alone (no Shift/Alt modifiers)
  • Early returns prevent event re-handling
    Command keybind suspension:
  • Fixed conflict where Ctrl+p would open command palette while navigating autocomplete
  • Converted command dialog to use signal-based suspension with reference counting
  • Global keybinds now properly respect the suspended state

I thin this should close #3379 after all.

closes: #3913

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3717 **State:** closed **Merged:** Yes --- ## Add Ctrl+n/p navigation to autocomplete Adds readline-style keybindings for navigating the autocomplete list when selecting files or agents with @. What Changed ## Autocomplete navigation: - Added Ctrl+p (move up) and Ctrl+n (move down) as alternatives to arrow keys - Keybinds only trigger when Ctrl is pressed alone (no Shift/Alt modifiers) - Early returns prevent event re-handling Command keybind suspension: - Fixed conflict where Ctrl+p would open command palette while navigating autocomplete - Converted command dialog to use signal-based suspension with reference counting - Global keybinds now properly respect the suspended state I thin this should close #3379 after all. closes: #3913
yindo added the pull-request label 2026-02-16 18:15:28 -05:00
yindo closed this issue 2026-02-16 18:15:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10738