Skip to content

Commit 0941b9d

Browse files
committed
fix(opencode): give message scrolling alt-based keybinds
The TUI's scroll defaults all sit on ctrl+alt+<letter>, a combination opencode's input layer mishandles (anomalyco/opencode#3652, reproduced on alacritty too, so neither kitty nor the hyprland binds are at fault). tui.json keeps the defaults and adds working alternates on plain alt - alt+k/j for half page, alt+arrows per line, alt+shift+k/j per page, alt+shift+g for the bottom - each checked against the TUI's editor bindings, kitty's maps (alt+g is the window selector) and the hyprland ALT binds. PageUp/PageDown, Home/End and ctrl+g were already delivered fine and stay.
1 parent 2e8661b commit 0941b9d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.config/opencode/tui.json‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://opencode.ai/tui.json",
3+
"keybinds": {
4+
"messages_line_up": "ctrl+alt+y,alt+up",
5+
"messages_line_down": "ctrl+alt+e,alt+down",
6+
"messages_half_page_up": "ctrl+alt+u,alt+k",
7+
"messages_half_page_down": "ctrl+alt+d,alt+j",
8+
"messages_page_up": "pageup,ctrl+alt+b,alt+shift+k",
9+
"messages_page_down": "pagedown,ctrl+alt+f,alt+shift+j",
10+
"messages_last": "ctrl+alt+g,end,alt+shift+g"
11+
}
12+
}

0 commit comments

Comments
 (0)