Skip to content

feat(TUI): add autocomplete readline style keybinds#3717

Merged
rekram1-node merged 2 commits intoanomalyco:devfrom
timoclsn:add-autocomplete-readline-style-keybinds
Nov 4, 2025
Merged

feat(TUI): add autocomplete readline style keybinds#3717
rekram1-node merged 2 commits intoanomalyco:devfrom
timoclsn:add-autocomplete-readline-style-keybinds

Conversation

@timoclsn
Copy link
Copy Markdown
Contributor

@timoclsn timoclsn commented Nov 1, 2025

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

@rekram1-node rekram1-node merged commit 8a9a474 into anomalyco:dev Nov 4, 2025
3 checks passed
@timoclsn timoclsn deleted the add-autocomplete-readline-style-keybinds branch November 4, 2025 19:36
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File search ctrl + p ctrl + n don't cycle through search results opentui: readline-style keybindings not working (ctrl + n, ctrl + p…)

2 participants