Skip to content

1.0.2 - Surprising unexpected ctrl+p/ctrl+n behaviour. #3640

Closed

Description

@ariane-emory

Description

C-p and C-n used to scroll to/from prior input, the same as they do in many (maybe most?) other applications.

Now C-p seems to make some sort of menu pop up. This is surprising unexpected behaviour. C-n does not seem like it does anything now.

Please allow some way to restore the prior behaviour of these keys for those of us who prefer constant key bindings across the applications we use, having to retrain muscle memory to deal with one particular application's inconsistent, non-standard keybinding choices adds quite a cognitive load when trying to use the application.

OpenCode version

1.0.2

Steps to reproduce

  1. Hit C-p and be startled and confused when a menu appears.
  2. Hit C-n and be startled and confused when nothing happens.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Oct 31, 2025
  2. github-actions commented on Oct 31, 2025

    @github-actions
    Contributor

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

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

  3. alanxoc3 commented on Oct 31, 2025

    @alanxoc3

    Agreed! ctrl+p and ctrl+n are really useful defaults that I was using too. Especially for terminal-centric people. Please make them work as up and down again.

    And I liked that all "open code" specific bindings had that ctrl+x prefix like emacs.

  4. alanxoc3 commented on Oct 31, 2025

    @alanxoc3

    looks like this case has duplicates according to github actions

  5. thdxr commented on Oct 31, 2025

    @thdxr
    Member

    not sure how we'll rework defaults but i added keybinds for history_next and history_previous so you can override. can change the one for command_list too

  6. ariane-emory commented on Oct 31, 2025

    @ariane-emory
    ContributorAuthor

    Super, awesome! I'm not too concerned about what the default is as long as it can be overridden, always happy to override stuff to suit my preferences in my own config.

  7. jdanbrown commented on Nov 3, 2025

    @jdanbrown
    Contributor

    not sure how we'll rework defaults but i added keybinds for history_next and history_previous so you can override. can change the one for command_list too

    I encountered a bug trying to use ctrl+n for history_next:

  8. assigned and unassigned on Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions