You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Enter text in a prompt.
Try to move the caret in the input using home or end keys.
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
Reacted by Brennan Goewert, Max Zawisa, Greg Schofield, Seulgi Kim, Sun Wuan, Marc Egea i Sala, Uwe Jugel and 99742
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?
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)?
Activity
github-actions commentedon Feb 24, 2026
For keybind-related issues, please also check our pinned keybinds documentation: #4997
fix(config): remove home/end from messages_first/messages_last defaults
kommander commentedon Feb 27, 2026
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?
github-actions commentedon Apr 29, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
fulalas commentedon Apr 29, 2026
Not sure if I understand this correctly, but in the prompt text field
homeandendkeys 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)?
kommander commentedon Apr 29, 2026
You should be able to rebind the keys the way you like https://opencode.ai/docs/keybinds/