diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-09 00:15:38 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | 475cc49ccbe9e81f8ec8aa2371c20fc632d110b9 (patch) | |
| tree | 904cc99e59680b502d9b158fe97fca930042c639 /test/snapshots/tagalign.snap | |
| parent | 402d6bb8f3757a2b5db171f561fc2b4f5f6d1ead (diff) | |
| download | pardes-475cc49ccbe9e81f8ec8aa2371c20fc632d110b9.tar.gz pardes-475cc49ccbe9e81f8ec8aa2371c20fc632d110b9.zip | |
tagline: align the command words across the panes of a column
Diffstat (limited to 'test/snapshots/tagalign.snap')
| -rw-r--r-- | test/snapshots/tagalign.snap | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/test/snapshots/tagalign.snap b/test/snapshots/tagalign.snap new file mode 100644 index 00000000..4a3fa2a8 --- /dev/null +++ b/test/snapshots/tagalign.snap @@ -0,0 +1,53 @@ +# The command words of every pane in a LAYOUT COLUMN end at the same screen +# column. tag_right_pad sets that end, but a path too long to fit inside the +# pad used to collapse its own gap alone, so one row's New/Del sat hard against +# its path while the row below it kept its own out at the pad — two ragged +# columns of words you read (and click) down. +# +# Here the file's path is 43 columns longer than the shell's cwd, and long +# enough (85 of the pane's 98 columns) that its own gap is zero. The shell +# below it moves out to the file's end instead of the pad's, so both rows spell +# New and Del in the same two places. +dirmk deep +dirmk deep/nested-project-directory +file deep/nested-project-directory/document.txt alpha\nbeta\ngamma +start 30 100 deep/nested-project-directory/document.txt +wait 8000 New Newcol +wait 8000 document.txt +stable 700 20000 +# Alt-n: a shell BELOW the file, in the same column +key a-n +stable 700 15000 +snap aligned +# A pane whose tag does not FIT is counted AT its right edge rather than +# dropped from the vote. Dropping it would be a threshold: here the file's tag +# is 85 columns, so one column of resize either side of that would move BOTH +# rows of words by the whole pad, and dragging a window edge across the width +# would snap them back and forth under the pointer. 87 -> 86 moves them one +# column, and the file's own tag is the only thing that loses a character. +resize 30 87 +stable 400 5000 +snap fits +resize 30 86 +stable 400 5000 +snap overby1 +resize 30 100 +stable 700 15000 +# A left click on a tagline SEEDS its tail: the gap stops being computed and +# becomes ordinary characters you own. It must not stop the pane VOTING — +# this clicks the FILE's path, and the file is the widest tag in the column, +# the one holding the end out. The shell's row below must not move a column +# (it did once: every other tagline in the column snapped left on the click, +# and a middle-click that used to hit Del landed on whitespace). +press left 12 2 +release left 12 2 +stable 400 5000 +snap clicked +# ...and proving that with the words themselves: Del at the columns the two +# snaps above put it. It closes the file, so the shell is alone in the column +# and falls back to tag_right_pad short of its own edge — the shared end is +# the LIVE widest, not a high-water mark. +press middle 86 2 +release middle 86 2 +stable 700 15000 +snap alone |
