summaryrefslogtreecommitdiff
path: root/test/snapshots/windowops.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-26 23:50:25 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commita1f26fc4977b185cbd603749157360c011452e5e (patch)
tree5702b7316227e1714ae29885f445b2a2f3b00929 /test/snapshots/windowops.snap
parentd9da3ce9e87cf4c43bf34664031f090e6dde2410 (diff)
downloadpardes-a1f26fc4977b185cbd603749157360c011452e5e.tar.gz
pardes-a1f26fc4977b185cbd603749157360c011452e5e.zip
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.
Diffstat (limited to 'test/snapshots/windowops.snap')
-rw-r--r--test/snapshots/windowops.snap10
1 files changed, 6 insertions, 4 deletions
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