From 68d208e1a0ff37eaef4a2a97b04797a1a6df277c Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 5 Aug 2026 15:32:57 -0300 Subject: boot a file argument alone --- test/snapshots/windownav.snap | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'test/snapshots/windownav.snap') diff --git a/test/snapshots/windownav.snap b/test/snapshots/windownav.snap index bc88eefa..5652116b 100644 --- a/test/snapshots/windownav.snap +++ b/test/snapshots/windownav.snap @@ -13,10 +13,19 @@ start 30 100 w.txt wait 8000 New Newcol wait 8000 w.txt stable 700 20000 -# left column = the file, right column = the launch shell; the file has focus +# A FILE boots alone now, so the terminal every hop below needs is opened here: +# SPC c n (Newcol) puts it in a column of its own on the right and focuses it, +# SPC w h comes straight back. WHAT THIS COST: the first SPC w t used to run +# against a shell that had never been focused, which is Toggleterm's fallback +# scan; nothing reaches that branch any more, because every way a script has of +# making a terminal also focuses it. +key space c n +stable 700 15000 +key space w h +stable 400 5000 +# left column = the file, right column = that shell; the file has focus snap start -# SPC w t with a shell that has NEVER been focused: nothing to find in the -# history, so it falls back to a scan and still lands in the right column +# SPC w t: the hop to the most recently focused TERMINAL, the one just opened key space w t stable 400 5000 snap to-term -- cgit v1.3