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/leader.golden | 45 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'test/snapshots/leader.golden') diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index 201888ec..47b1cb4e 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -202,7 +202,7 @@ | 15 SPC t d Debug | 16 SPC t n NextColor | 17 SPC t r Crt -| 18 +| 18 SPC w h Left == snap help-group grid=100x40 cursor=7,22 |Kill Newcol Tutor Debug Colors NextColor Crt Dump | NOR /tmp/pardes-snap/leader/cwd/cmds.txt Save De NOR /tmp/pardes-snap/leader/cwd Del @@ -366,7 +366,48 @@ | 15 SPC t d Debug | 16 SPC t n NextColor | 17 SPC t r Crt -| 18 +| 18 SPC w h Left +== snap help-window grid=100x40 cursor=7,22 +|Kill Newcol Tutor Debug Colors NextColor Crt Dump +| NOR /tmp/pardes-snap/leader/cwd/cmds.txt Save De NOR /tmp/pardes-snap/leader/cwd Del +| 1 Help +| cmds.txt +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| NOR /tmp/pardes-snap/leader/cwd/+Help Del +| 1 pardes builtins under SPC w +| 2 +| 3 SPC w h Left +| 4 SPC w j Down +| 5 SPC w k Up +| 6 SPC w l Right +| 7 SPC w t Toggleterm +| 8 +| +| +| +| +| +| +| +| +| +| == snap esc-del grid=100x40 cursor=7,2 |Kill Newcol Tutor Debug Colors NextColor Crt Dump | NOR /tmp/pardes-snap/leader/cwd/cmds.txt Save De NOR /tmp/pardes-snap/leader/cwd Del -- cgit v1.3