diff options
Diffstat (limited to 'test/snapshots')
| -rw-r--r-- | test/snapshots/tagbottom.golden | 235 | ||||
| -rw-r--r-- | test/snapshots/tagbottom.snap | 161 | ||||
| -rw-r--r-- | test/snapshots/tagbottomimage.golden | 123 | ||||
| -rw-r--r-- | test/snapshots/tagbottomimage.snap | 53 | ||||
| -rw-r--r-- | test/snapshots/tagbottomshort.golden | 43 | ||||
| -rw-r--r-- | test/snapshots/tagbottomshort.snap | 48 |
6 files changed, 0 insertions, 663 deletions
diff --git a/test/snapshots/tagbottom.golden b/test/snapshots/tagbottom.golden deleted file mode 100644 index 8cae6a7d..00000000 --- a/test/snapshots/tagbottom.golden +++ /dev/null @@ -1,235 +0,0 @@ -== snap boot grid=100x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagbottom/cwd/top.txt Save Term Collapse Del -| 1 aaa -| 2 bbb -| 3 ccc -| 4 ddd -| 5 eee -| 6 fff -| 7 ggg -| 8 hhh -| 9 iii -| 10 jjj -| 11 kkk -| 12 lll -| 13 mmm -| 14 nnn -| 15 ooo -| 16 ppp -| 17 qqq -| 18 rrr -| 19 sss -| 20 ttt -| 21 uuu -| 22 vvv -| 23 www -| 24 xxx -| 25 yyy -| 26 zzz -== snap on grid=100x31 cursor=7,2 -|2: 1 aaa -|3: 2 bbb -|4: 3 ccc -|5: 4 ddd -|6: 5 eee -|7: 6 fff -|8: 7 ggg -|9: 8 hhh -|10: 9 iii -|11: 10 jjj -|12: 11 kkk -|13: 12 lll -|14: 13 mmm -|15: 14 nnn -|16: 15 ooo -|17: 16 ppp -|18: 17 qqq -|19: 18 rrr -|20: 19 sss -|21: 20 ttt -|22: 21 uuu -|23: 22 vvv -|24: 23 www -|25: 24 xxx -|26: 25 yyy -|27: 26 zzz -|28: -|30: /tmp/pardes-snap/tagbottom/cwd/top.txt Save Term Collapse Del -== snap off grid=100x31 cursor=7,3 -|2: /tmp/pardes-snap/tagbottom/cwd/top.txt Save Term Collapse Del -|3: 1 aaa -|4: 2 bbb -|5: 3 ccc -|6: 4 ddd -|7: 5 eee -|8: 6 fff -|9: 7 ggg -|10: 8 hhh -|11: 9 iii -|12: 10 jjj -|13: 11 kkk -|14: 12 lll -|15: 13 mmm -|16: 14 nnn -|17: 15 ooo -|18: 16 ppp -|19: 17 qqq -|20: 18 rrr -|21: 19 sss -|22: 20 ttt -|23: 21 uuu -|24: 22 vvv -|25: 23 www -|26: 24 xxx -|27: 25 yyy -|28: 26 zzz -|30: -== snap tag-typed grid=100x31 cursor=74,30 -|2: 1 aaa -|3: 2 bbb -|4: 3 ccc -|5: 4 ddd -|6: 5 eee -|7: 6 fff -|8: 7 ggg -|9: 8 hhh -|10: 9 iii -|11: 10 jjj -|12: 11 kkk -|13: 12 lll -|14: 13 mmm -|15: 14 nnn -|16: 15 ooo -|17: 16 ppp -|18: 17 qqq -|19: 18 rrr -|20: 19 sss -|21: 20 ttt -|22: 21 uuu -|23: 22 vvv -|24: 23 www -|25: 24 xxx -|26: 25 yyy -|27: 26 zzz -|28: -|30: /tmp/pardes-snap/tagbottom/cwd/top.txt Save Term Collapse Del bottom.txt -== snap look-bottom-tag grid=100x31 cursor=7,16 -|15: /tmp/pardes-snap/tagbottom/cwd/top.txt Save Term Collapse Del bottom.txt -|16: 1 ZZONE -|17: 2 ZZTWO -|18: -|19: -|20: -|21: -|22: -|23: -|24: -|25: -|26: -|27: -|30: /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save Term Collapse Del -== snap body-cursor grid=100x31 cursor=9,6 -== snap seam-noop grid=100x31 cursor=12,16 -== snap seam-dragged grid=100x31 cursor=12,12 -|11: /tmp/pardes-snap/tagbottom/cwd/top.txt Save Term Collapse Del bottom.txt -|12: 1 ZZONE -|13: 2 ZZTWO -|14: -|15: -|16: -|17: -== snap gutter-click grid=100x31 cursor=9,5 -|2: 2 bbb -|3: 3 ccc -|4: 4 ddd -|5: 5 eee -|6: 6 fff -|7: 7 ggg -|8: 8 hhh -|9: 9 iii -|10: 10 jjj -== snap search-prompt grid=100x31 cursor=5,21 -|20: /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save Term Collapse Del -|21: /ZZ -|22: bottom.txt:1:1 ZZONE -|23: bottom.txt:2:1 ZZTWO -|30: ^ +Search 1/2 Del -== snap leader grid=100x31 cursor=9,13 -|12: 1 ZZONE SPC -|20: -|21: -|22: -|23: -|30: /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save Term Collapse Del -== snap cut-down grid=100x31 cursor=7,5 -|2: 1 aaa -|3: 2 bbb -|4: 3 ccc -|5: 4 jj -|6: 5 kkk -|7: 6 lll -|8: 7 mmm -|9: 8 nnn -|10: 9 ooo -|11: */tmp/pardes-snap/tagbottom/cwd/top.txt Save Term Collapse Del bottom.txt -|12: 1 ZZONE -== file cut-buffer -aaa -bbb -ccc -jj -kkk -lll -mmm -nnn -ooo -ppp -qqq -rrr -sss -ttt -uuu -vvv -www -xxx -yyy -zzz -== end file -== snap del-bottom-tag grid=100x31 cursor=7,5 -|11: 10 ppp -|12: 11 qqq -|13: 12 rrr -|14: 13 sss -|15: 14 ttt -|16: 15 uuu -|17: 16 vvv -|18: 17 www -|19: 18 xxx -|20: 19 yyy -|21: 20 zzz -|30: /tmp/pardes-snap/tagbottom/cwd/top.txt Save Term Collapse Del bottom.txt -== snap off-again grid=100x31 cursor=7,6 -|2: /tmp/pardes-snap/tagbottom/cwd/top.txt Save Term Collapse Del bottom.txt -|3: 1 aaa -|4: 2 bbb -|5: 3 ccc -|6: 4 jj -|7: 5 kkk -|8: 6 lll -|9: 7 mmm -|10: 8 nnn -|11: 9 ooo -|12: 10 ppp -|13: 11 qqq -|14: 12 rrr -|15: 13 sss -|16: 14 ttt -|17: 15 uuu -|18: 16 vvv -|19: 17 www -|20: 18 xxx -|21: 19 yyy -|22: 20 zzz -|30: diff --git a/test/snapshots/tagbottom.snap b/test/snapshots/tagbottom.snap deleted file mode 100644 index 7ce0ae5a..00000000 --- a/test/snapshots/tagbottom.snap +++ /dev/null @@ -1,161 +0,0 @@ -# Tagbottom: every pane's tagline on its LAST row instead of its first, and the -# transient message row (prompts, messages, the SPC indicator) stepping up to -# the row just above it. One global bool, so the whole screen flips at once. -# -# The two things worth pinning here are not pixels. The first is that a click -# still lands where it looks like it lands: the Sel coordinate space is -# UNCHANGED (row 0 is the tag, the body starts at BOX_H) and the mouse maps a -# screen row into it, so a look or an execute on a bottom tagline acts on the -# word under the pointer instead of silently sweeping whatever body row shares -# that number. Every mouse assertion below is therefore a CONSEQUENCE — a pane -# appearing, a pane going away, a view scrolling by a counted number of rows — -# and not a picture of a highlight. The tagline-execute pair is what caught the -# bug this script exists for: before the tag row got its own arm in the -# execute/look press, both ran a blank body row and a golden recorded the -# no-op as if it had passed. -# The second is that turning it back off restores the top-tagline layout -# exactly: `off` is byte-for-byte `boot`, cursor included. -file top.txt aaa\nbbb\nccc\nddd\neee\nfff\nggg\nhhh\niii\njjj\nkkk\nlll\nmmm\nnnn\nooo\nppp\nqqq\nrrr\nsss\nttt\nuuu\nvvv\nwww\nxxx\nyyy\nzzz -file bottom.txt ZZONE\nZZTWO -# Builtins announce themselves by default, and an announcement is a band at -# the top of the body -- which moves every row this script clicks. What the -# verbs do is what is under test, not the announcement. -config Verbose off -start 31 100 top.txt -wait 8000 Newcol Joincol -wait 8000 top.txt -stable 700 20000 -snap boot -# SPC t b. The tag leaves row 1 for row 29, the body slides up one row, and -# the cursor goes with it (7,2 -> 7,1) because it is on the same file line. -key space t b -stable 700 15000 -snap on -# ...and straight back. This grid must equal `boot`'s, to the cell. -key space t b -stable 700 15000 -snap off -key space t b -stable 700 15000 -# CLICK the bottom tagline (col 50 of row 30, the pane's last row) and type -# into it. A clicked tag is insert mode, so the text lands as text, and the -# cursor is down on the tagline with it. Col 50 is past the end of the path, -# which is read-only — a click inside it parks the cursor there and the typing -# goes nowhere. -# Past the last word rather than at a counted column: the tagline's words -# have moved since (Del is last now), and a column that lands INSIDE one -# types the filename into the middle of a builtin's name. -press left 90 31 -release left 90 31 -stable 400 5000 -key i -send \x20bottom.txt -stable 600 8000 -stable 400 5000 -snap tag-typed -# ...and LOOK the word just typed, from that same bottom tagline: bottom.txt -# opens as a second pane below. It only can if the press was mapped to the tag -# — mapped as a body row it lands on blank line 29 and looks nothing at all. -press right @bottom.txt 31 -release right @bottom.txt 31 -wait 10000 ZZONE -stable 700 15000 -snap look-bottom-tag -# a body click in the UPPER pane: the cursor lands on the row under the -# pointer, counted from the pane's first row rather than from a tag that is no -# longer there. Row 6 is grid row 5, the fifth body row, file line 5. -press left 10 7 -release left 10 7 -stable 400 8000 -snap body-cursor -# No row of text is a resize handle: a click on the lower pane's FIRST row -# (grid 16, click row 17), where the seam used to be, is a click in its text, -# and both sizes stay. -press left 40 17 -release left 40 17 -motion 40 25 -stable 500 8000 -snap seam-noop -# A terminal has no rule between panes, so the grip resizes them, as acme's -# button moves a window: the lower pane's, on its tag at the bottom, dragged up -# to row 13. The upper pane keeps 10 rows, the lower grows to 19. Both -# taglines follow their own pane's bottom. -press left 1 31 -drag left 1 13 -release left 1 13 -motion 40 25 -stable 500 8000 -snap seam-dragged -# Scroll the upper pane's body down four rows and back up one, so the gutter -# click below has a scrolled view to count from. Not captured: the wheel arm of -# handleMouse is `hovered` plus scrollBy and contains no tag_bottom at all, and -# the body rendering under it is already pinned by `boot`, `on` and -# `body-cursor`. View ends at line 4. -wheel down 40 4 -wheel down 40 4 -wheel down 40 4 -wheel down 40 4 -wheel up 1 4 -stable 400 8000 -# a left click in the gutter scrolls UP to the clicked row, and the row it -# counts from is the BODY's first, not r.y + BOX_H. Row 4 is grid row 3, the -# third body row: two rows up, to line 2. Counted from the wrong end it would -# be one row up, to line 3. -press left 1 5 -release left 1 5 -stable 400 8000 -snap gutter-click -# `/` in the lower pane's body arms the search input. The prompt is CUT off the -# tagline and drawn on the message row with the cursor — and with Tagbottom the -# two are adjacent: the tail keeps its builtins on row 29 while `/ZZ` and the -# cursor sit on row 28, the last body row. The tagline under it stays whole — -# the prompt must not have eaten the row it was cut from. -press left 10 15 -release left 10 15 -stable 400 5000 -key / -send ZZ -stable 600 8000 -stable 400 5000 -snap search-prompt -key esc -settle 100 -stable 400 5000 -# the SPC leader indicator lives on that same message row, right-aligned -key space -stable 400 5000 -snap leader -key esc -settle 100 -stable 400 5000 -# THE INVERSION. Sweeping DOWN past the last body row is the ordinary "select -# to the end" gesture, and with the tag drawn BELOW the body it lands on the -# tagline — Sel row 0. Unclamped that drives the selection's far end to the TOP -# of Sel space: the highlight jumps ABOVE the anchor and a 1-2 Cut deletes lines -# nobody swept. Anchored on grid row 3 (file line 4) and dragged onto the upper -# pane's tag row, the sweep must cover lines 4..10 downward, not 2..4 upward. -press left 8 5 -drag left 8 12 -stable 400 5000 -# ...and the proof is the BUFFER, not the highlight: 1-2 Cut the sweep, save, -# and read the file back. aaa/bbb/ccc survive and kkk..zzz survive; unclamped -# this file lost bbb/ccc/ddd instead and kept eee onward. -press middle 8 12 -release middle 8 12 -release left 8 12 -stable 400 5000 -snap cut-down -key space f s -stable 700 15000 -snapfile cut-buffer /tmp/pardes-snap/tagbottom/cwd/top.txt -# EXECUTE `Del` on the lower pane's bottom tagline: the pane goes away and the -# upper one takes the whole column back. The middle button's half of the same -# tag mapping the look used above. -press middle @Del 31 -release middle @Del 31 -stable 700 15000 -snap del-bottom-tag -# and off again, one pane, its tagline back on row 1 with the body under it -key space t b -stable 700 15000 -snap off-again diff --git a/test/snapshots/tagbottomimage.golden b/test/snapshots/tagbottomimage.golden deleted file mode 100644 index aa94e8c4..00000000 --- a/test/snapshots/tagbottomimage.golden +++ /dev/null @@ -1,123 +0,0 @@ -== snap img-top grid=150x31 cursor=11,8 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagbottomimage/cwd Term+bash Save Mode Filter Collapse Del -| ls -| pic.ppm -| -| img petscii:on palette:commodore ascii:on /tmp/pardes-snap/tagbottomimage/cwd/pic.ppm Term Collapse Del -| 4*🬹~F~N🬰|G🬏▚Y~KF🬴s<fcSf🬰b^🬘J%🬝ZH|S_"Z}╲%'"qA🬗a🬝🬻 -| 8jDStG▄40e~.>>T&zZ/🬻iTY=`S~╳bkZR37v🬦🬵d4QHZ8X▛▟ -| ^🬪🬛$}DrydNU&wsz=`*r🬒🬓🬳🬟*Y🬴G6🬧f🬮/>t🬧u🬲1Rg1t🬝🬻█ -| ▖#_{🬗X@🬢&$s'C%*=w@🬆▀wq%🬡d┼a┼m─>🬭🬜A▀A🬲H]p🬝🬹 -| %?WX🬕f🬩*TA8n╱┼E▘🬭Y#qo~XVE▐(╳▀H4^[mj🬗=🬒🬕▟█ -| ]Z🬷eb~Oyl3=SL▙a🬱🬉~MPMz}FMu<🬝▚>3&▖🬷WS🬝~█ -| EF-🬑y🬔!r🬙🬐╳O🬩▐%Qj─4za/?/\a🬜"🬖🬈🬛🬟A🬙🬝▄ -| 🬃N@xzOnczIK=t0@🬖j5🬮🬧65▟{🬮🬉🬄🬩zQ9/🬝🬻 -| ╲${&%@"#ctt▀Cr5F;🬐ARM╱uej╳75🬹9▛🬻 -| h^🬜"🬈🬨▜╲|W🬊🬦k6^🬰🬶rZ─▄\z9🬎🬉4^🬎🬻 -| 🬆f│Q_V🬗wGx🬱=5▛5*&V🬟🬄ZrXGz2🬝🬻█ -| !🬷W🬐(🬭]7x_>▗er🬯~▚di🬬4jY:🬝▟ -| gU~🬧3▙bjr\C#kKMpffAjps🬝🬻 -| *🬯G"🬣▟d🬮▀zJ🬪EHV▟╳9}y▛▄ -| ``))~RyJ🬴jA~w=hLpX🬝🬻█ -| 4x▀J"TG7=y-QZ🬙╲~▛🬻 -| 🬯/+╳f9ZG🬕+{QN_🬝🬹 -| E<'─🬫pS!"n4&🬝~ -| m$dx"!2🬳&{🬝🬻 -| *8f🬩▙Jb🬒🬝🬻█ -| m🬩7CiN🬎🬹 -| pG╲L🬝🬻 -| 🬡L🬝▄ -| 🬝~ -== snap img-bottom grid=150x31 cursor=11,8 -|2: ls -|3: pic.ppm -|4: -|5: /tmp/pardes-snap/tagbottomimage/cwd Term+bash Save Mode Filter Collapse Del -|6: Tagbottom -|7: {DbgY🬲s▜M^#▐FUJ[zNq=🬝g/y╱?V@🬱🬙▌UK╱🬍("🬕KJ8hSo🬝🬻 -|8: tX🬆s>🬌`🬵<w_🬏##?h🬫(}╲J,╳`bWz🬴Ea{╳j🬑🬢j-^d%^P🬝🬻█ -|9: p95a7Y╳B🬷x~🬬/E*🬜Gf🬂🬱YzS🬙[q4t2_A4🬴Fg]🬣🬐%&🬝🬻 -|10: 🬧8n}╱🬠gAQ╳)3p▞🬣🬝%<%🬡H─🬍z🬣/🬣🬁-(Q│🬅🬈a🬫,O🬎~█ -|11: ~$15ZB<gA6🬶2^╳ErWP🬆;c▛7🬒🬈Dc<dL▛~🬱`;&🬝🬻 -|12: G#48P='k=z9tB🬨Cz-xV5[$spp*▄r=it7v▛🬝▟ -|13: f>7/J<🬍$▘🬇unm▚ssbj?-AL▗t🬢A🬜🬪;r^#🬝~█ -|14: 🬈s🬋[\🬗t▛H🬙^p{🬟🬚▐🬘4▗mB=b🬒#*WYeu🬝~█ -|15: 1╱tzz▀g🬕@W=9🬡▚🬛Bj[xyg#$🬷█Bw▜🬝🬹 -|16: Q▌M/🬊N@╲U╳?J0XD🬫🬒gN╱2🬅2🬩🬡🬆🬝"█ -|17: z🬅lK~Xx$,─HQr*rTQ!q▛&n2P🬝🬻 -|18: 🬠🬮(n🬻t▌vw🬚:🬪╳F🬰Gx🬢a2X▌🬝~ -|19: *H🬮─2R┼*🬋yP4%QY%▜=🬌j🬝🬻 -|20: 🬴9🬦┼p*bT🬶▄oe&"╳Pg🬍🬝▟ -|21: 4k🬦#a[🬦🬛🬥🬮YMfG_.🬎🬻█ -|22: 🬳ZK🬭🬌$▙W&🬋x#🬜y🬝▟ -|23: j▙-:🬫$Y^▀7IP🬝~ -|24: 🬟P🬭4/🬶zD╳S🬝~ -|25: Q🬝🬙bKmeD🬝▄█ -|26: ▖=🬜🬘Xj🬝🬹 -|27: P4🬜1🬝~█ -|28: 🬮G🬝🬹 -|29: 🬭▟█ -|30: img petscii:on palette:commodore ascii:on /tmp/pardes-snap/tagbottomimage/cwd/pic.ppm Term Collapse Del -== style img-bottom grid=150x31 -|0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, -|1: 0-1 d,#887455, 2-149 #becfc4,#314738, -|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-149 #e5eee5,#0d1410, -|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-149 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-149 d,#0d1410, -|5: 0-1 d,#496656, 2-37 #b2c3b8,#1d2824, 38-47 #d3b0d9,#1d2824, 48-149 #b2c3b8,#1d2824, -|6: 0-0 d,#152019, 1-138 d,#0d1410, 139-139 d,#1d2824, 140-149 #b2c3b8,#1d2824, -|7: 0-0 d,#152019, 1-52 d,#0d1410, 53-55 #959595,#6c6c6c, 56-56 #6c6c6c,#959595, 57-57 #959595,#6c6c6c, 58-58 #6c6c6c,#959595, 59-60 #959595,#6c6c6c, 61-63 #6c6c6c,#959595, 64-65 #959595,#6c6c6c, 66-66 #6c6c6c,#959595, 67-71 #959595,#6c6c6c, 72-72 #6c6c6c,#959595, 73-73 #959595,#6c6c6c, 74-76 #6c6c6c,#959595, 77-77 #959595,#6c6c6c, 78-81 #6c6c6c,#959595, 82-84 #959595,#6c6c6c, 85-85 #6c6c6c,#959595, 86-87 #959595,#6c6c6c, 88-88 #6c6c6c,#959595, 89-89 #959595,#6c6c6c, 90-90 #6c6c6c,#959595, 91-92 #959595,#6c6c6c, 93-96 #6c6c6c,#959595, 97-97 #6c6c6c,#352879, 98-98 #352879,#959595, 99-149 #352879,#0d1410, -|8: 0-0 d,#152019, 1-52 d,#0d1410, 53-58 #959595,#6c6c6c, 59-59 #444444,#959595, 60-64 #959595,#6c6c6c, 65-66 #6c6c6c,#959595, 67-71 #959595,#6c6c6c, 72-72 #444444,#959595, 73-73 #959595,#6c6c6c, 74-74 #6c6c6c,#959595, 75-75 #959595,#6c6c6c, 76-76 #444444,#959595, 77-81 #6c6c6c,#959595, 82-82 #959595,#6c6c6c, 83-85 #6c6c6c,#959595, 86-87 #959595,#6c6c6c, 88-89 #6c6c6c,#959595, 90-90 #959595,#6c6c6c, 91-92 #6c6c6c,#959595, 93-93 #959595,#6c6c6c, 94-94 #6c6c6c,#959595, 95-95 #6c6c6c,#352879, 96-96 #352879,#959595, 97-97 #352879,#6c5eb5, 98-98 #352879,#352879, 99-149 #352879,#0d1410, -|9: 0-0 d,#152019, 1-52 d,#0d1410, 53-57 #959595,#6c6c6c, 58-58 #6c6c6c,#959595, 59-59 #959595,#6c6c6c, 60-60 #6c6c6c,#959595, 61-62 #959595,#6c6c6c, 63-63 #6c6c6c,#959595, 64-67 #959595,#6c6c6c, 68-68 #6c6c6c,#959595, 69-70 #959595,#6c6c6c, 71-71 #6c6c6c,#959595, 72-73 #959595,#6c6c6c, 74-75 #6c6c6c,#959595, 76-77 #959595,#6c6c6c, 78-79 #6c6c6c,#959595, 80-82 #959595,#6c6c6c, 83-86 #6c6c6c,#959595, 87-90 #959595,#6c6c6c, 91-91 #6c6c6c,#959595, 92-92 #959595,#6c6c6c, 93-93 #6c6c6c,#352879, 94-94 #352879,#6c6c6c, 95-98 #352879,#352879, 99-149 #352879,#0d1410, -|10: 0-0 d,#152019, 1-52 d,#0d1410, 53-53 #6c6c6c,#959595, 54-54 #959595,#6c6c6c, 55-55 #6c6c6c,#959595, 56-59 #959595,#6c6c6c, 60-60 #6c6c6c,#959595, 61-61 #959595,#6c6c6c, 62-63 #6c6c6c,#959595, 64-64 #959595,#6c6c6c, 65-65 #6c6c6c,#959595, 66-67 #959595,#6c6c6c, 68-71 #6c6c6c,#959595, 72-75 #959595,#6c6c6c, 76-77 #6c6c6c,#959595, 78-78 #959595,#6c6c6c, 79-79 #6c6c6c,#959595, 80-81 #959595,#6c6c6c, 82-83 #6c6c6c,#959595, 84-86 #959595,#6c6c6c, 87-87 #6c6c6c,#959595, 88-90 #959595,#6c6c6c, 91-92 #6c6c6c,#352879, 93-93 #352879,#6c5eb5, 94-98 #352879,#352879, 99-149 #352879,#0d1410, -|11: 0-0 d,#152019, 1-52 d,#0d1410, 53-54 #6c6c6c,#959595, 55-55 #959595,#6c6c6c, 56-56 #6c6c6c,#959595, 57-57 #959595,#6c6c6c, 58-59 #6c6c6c,#959595, 60-62 #959595,#6c6c6c, 63-63 #6c6c6c,#959595, 64-64 #959595,#6c6c6c, 65-65 #6c6c6c,#959595, 66-66 #959595,#6c6c6c, 67-70 #6c6c6c,#959595, 71-73 #959595,#6c6c6c, 74-74 #6c6c6c,#959595, 75-77 #959595,#6c6c6c, 78-80 #6c6c6c,#959595, 81-82 #959595,#6c6c6c, 83-83 #6c6c6c,#959595, 84-85 #959595,#6c6c6c, 86-86 #6c6c6c,#959595, 87-88 #959595,#6c6c6c, 89-89 #959595,#352879, 90-90 #352879,#6c6c6c, 91-98 #352879,#352879, 99-149 #352879,#0d1410, -|12: 0-0 d,#152019, 1-52 d,#0d1410, 53-54 #6c6c6c,#959595, 55-55 #959595,#6c6c6c, 56-56 #6c6c6c,#959595, 57-58 #959595,#6c6c6c, 59-59 #6c6c6c,#959595, 60-60 #959595,#6c6c6c, 61-61 #6c6c6c,#959595, 62-64 #959595,#6c6c6c, 65-66 #6c6c6c,#959595, 67-69 #959595,#6c6c6c, 70-70 #6c6c6c,#959595, 71-72 #959595,#6c6c6c, 73-74 #6c6c6c,#959595, 75-75 #959595,#6c6c6c, 76-77 #6c6c6c,#959595, 78-83 #959595,#6c6c6c, 84-86 #6c6c6c,#959595, 87-87 #959595,#352879, 88-88 #352879,#6c6c6c, 89-98 #352879,#352879, 99-149 #352879,#0d1410, -|13: 0-0 d,#152019, 1-52 d,#0d1410, 53-58 #959595,#6c6c6c, 59-59 #6c6c6c,#959595, 60-62 #959595,#6c6c6c, 63-64 #6c6c6c,#959595, 65-68 #959595,#6c6c6c, 69-69 #6c6c6c,#959595, 70-72 #959595,#6c6c6c, 73-73 #6c6c6c,#959595, 74-77 #959595,#6c6c6c, 78-79 #6c6c6c,#959595, 80-81 #959595,#6c6c6c, 82-83 #6c6c6c,#959595, 84-84 #959595,#6c6c6c, 85-85 #6c6c6c,#352879, 86-86 #959595,#352879, 87-87 #352879,#6c5eb5, 88-98 #352879,#352879, 99-149 #352879,#0d1410, -|14: 0-0 d,#152019, 1-52 d,#0d1410, 53-53 #959595,#6c6c6c, 54-54 #6c6c6c,#959595, 55-55 #959595,#6c6c6c, 56-56 #6c6c6c,#959595, 57-58 #959595,#6c6c6c, 59-59 #6c6c6c,#959595, 60-60 #959595,#6c6c6c, 61-61 #6c6c6c,#959595, 62-62 #959595,#6c6c6c, 63-64 #6c6c6c,#959595, 65-71 #959595,#6c6c6c, 72-73 #6c6c6c,#959595, 74-76 #959595,#6c6c6c, 77-77 #6c6c6c,#959595, 78-79 #959595,#6c6c6c, 80-80 #6c6c6c,#959595, 81-82 #959595,#6c6c6c, 83-83 #6c6c6c,#352879, 84-84 #959595,#352879, 85-85 #352879,#6c5eb5, 86-98 #352879,#352879, 99-149 #352879,#0d1410, -|15: 0-0 d,#152019, 1-52 d,#0d1410, 53-53 #6c6c6c,#959595, 54-55 #959595,#6c6c6c, 56-56 #6c6c6c,#959595, 57-60 #959595,#6c6c6c, 61-63 #6c6c6c,#959595, 64-64 #959595,#6c6c6c, 65-65 #6c6c6c,#959595, 66-66 #959595,#6c6c6c, 67-67 #6c6c6c,#959595, 68-70 #959595,#6c6c6c, 71-72 #6c6c6c,#959595, 73-75 #959595,#6c6c6c, 76-77 #6c6c6c,#959595, 78-79 #959595,#6c6c6c, 80-80 #6c6c6c,#959595, 81-81 #959595,#352879, 82-82 #352879,#6c5eb5, 83-98 #352879,#352879, 99-149 #352879,#0d1410, -|16: 0-0 d,#152019, 1-52 d,#0d1410, 53-57 #959595,#6c6c6c, 58-58 #6c6c6c,#959595, 59-60 #959595,#6c6c6c, 61-61 #6c6c6c,#959595, 62-63 #959595,#6c6c6c, 64-64 #6c6c6c,#959595, 65-66 #959595,#6c6c6c, 67-67 #6c6c6c,#959595, 68-68 #959595,#6c6c6c, 69-69 #6c6c6c,#959595, 70-70 #959595,#6c6c6c, 71-72 #6c6c6c,#959595, 73-78 #959595,#6c6c6c, 79-79 #6c6c6c,#352879, 80-80 #959595,#352879, 81-81 #352879,#6c5eb5, 82-98 #352879,#352879, 99-149 #352879,#0d1410, -|17: 0-0 d,#152019, 1-52 d,#0d1410, 53-54 #959595,#6c6c6c, 55-56 #6c6c6c,#959595, 57-58 #959595,#6c6c6c, 59-60 #6c6c6c,#959595, 61-62 #959595,#6c6c6c, 63-63 #6c6c6c,#959595, 64-64 #959595,#6c6c6c, 65-67 #6c6c6c,#959595, 68-68 #959595,#6c6c6c, 69-72 #6c6c6c,#959595, 73-74 #959595,#6c6c6c, 75-75 #6c6c6c,#959595, 76-76 #959595,#6c6c6c, 77-77 #6c6c6c,#352879, 78-78 #352879,#959595, 79-98 #352879,#352879, 99-149 #352879,#0d1410, -|18: 0-0 d,#152019, 1-52 d,#0d1410, 53-54 #959595,#6c6c6c, 55-55 #6c6c6c,#959595, 56-60 #959595,#6c6c6c, 61-61 #6c6c6c,#959595, 62-62 #959595,#6c6c6c, 63-63 #444444,#6c6c6c, 64-66 #959595,#6c6c6c, 67-68 #6c6c6c,#959595, 69-71 #959595,#6c6c6c, 72-73 #6c6c6c,#959595, 74-74 #959595,#6c6c6c, 75-98 #6c6c6c,#352879, 99-149 #6c6c6c,#0d1410, -|19: 0-0 d,#152019, 1-52 d,#0d1410, 53-53 #6c6c6c,#959595, 54-55 #959595,#6c6c6c, 56-56 #6c6c6c,#959595, 57-59 #959595,#6c6c6c, 60-60 #6c6c6c,#959595, 61-61 #959595,#6c6c6c, 62-64 #6c6c6c,#959595, 65-68 #959595,#6c6c6c, 69-69 #6c6c6c,#959595, 70-72 #959595,#6c6c6c, 73-73 #6c6c6c,#352879, 74-74 #352879,#6c6c6c, 75-98 #352879,#352879, 99-149 #352879,#0d1410, -|20: 0-0 d,#152019, 1-52 d,#0d1410, 53-53 #6c6c6c,#959595, 54-56 #959595,#6c6c6c, 57-57 #6c6c6c,#959595, 58-58 #959595,#6c6c6c, 59-59 #6c6c6c,#959595, 60-60 #959595,#6c6c6c, 61-61 #6c6c6c,#959595, 62-63 #959595,#6c6c6c, 64-64 #6c6c6c,#959595, 65-70 #959595,#6c6c6c, 71-71 #959595,#352879, 72-72 #352879,#6c6c6c, 73-98 #352879,#352879, 99-149 #352879,#0d1410, -|21: 0-0 d,#152019, 1-52 d,#0d1410, 53-53 #6c6c6c,#959595, 54-55 #959595,#6c6c6c, 56-56 #6c6c6c,#959595, 57-59 #959595,#6c6c6c, 60-60 #6c6c6c,#959595, 61-63 #959595,#6c6c6c, 64-65 #6c6c6c,#959595, 66-68 #959595,#6c6c6c, 69-69 #959595,#352879, 70-70 #352879,#6c6c6c, 71-71 #352879,#6c5eb5, 72-98 #352879,#352879, 99-149 #352879,#0d1410, -|22: 0-0 d,#152019, 1-52 d,#0d1410, 53-55 #6c6c6c,#959595, 56-58 #959595,#6c6c6c, 59-59 #6c6c6c,#959595, 60-60 #959595,#6c6c6c, 61-61 #6c6c6c,#959595, 62-65 #959595,#6c6c6c, 66-66 #6c6c6c,#959595, 67-67 #6c6c6c,#352879, 68-68 #352879,#6c6c6c, 69-98 #352879,#352879, 99-149 #352879,#0d1410, -|23: 0-0 d,#152019, 1-52 d,#0d1410, 53-53 #6c6c6c,#959595, 54-57 #959595,#6c6c6c, 58-59 #6c6c6c,#959595, 60-61 #959595,#6c6c6c, 62-62 #6c6c6c,#959595, 63-64 #959595,#6c6c6c, 65-65 #6c6c6c,#352879, 66-98 #959595,#352879, 99-149 #959595,#0d1410, -|24: 0-0 d,#152019, 1-52 d,#0d1410, 53-60 #959595,#6c6c6c, 61-61 #6c6c6c,#959595, 62-62 #959595,#6c6c6c, 63-98 #959595,#352879, 99-149 #959595,#0d1410, -|25: 0-0 d,#152019, 1-52 d,#0d1410, 53-56 #959595,#6c6c6c, 57-60 #6c6c6c,#959595, 61-61 #6c6c6c,#352879, 62-63 #352879,#6c5eb5, 64-98 #352879,#352879, 99-149 #352879,#0d1410, -|26: 0-0 d,#152019, 1-52 d,#0d1410, 53-57 #959595,#6c6c6c, 58-58 #6c6c6c,#959595, 59-59 #6c6c6c,#352879, 60-60 #352879,#6c5eb5, 61-98 #352879,#352879, 99-149 #352879,#0d1410, -|27: 0-0 d,#152019, 1-52 d,#0d1410, 53-54 #959595,#6c6c6c, 55-56 #6c6c6c,#959595, 57-57 #6c6c6c,#352879, 58-58 #959595,#352879, 59-59 #352879,#6c5eb5, 60-98 #352879,#352879, 99-149 #352879,#0d1410, -|28: 0-0 d,#152019, 1-52 d,#0d1410, 53-54 #959595,#6c6c6c, 55-55 #6c6c6c,#352879, 56-56 #352879,#6c6c6c, 57-98 #352879,#352879, 99-149 #352879,#0d1410, -|29: 0-0 d,#152019, 1-52 d,#0d1410, 53-53 #352879,#6c6c6c, 54-54 #352879,#959595, 55-55 #352879,#6c5eb5, 56-98 #352879,#352879, 99-149 #352879,#0d1410, -|30: 0-1 d,#add38a, 2-79 #becfc4,#314738, 80-87 #dfbce5,#314738, 88-149 #becfc4,#314738, -== snap search-prompt grid=150x31 cursor=149,6 -|6: /ZZ -== snap del-image grid=150x31 cursor=5,7 -|5: -|6: -|7: pic.ppm -|8: -|9: -|10: -|11: -|12: -|13: -|14: -|15: -|16: -|17: -|18: -|19: -|20: -|21: -|22: -|23: -|24: -|25: -|26: -|27: -|28: -|29: -|30: /tmp/pardes-snap/tagbottomimage/cwd Term+bash Save Mode Filter Collapse Del diff --git a/test/snapshots/tagbottomimage.snap b/test/snapshots/tagbottomimage.snap deleted file mode 100644 index e24a5c5c..00000000 --- a/test/snapshots/tagbottomimage.snap +++ /dev/null @@ -1,53 +0,0 @@ -# Tagbottom against the one pane kind whose renderPane RETURNS EARLY. An image -# draws no body rows and no tagline of its own — the tag comes from the outer -# loop and so does the transient message row — so it is exactly the pane where -# "the tag moved" and "the message row moved with it" can come apart. Nothing -# in tagbottom.snap touches one. -ppmdiag pic.ppm -start 31 150 -n 1 -wait 8000 Newcol Joincol -stable 700 20000 -# open it the way images.snap does: type the name into the shell pane's own -# text and right-click it. The narrow-window image splits below that shell. -press left 5 9 -release left 5 9 -stable 400 5000 -key i -text pic.ppm -key esc -settle 100 -press right 6 9 -release right 6 9 -wait 10000 img -stable 700 20000 -snap img-top -# SPC t b: the tag leaves grid row 6 for row 30 and the glyph art slides up into the -# row it left. The style capture is the half a text grid cannot see — the -# tagline's chrome colours have to travel with it, and a tag row drawn in the -# palette of the cell art under it would read as part of the picture. -key space t b -stable 700 15000 -snap img-bottom -snapstyle img-bottom -# `/` on an image pane. There is no text to search, and that is the point: the -# prompt is drawn by the message-row pass, which runs OUTSIDE renderPane -# precisely so an early-returning pane still gets one. With Tagbottom it lands -# on the last row of the art (grid 29), just above the tagline on grid 30 — -# over the picture, never over the tag it was cut from. -key / -send ZZ -stable 600 8000 -stable 400 5000 -snap search-prompt -key esc -settle 100 -stable 400 5000 -# ...and EXECUTE `Del` on that bottom tagline, which is the assertion the -# pixels cannot make: the middle click has to map grid row 30 to the image pane's -# TAG row rather than to a body row it has no body for. The image pane goes -# away entirely and the shell takes the whole window back. -# `@Del` locates the command text without depending on the image's metadata. -press middle @Del 31 -release middle @Del 31 -stable 700 15000 -snap del-image diff --git a/test/snapshots/tagbottomshort.golden b/test/snapshots/tagbottomshort.golden deleted file mode 100644 index a0c0547c..00000000 --- a/test/snapshots/tagbottomshort.golden +++ /dev/null @@ -1,43 +0,0 @@ -== snap roomy grid=80x11 cursor=5,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -| 1 one -| 2 two -| /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Term Collapse Del -| /ZZ -| -| -| -| -|^ +Search 0 Del -== snap two-body grid=80x5 cursor=5,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Term Collapse Del -| /ZZ -|^ +Search 0 Del -== snap one-body grid=80x4 cursor=79,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Term Collapse Del -|^ +Search 0 Del -== snap tag-only grid=80x2 cursor=79,1 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Term Collapse Del -== snap regrown grid=80x11 cursor=5,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -| 1 one -| 2 two -| /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Term Collapse Del -| /ZZ -| -| -| -| -|^ +Search 0 Del -== snap leader-one-body grid=80x4 cursor=7,2 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit -| New Term Find Grep Joincol Delcol -| 1 one SPC -| /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Term Collapse Del diff --git a/test/snapshots/tagbottomshort.snap b/test/snapshots/tagbottomshort.snap deleted file mode 100644 index 58da6a87..00000000 --- a/test/snapshots/tagbottomshort.snap +++ /dev/null @@ -1,48 +0,0 @@ -# The Tagbottom message row against a pane with almost no body. That row is the -# pane's LAST BODY row — the tagline's neighbour once Tagbottom has taken the -# last row — so it only exists while the pane HAS a body row. Two rows is the -# smallest pane that does. One row is a tagline and nothing else, and there the -# message waits: not drawn over the tag, and not on the row above the pane, -# which is what `r.y + r.h - 1 - BOX_H` gives you when the guard is off by one. -file s.txt one\ntwo\nthree\nfour\nfive\nsix -start 11 80 s.txt -wait 8000 s.txt -stable 700 20000 -key space t b -stable 700 15000 -# `/` with room to spare: the prompt is its own line, drawn on grid 8, the last -# body row, with the cursor; the tagline (grid 9) never holds any of it. -key / -send ZZ -stable 600 8000 -stable 400 5000 -snap roomy -# two body rows left; the prompt takes the lower one and line 1 still shows -resize 5 80 -stable 700 10000 -snap two-body -# one body row, and the prompt takes it. The tagline underneath must still be -# drawn in full — this is where an off-by-one eats it. -resize 4 80 -stable 700 10000 -snap one-body -# the tagline alone. No body row, so nothing of the prompt is drawn anywhere — -# not over the tag, not on the row above the pane, and its caret with it. The -# tagline itself is untouched, exactly as `tag-only` would look unarmed. -resize 2 80 -stable 700 10000 -snap tag-only -# ...and grown back, still armed, back on the last body row -resize 11 80 -stable 700 10000 -snap regrown -key esc -settle 100 -stable 400 5000 -# the SPC leader indicator rides the same row, right-aligned, and shrinks onto -# the single body row with it -resize 4 80 -stable 700 10000 -key space -stable 400 8000 -snap leader-one-body |
