Skip to content

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

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

rekram1-node merged 2 commits into
anomalyco:devfrom
timoclsn:add-autocomplete-readline-style-keybinds

Conversation

@timoclsn

@timoclsn timoclsn commented Nov 1, 2025 •

Copy link
Copy Markdown
Contributor

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
@timoclsn
timoclsn deleted the add-autocomplete-readline-style-keybinds branch November 4, 2025 19:36
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
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