ctrl+n/p not work in the picker anymore #3203

Closed
opened 2026-02-16 17:39:06 -05:00 by yindo · 4 comments
Owner

Originally created by @towry on GitHub (Nov 29, 2025).

Originally assigned to: @kommander on GitHub.

Description

it was working, now not work anymore, make it hard to use.

OpenCode version

1.0.120

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @towry on GitHub (Nov 29, 2025). Originally assigned to: @kommander on GitHub. ### Description it was working, now not work anymore, make it hard to use. ### OpenCode version 1.0.120 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 17:39:06 -05:00
yindo closed this issue 2026-02-16 17:39:06 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 29, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #4877: Emacs keybindings frustratingly inconsistent - reports issues with keyboard shortcuts (Ctrl-A, Ctrl-K) not working as expected
  • #4808: Alt+d can no longer be remapped - reports keyboard keybinding regression in recent versions
  • #4829: Select popup with commands doesn't reposition on terminal resize - reports picker/popup display issues

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 29, 2025): This issue might be a duplicate of existing issues. Please check: - #4877: Emacs keybindings frustratingly inconsistent - reports issues with keyboard shortcuts (Ctrl-A, Ctrl-K) not working as expected - #4808: Alt+d can no longer be remapped - reports keyboard keybinding regression in recent versions - #4829: Select popup with commands doesn't reposition on terminal resize - reports picker/popup display issues Feel free to ignore if none of these address your specific case.
Author
Owner

@ariane-emory commented on GitHub (Nov 29, 2025):

I do not know which 'picker' in particular you are referring to, but the change to ctrl+p's behaviour is a deliberate change, and is not a bug, when using the default key binding configuration that key is now meant to open the command_list menu.

The user can rebind these keys themselves if they prefer different keys.

My preferred key bindings might be similar to yours, in my opencode.jsonc I have these keys bound as follows:

  "keybinds": {
    "command_list": "alt+x",
    "history_next": "ctrl+n",
    "history_previous": "ctrl+p",
  },
@ariane-emory commented on GitHub (Nov 29, 2025): I do not know _which_ 'picker' in particular you are referring to, but the change to `ctrl+p`'s behaviour is a deliberate change, and is not a bug, when using the default key binding configuration that key is now meant to open the `command_list` menu. The user can rebind these keys themselves if they prefer different keys. My preferred key bindings might be similar to yours, in my `opencode.jsonc` I have these keys bound as follows: ```jsonc "keybinds": { "command_list": "alt+x", "history_next": "ctrl+n", "history_previous": "ctrl+p", }, ```
Author
Owner

@towry commented on GitHub (Nov 29, 2025):

The command list menu/picker.

downgraded to 1.0.119, it working well

  • ctrl-p open the menu
  • input query
  • ctrl-n/p to navigate quickly

Can confirm i is broken in 1.0.120

Still broken in 1.0.122

Also, ctrl-p/n not work for theme picker too.


Just curious, Will this issue bother you? it bother me a lot, i don't use arrow key, it is far from the main keyboard area. I use ctrl+n/p a lot and most prefer the vim key, like j/k can navigate list selection(non query list).

cladue and amp tui support ctrl+n/p and j/k very well in all kind of picker. Opencode was working well too.

@towry commented on GitHub (Nov 29, 2025): The command list menu/picker. downgraded to 1.0.119, it working well - ctrl-p open the menu - input query - ctrl-n/p to navigate quickly Can confirm i is broken in 1.0.120 Still broken in 1.0.122 Also, ctrl-p/n not work for theme picker too. --- Just curious, Will this issue bother you? it bother me a lot, i don't use arrow key, it is far from the main keyboard area. I use ctrl+n/p a lot and most prefer the **vim** key, like j/k can navigate list selection(non query list). cladue and amp tui support ctrl+n/p and j/k very well in all kind of picker. Opencode was working well too.
Author
Owner

@towry commented on GitHub (Dec 10, 2025):

Closing as in version 1.0.141, it worked again.

@towry commented on GitHub (Dec 10, 2025): Closing as in version 1.0.141, it worked again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3203