diff options
Diffstat (limited to 'test/snapshots/ttylook.snap')
| -rw-r--r-- | test/snapshots/ttylook.snap | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/test/snapshots/ttylook.snap b/test/snapshots/ttylook.snap new file mode 100644 index 00000000..0a125d2c --- /dev/null +++ b/test/snapshots/ttylook.snap @@ -0,0 +1,69 @@ +# tty n/N token motion (normal mode only): n/N SELECT the next/prev +# whitespace-separated token that look resolves — several per line, so the +# greet ls row hops big.txt -> plain.txt -> sub — moving the cursor to the +# token start and opening NOTHING. Return looks the selection (dir -> the +# pane listing it, file -> pane) and focus follows what opened. The first +# n wraps from the prompt row to the first token; insert-mode n still +# types; and a pane with nothing look-able in it never traps the walk, +# because the walk is a RING ACROSS PANES rather than a scan of the one +# you are in. +lines big.txt 40 +file plain.txt just text +dirmk sub +start 31 120 -n 3 +wait 8000 big.txt +stable 700 20000 +# first n: cursor sits at the shell prompt below the output — wrap lands on +# the ls row's first token, big.txt; nothing opens +key space j n +stable 400 5000 +snap tok1 +snapstyle tok1 +# same row, next token: plain.txt +key space j n +stable 400 5000 +snap tok2 +# N steps back to big.txt +key space j p +stable 400 5000 +snap tokback +# insert-mode n still types (a run splice), no stepping; undo it +key i +text nn +key esc +settle 100 +stable 400 5000 +snap insert +key u +stable 400 5000 +# resume the walk from big.txt's start: plain.txt, then sub +key space j n +stable 400 5000 +key space j n +stable 400 5000 +snap tok3 +# Return looks the selected dir: sub's directory pane opens, empty as sub +# is, and takes the keyboard +key enter +wait 10000 sub/ +stable 700 15000 +snap diropen +# the fresh pane lists nothing, sub being empty, and that is not where n +# stops: the ring is spun on the panes that have LOOKED, so the step leaves +# this pane for the one it was looked out of. That pane's cursor is on its +# last token (`sub`), so the walk runs off the end and comes round to its +# first — big.txt. +key space j n +stable 400 5000 +snap noop +# back in the first pane, Enter with the cursor ON a token looks it (no +# selection: the cursor word expands): the click puts it on the ls command +# line's `ls`, a word no file names, which a terminal lists in a +Search, +# its row the place in that terminal (@p1:1:1-2) +press left 4 5 +release left 4 5 +stable 400 5000 +key enter +wait 10000 @p1:1:1-2 +stable 700 15000 +snap cursorword |
