diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 02:27:22 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 09:54:56 -0300 |
| commit | 18e25095a8fe76943a120bcf30225e5a01ab1858 (patch) | |
| tree | 05fb37cf9fc42fe99b9ecb04dfe1ce0332c969fb /test/snapshots/ttylook.snap | |
| parent | d4485660aa6339dbe546a81f4b543d68dfbfa9ec (diff) | |
| download | pardes-18e25095a8fe76943a120bcf30225e5a01ab1858.tar.gz pardes-18e25095a8fe76943a120bcf30225e5a01ab1858.zip | |
snapshots: cmdword, lookpanes and ttylook come back for a directory looked at opening the pane that lists it: cmdword's `@`Look .`` opens the cwd/ pane listing zzmark.txt, whose tag then runs the bare Exec as nothing and the command word as a command pane (a shell's tag typed it into the shell); lookpanes' alpha is its directory pane, through which zqonly.txt and then pick.txt resolve in access order as through the shell in alpha before; ttylook's Return on sub opens the empty sub/ pane, which n leaves for the pane it was looked out of, and its last capture, which looks the `ls` under the cursor into a +Search, is named cursorword for what it pins (it was fileopen, after a big.txt it never opened)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
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 |
