summaryrefslogtreecommitdiff
path: root/test/snapshots/windownav.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-02 18:04:34 -0300
committerGabriel Schneider <[email protected]>2026-08-10 09:17:07 -0300
commit4ffc8ed795ff58426aea28d3b3b38df1428d2980 (patch)
tree65c36f8b2a7c8a3f8597b23b95878a52423f4f20 /test/snapshots/windownav.snap
parent5961587b227e5fa097fb033e32c29da08a23fb18 (diff)
downloadpardes-4ffc8ed795ff58426aea28d3b3b38df1428d2980.tar.gz
pardes-4ffc8ed795ff58426aea28d3b3b38df1428d2980.zip
normal Esc toggles document/terminal focus
Diffstat (limited to 'test/snapshots/windownav.snap')
-rw-r--r--test/snapshots/windownav.snap15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/snapshots/windownav.snap b/test/snapshots/windownav.snap
index 0e57fc1e..cbb5490b 100644
--- a/test/snapshots/windownav.snap
+++ b/test/snapshots/windownav.snap
@@ -1,8 +1,9 @@
# RULE: moving focus is a BUILTIN like any other, so there is ONE
# implementation and every route reaches it. SPC w h/j/k/l run Left/Down/Up/
# Right — the geometric focusDir the Ctrl-w prefix also runs — and SPC w t
-# runs Toggleterm, the hop between the most recently focused DOCUMENT (a file,
-# an image, a +Search/+Help output buffer: things you READ) and the most
+# plus body-normal Esc run Toggleterm, the hop between the most recently
+# focused DOCUMENT (a file, an image, a +Search/+Help output buffer: things
+# you READ) and the most
# recently focused TERMINAL. "Most recent" is the focus history the core
# already keeps to hand focus back when a pane closes, so the hop back is the
# same key. Focus shows up in the golden's `cursor=` header: that is the
@@ -23,6 +24,16 @@ snap to-term
key space w t
stable 400 5000
snap back-to-file
+# A bare Esc from a body in normal mode dispatches that SAME builtin: file to
+# terminal, then the same key on the normal-mode terminal returns to the file.
+key esc
+settle 100
+stable 400 5000
+snap esc-to-term
+key esc
+settle 100
+stable 400 5000
+snap esc-back-to-file
# Alt-n: a second shell, below the file — the left column now has two rows
key a-n
stable 700 15000