Skip to content

Conversation

@timoclsn
Copy link
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 sst:dev Nov 4, 2025
3 checks passed
@timoclsn timoclsn deleted the add-autocomplete-readline-style-keybinds branch November 4, 2025 19:36
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