Skip to content

Ctrl+N and Ctrl+P should move the cursor up and down one line #4144

Closed

Description

@net

Ctrl+N and Ctrl+P are vital for navigating a buffer without having to use arrow keys, and should not be used for anything other than up and down. I suggest Ctrl+O as an available binding for the command pallet.

Activity

  1. github-actions commented on Nov 9, 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.

  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 10, 2025
  3. thdxr commented on Nov 12, 2025

    @thdxr
    Member

    there's a lot of disagreement about what people want ctrl+n and ctrl+p to do
    we will add a dedicated vim mode to the buffer at some point but closing for now as we're unlikely to change the defaults here

  4. self-assigned this
    on Nov 12, 2025
  5. net commented on Nov 12, 2025

    @net
    Author

    At least please make it fixable via configuration. I don't see cursor up or cursor down keybinding here: https://opencode.ai/docs/keybinds/.

    Also, consider that while not everyone knows and uses every readline keybinding, most know some, and you can't predict which ones someone will know, so by disrespecting any except the most esoteric ones you're guaranteed to be making the input worse for some users.

    Even macOS text inputs use ctrl+n and ctrl+p to move up and down. Go into any standard macOS text input and try typing ctrl+n/ctrl+p.

  6. net commented on Dec 29, 2025

    @net
    Author

    It's possible to configure this now.

    {
      "$schema": "https://opencode.ai/config.json",
      "keybinds": {
        "command_list": "ctrl+o",
        "input_move_up": "up,ctrl+p",
        "input_move_down": "down,ctrl+n"
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

opentuiThis 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