blob: 02add6fd050a428985a1b350fedeabd483c236c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
|