From 7bffee9ec00e7b6f1246ecd07d35420a67d38753 Mon Sep 17 00:00:00 2001 From: kunchenguid Date: Sat, 11 Jul 2026 22:05:38 -0700 Subject: [PATCH] feat(herdr,wezterm): pin agent panel sort and disable alt-screen wheel arrows Both settings are consequences of the mouse_capture=false mitigation. With the host mouse capture disabled, the Herdr header click-toggle for agent panel sort is unreachable, so pin agent_panel_sort="spaces" explicitly. Likewise WezTerm would synthesize Up/Down arrows for wheel scroll in the alt-screen Herdr client (a pane REPL then reads them as history navigation), so set alternate_buffer_wheel_scroll_speed=0. --- home/.config/herdr/config.toml | 4 ++++ home/.config/wezterm/wezterm.lua | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/home/.config/herdr/config.toml b/home/.config/herdr/config.toml index 9f29bce..d3ae1b4 100644 --- a/home/.config/herdr/config.toml +++ b/home/.config/herdr/config.toml @@ -17,3 +17,7 @@ copy_mode = "prefix+y" # herdr's copy-mode entry key; copy-mode's own internal # Escape and get it swallowed in the pane (e.g. Neovim stuck in insert mode). # Only effective together with the pane keeping mouse off (see nvim mouse below). mouse_capture = false +# Agents panel order: "spaces" (grouped by space, the default) vs "priority". +# Set explicitly because with mouse_capture=false the header click-toggle is +# unreachable, so the sort is fixed by this value. +agent_panel_sort = "spaces" diff --git a/home/.config/wezterm/wezterm.lua b/home/.config/wezterm/wezterm.lua index 8bb9ce8..8414340 100644 --- a/home/.config/wezterm/wezterm.lua +++ b/home/.config/wezterm/wezterm.lua @@ -10,4 +10,11 @@ config.macos_window_background_blur = 50 config.hide_tab_bar_if_only_one_tab = true config.window_decorations = "RESIZE" +-- With Herdr mouse_capture=false, the Herdr client is a full-screen alt-screen app +-- enabling no mouse reporting, so WezTerm would otherwise synthesize Up/Down arrow +-- keys for wheel scroll (default speed 3) and a pane REPL reads them as history +-- navigation. Set to 0 so wheel input in alternate-screen apps is never turned into +-- arrow keys. Scroll pane scrollback with PageUp/PageDown or copy-mode (prefix+y). +config.alternate_buffer_wheel_scroll_speed = 0 + return config