Skip to content

"home" and "end" keys are bound twice #14899

Closed as not planned
Closed as not planned

Description

@FichteFoll

Description

In the default key bindings (according to https://opencode.ai/docs/keybinds/), the home and end keys are bound twice and it appears that for me the messages bindings always take precedence.

    "messages_first": "ctrl+g,home",
    "messages_last": "ctrl+alt+g,end",
    "input_buffer_home": "home",
    "input_buffer_end": "end",

Of course, I can alter these to fit my needs, but imo the defaults are wrong – especially since opencode does not seem to operate in input modes or with any kind of "input focus".

Plugins

None

OpenCode version

1.1.53

Steps to reproduce

  1. Enter text in a prompt.
  2. Try to move the caret in the input using home or end keys.
  3. Nothing happens (it tries to scroll the message history but there is none. if you alread have a message history, it wil scroll that instead)

Screenshot and/or share link

No response

Operating System

Arch Linux

Terminal

alacritty

Activity

  1. github-actions commented on Feb 24, 2026

    @github-actions
    Contributor

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 24, 2026
  3. added a commit that references this issue on Feb 24, 2026
    65a0238
  4. kommander commented on Feb 27, 2026

    @kommander
    Contributor

    I am considering input modes for opencode, but that work is not currently scoped at all. There is a lot of overloaded keybindings across different platforms and terminal emulators, it's hard to find a proper default. What would be a suggestions for different input field home/end defaults?

  5. github-actions commented on Apr 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  6. fulalas commented on Apr 29, 2026

    @fulalas

    Not sure if I understand this correctly, but in the prompt text field home and end keys should navigate to the beginning / end of the text field, not the history (currently default at least in the latest version on Linux).

    Is there a way to fix that (even if it's not having it by default)?

  7. kommander commented on Apr 29, 2026

    @kommander
    Contributor
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