diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-09 06:54:27 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | 599dd82f96b9d091aae78300aa6c3fbc81f9eb69 (patch) | |
| tree | 532d29eb0d79896cd730fb324df4866056306506 /test/snapshots/tagalign2col.snap | |
| parent | 628aa40f13e9bbd313b51ab625f193110aad8dd0 (diff) | |
| download | pardes-599dd82f96b9d091aae78300aa6c3fbc81f9eb69.tar.gz pardes-599dd82f96b9d091aae78300aa6c3fbc81f9eb69.zip | |
review pass: fix the eaten Tab, drop the duplicated code, cover the gaps
Diffstat (limited to 'test/snapshots/tagalign2col.snap')
| -rw-r--r-- | test/snapshots/tagalign2col.snap | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/snapshots/tagalign2col.snap b/test/snapshots/tagalign2col.snap new file mode 100644 index 00000000..02add6fd --- /dev/null +++ b/test/snapshots/tagalign2col.snap @@ -0,0 +1,45 @@ +# The shared tail-end is scoped to a LAYOUT COLUMN. tagalign.snap proves the +# sharing but only ever has one column, so nothing there would notice a vote +# that leaked sideways: every pane in the window would still line up, and the +# feature would look like it worked right up until you opened a second column. +# +# Here the long path is in the LEFT column (that is which side it lands on: +# `SPC c n` puts the NEW column on the right, so the boot file keeps the left) +# and the right column is a plain shell. Both columns are 80 wide, so both +# would end their words at tag_right_pad — 58 columns in — if nothing pushed. +dirmk deep +dirmk deep/proj +file deep/proj/document.txt alpha\nbeta\ngamma +start 30 160 deep/proj/document.txt +wait 8000 New Newcol +wait 8000 document.txt +stable 700 20000 +# `SPC c n`: a shell in a column of its own on the right. Two columns, one pane +# each. The file's own tag is 69 columns and so pushes past its column's pad; +# the shell on the right sits AT its pad, 58 in. Read the two ends off this +# snap — they are what the next one must not disturb. +key space c n +stable 700 15000 +key space w h +stable 400 5000 +snap onecol +# Alt-n: a second pane in the LEFT column. It is 41 columns of tag and would +# right-align at 58 on its own; the file above it drags it out to 69 instead. +# THE ASSERTION: the right column's `New Del` has not moved a cell — same +# absolute column as in `onecol`, still at its own pad — while the left +# column's two rows now agree with each other at 69. +key a-n +stable 700 15000 +snap aligned +# ...and the ends are computed per column, not once for the window. Drag the +# vertical border 20 columns right: the left column grows to 100 (tw-pad 78 is +# now past the file's 69, so its pad binds again and both left rows move OUT to +# 78) and the right column shrinks to 60 (tw-pad 38 is now short of the shell's +# own 41, so its words fall back hard against the path at 41). Two different +# rules firing in the same frame, one per column — a single window-wide end +# could not produce this grid at all. +press left 80 10 +drag left 100 10 +release left 100 10 +stable 700 15000 +snap widened |
