From a1f26fc4977b185cbd603749157360c011452e5e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 26 Jul 2026 23:50:25 -0300 Subject: window navigation builtins: SPC w h/j/k/l focus, SPC w t file<->terminal Left/Down/Up/Right run the existing focusDir (now taking the pane the builtin ran on, so an executed name acts on ITS pane); the Ctrl-w prefix routes through the same four builtins instead of calling focusDir itself. Toggleterm hops between the most recently focused document and terminal off focus_hist, the MRU the core already rebuilds each sync. Ctrl-w stays: a tty-mode pane never sees SPC, so it is the only keyboard way out of one. Its snapshot step now moves focus somewhere (c-w l), which the old c-w h in that layout did not. --- test/snapshots/windowops.snap | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/snapshots/windowops.snap') diff --git a/test/snapshots/windowops.snap b/test/snapshots/windowops.snap index 13e35fc5..8e9ba070 100644 --- a/test/snapshots/windowops.snap +++ b/test/snapshots/windowops.snap @@ -1,4 +1,4 @@ -# hover resize hints, border drags, move drag, Alt-n, Ctrl-w focus, Debug box +# hover resize hints, border drags, move drag, Alt-n, Ctrl-w focus (routed through the Right builtin), Debug box file w.txt x start 30 100 -n 3 wait 8000 w.txt @@ -37,10 +37,12 @@ snap moved key a-n stable 700 15000 snap altn -# Ctrl-w h: focus left -key c-w h +# Ctrl-w l: focus right, into the pane just moved to the right column. The +# prefix runs the SAME Right builtin `SPC w l` runs (windownav covers the +# leader side); `h` from here would have nothing to its left to prove. +key c-w l stable 400 5000 -snap focus-left +snap focus-right # Debug overlay on (topbar middle-click on Debug), then off press middle 19 1 release middle 19 1 -- cgit v1.3