From a0f8972b367f4edbbfda5f8fb35dadc1d8e2831b Mon Sep 17 00:00:00 2001 From: kunchenguid Date: Sat, 11 Jul 2026 11:47:23 -0700 Subject: [PATCH] fix(herdr,nvim): disable host mouse capture so Escape isn't swallowed Turn off Herdr's host mouse capture ([ui] mouse_capture = false) and set Neovim mouse off (o.mouse = ''). Herdr computes should_capture_host_mouse as ui.mouse_capture || pane_requests_mouse, so both halves are required: with either side leaving mouse on, a trackpad event can tailgate a held Escape and get swallowed in the pane (e.g. Neovim stuck in insert mode). --- home/.config/herdr/config.toml | 5 +++++ home/.config/nvim/lua/vim_config.lua | 1 + 2 files changed, 6 insertions(+) diff --git a/home/.config/herdr/config.toml b/home/.config/herdr/config.toml index 1f0c732..9f29bce 100644 --- a/home/.config/herdr/config.toml +++ b/home/.config/herdr/config.toml @@ -12,3 +12,8 @@ workspace_picker = "prefix+w" goto = "prefix+g" copy_mode = "prefix+y" # herdr's copy-mode entry key; copy-mode's own internal keys (v/space select, y/Enter copy, q/Esc cancel) aren't configurable +[ui] +# Disable Herdr's host mouse capture so a trackpad event can't tailgate a held +# 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 diff --git a/home/.config/nvim/lua/vim_config.lua b/home/.config/nvim/lua/vim_config.lua index 12edb51..f574d1c 100644 --- a/home/.config/nvim/lua/vim_config.lua +++ b/home/.config/nvim/lua/vim_config.lua @@ -9,4 +9,5 @@ o.smartcase = true -- case-sensitive only if i type a capital o.clipboard = 'unnamedplus' -- share the system clipboard o.scrolloff = 16 -- keep cursor away from the screen edge o.undofile = true -- persistent undo across sessions +o.mouse = '' -- no mouse in nvim; also lets Herdr keep host mouse capture off so Escape isn't swallowed