diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-09 01:26:08 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | 09c35b22793153d201fa202b52671a6442e5e2e1 (patch) | |
| tree | 1eb84c955dc96f4c6bcb75b36f6113ccad8e2f1e /test/snapshots | |
| parent | 475cc49ccbe9e81f8ec8aa2371c20fc632d110b9 (diff) | |
| download | pardes-09c35b22793153d201fa202b52671a6442e5e2e1.tar.gz pardes-09c35b22793153d201fa202b52671a6442e5e2e1.zip | |
a builtin to put the pane taglines at the bottom
Diffstat (limited to 'test/snapshots')
| -rw-r--r-- | test/snapshots/builtins.golden | 84 | ||||
| -rw-r--r-- | test/snapshots/leader.golden | 26 | ||||
| -rw-r--r-- | test/snapshots/leader.snap | 7 | ||||
| -rw-r--r-- | test/snapshots/tagbottom.golden | 549 | ||||
| -rw-r--r-- | test/snapshots/tagbottom.snap | 154 |
5 files changed, 762 insertions, 58 deletions
diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index afee3f3f..7e4b3366 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -153,7 +153,6 @@ | | | /tmp/pardes-snap/builtins/cwd/+Help New Del -| 24 SPC l i Lspinfo | 25 SPC l k Hover | 26 SPC l r Rename | 27 SPC l s Symbols @@ -161,26 +160,27 @@ | 29 SPC s d Dump topbar | 30 SPC s r Restore | 31 SPC t a Ascii -| 32 SPC t c Colors -| 33 SPC t d Debug topbar -| 34 SPC t i PdfTint -| 35 SPC t l Palette -| 36 SPC t n NextColor topbar -| 37 SPC t p Petscii -| 38 SPC t r Crt -| 39 SPC t s PdfSections -| 40 SPC t t ThemeSel -| 41 SPC t w Wrap -| 42 SPC t z PdfFit -| 43 SPC w h Left C-w h, C-w left -| 44 SPC w j Down C-w j, C-w down -| 45 SPC w k Up C-w k, C-w up -| 46 SPC w l Right C-w l, C-w right -| 47 Look enter, right-click -| 48 Exec tab, middle-click -| 49 Theme -| 50 Shell -| 51 +| 32 SPC t b Tagbottom +| 33 SPC t c Colors +| 34 SPC t d Debug topbar +| 35 SPC t i PdfTint +| 36 SPC t l Palette +| 37 SPC t n NextColor topbar +| 38 SPC t p Petscii +| 39 SPC t r Crt +| 40 SPC t s PdfSections +| 41 SPC t t ThemeSel +| 42 SPC t w Wrap +| 43 SPC t z PdfFit +| 44 SPC w h Left C-w h, C-w left +| 45 SPC w j Down C-w j, C-w down +| 46 SPC w k Up C-w k, C-w up +| 47 SPC w l Right C-w l, C-w right +| 48 Look enter, right-click +| 49 Exec tab, middle-click +| 50 Theme +| 51 Shell +| 52 == snap not-a-picker grid=120x60 cursor=7,58 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill | /tmp/pardes-snap/builtins/cwd/notes.txt Save New Del @@ -214,7 +214,6 @@ | | | /tmp/pardes-snap/builtins/cwd/+Help New Del -| 24 SPC l i Lspinfo | 25 SPC l k Hover | 26 SPC l r Rename | 27 SPC l s Symbols @@ -222,26 +221,27 @@ | 29 SPC s d Dump topbar | 30 SPC s r Restore | 31 SPC t a Ascii -| 32 SPC t c Colors -| 33 SPC t d Debug topbar -| 34 SPC t i PdfTint -| 35 SPC t l Palette -| 36 SPC t n NextColor topbar -| 37 SPC t p Petscii -| 38 SPC t r Crt -| 39 SPC t s PdfSections -| 40 SPC t t ThemeSel -| 41 SPC t w Wrap -| 42 SPC t z PdfFit -| 43 SPC w h Left C-w h, C-w left -| 44 SPC w j Down C-w j, C-w down -| 45 SPC w k Up C-w k, C-w up -| 46 SPC w l Right C-w l, C-w right -| 47 Look enter, right-click -| 48 Exec tab, middle-click -| 49 Theme -| 50 Shell -| 51 +| 32 SPC t b Tagbottom +| 33 SPC t c Colors +| 34 SPC t d Debug topbar +| 35 SPC t i PdfTint +| 36 SPC t l Palette +| 37 SPC t n NextColor topbar +| 38 SPC t p Petscii +| 39 SPC t r Crt +| 40 SPC t s PdfSections +| 41 SPC t t ThemeSel +| 42 SPC t w Wrap +| 43 SPC t z PdfFit +| 44 SPC w h Left C-w h, C-w left +| 45 SPC w j Down C-w j, C-w down +| 46 SPC w k Up C-w k, C-w up +| 47 SPC w l Right C-w l, C-w right +| 48 Look enter, right-click +| 49 Exec tab, middle-click +| 50 Theme +| 51 Shell +| 52 == snap window-group grid=120x60 cursor=7,32 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill | /tmp/pardes-snap/builtins/cwd/notes.txt Save New Del diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index 9398b158..74719f13 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -393,19 +393,19 @@ | 1 pardes builtins under SPC t | 2 | 3 SPC t a Ascii -| 4 SPC t c Colors -| 5 SPC t d Debug topbar -| 6 SPC t i PdfTint -| 7 SPC t l Palette -| 8 SPC t n NextColor topbar -| 9 SPC t p Petscii -| 10 SPC t r Crt -| 11 SPC t s PdfSections -| 12 SPC t t ThemeSel -| 13 SPC t w Wrap -| 14 SPC t z PdfFit -| 15 -| +| 4 SPC t b Tagbottom +| 5 SPC t c Colors +| 6 SPC t d Debug topbar +| 7 SPC t i PdfTint +| 8 SPC t l Palette +| 9 SPC t n NextColor topbar +| 10 SPC t p Petscii +| 11 SPC t r Crt +| 12 SPC t s PdfSections +| 13 SPC t t ThemeSel +| 14 SPC t w Wrap +| 15 SPC t z PdfFit +| 16 | | == snap help-window grid=100x40 cursor=7,22 diff --git a/test/snapshots/leader.snap b/test/snapshots/leader.snap index c71aaee6..db212631 100644 --- a/test/snapshots/leader.snap +++ b/test/snapshots/leader.snap @@ -66,9 +66,10 @@ key ? wait 10000 SPC c n stable 700 15000 snap help-all -# `SPC t ?`: the toggle group, seven of them now that the image renderer -# switches are builtins instead of words in the image tag — Crt sits past this -# pane's last row in the full listing above, and only a group filter shows it +# `SPC t ?`: the toggle group, twelve of them now that the image renderer +# switches and the PDF ones are builtins instead of words in the image tag — +# Crt sits past this pane's last row in the full listing above, and only a +# group filter shows it key space key t key ? diff --git a/test/snapshots/tagbottom.golden b/test/snapshots/tagbottom.golden new file mode 100644 index 00000000..cc402fd1 --- /dev/null +++ b/test/snapshots/tagbottom.golden @@ -0,0 +1,549 @@ +== snap boot grid=100x30 cursor=7,2 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/tagbottom/cwd/top.txt Save New 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=100x30 cursor=7,1 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 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 +| +| +| /tmp/pardes-snap/tagbottom/cwd/top.txt Save New Del +== snap off grid=100x30 cursor=7,2 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/tagbottom/cwd/top.txt Save New 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 tag-typed grid=100x30 cursor=60,29 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 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 +| +| +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +== snap look-bottom-tag grid=100x30 cursor=7,16 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 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 +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| 1 ZZONE +| 2 ZZTWO +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save New Del +== snap body-cursor grid=100x30 cursor=9,5 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 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 +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| 1 ZZONE +| 2 ZZTWO +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save New Del +== snap seam-noop grid=100x30 cursor=9,5 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 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 +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| 1 ZZONE +| 2 ZZTWO +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save New Del +== snap seam-dragged grid=100x30 cursor=9,5 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 1 aaa +| 2 bbb +| 3 ccc +| 4 ddd +| 5 eee +| 6 fff +| 7 ggg +| 8 hhh +| 9 iii +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| 1 ZZONE +| 2 ZZTWO +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save New Del +== snap wheel-body grid=100x30 cursor=9,1 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 5 eee +| 6 fff +| 7 ggg +| 8 hhh +| 9 iii +| 10 jjj +| 11 kkk +| 12 lll +| 13 mmm +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| 1 ZZONE +| 2 ZZTWO +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save New Del +== snap wheel-gutter grid=100x30 cursor=9,2 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 4 ddd +| 5 eee +| 6 fff +| 7 ggg +| 8 hhh +| 9 iii +| 10 jjj +| 11 kkk +| 12 lll +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| 1 ZZONE +| 2 ZZTWO +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save New Del +== snap gutter-click grid=100x30 cursor=9,4 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 2 bbb +| 3 ccc +| 4 ddd +| 5 eee +| 6 fff +| 7 ggg +| 8 hhh +| 9 iii +| 10 jjj +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| 1 ZZONE +| 2 ZZTWO +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save New Del +== snap search-prompt grid=100x30 cursor=6,11 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 2 bbb +| 3 ccc +| 4 ddd +| 5 eee +| 6 fff +| 7 ggg +| 8 hhh +| 9 iii +| 10 jjj +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| /ZZ +| 2 ZZTWO +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save New Del +== snap leader grid=100x30 cursor=9,13 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 2 bbb +| 3 ccc +| 4 ddd +| 5 eee +| 6 fff +| 7 ggg +| 8 hhh +| 9 iii +| 10 jjj +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| SPC +| 2 ZZTWO +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save New Del +== style sweep-down +|0: 0-56 #949494,#121212, 57-99 d,#121212, +|1: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-9 #bdbdbd,#080808, 10-99 d,#080808, +|2: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-9 #bdbdbd,#080808, 10-99 d,#080808, +|3: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-7 #080808,#9399f9, 8-9 #bdbdbd,#080808, 10-99 d,#080808, +|4: 0-0 d,#121212, 1-1 d,#080808, 2-6 #949494,#121212, 7-7 #080808,#9399f9, 8-9 #bdbdbd,#080808, 10-99 d,#080808, +|5: 0-0 d,#121212, 1-1 d,#080808, 2-6 #626262,#080808, 7-7 #080808,#9399f9, 8-9 #bdbdbd,#080808, 10-99 d,#080808, +|6: 0-0 d,#121212, 1-1 d,#080808, 2-6 #626262,#080808, 7-7 #080808,#9399f9, 8-9 #bdbdbd,#080808, 10-99 d,#080808, +|7: 0-0 d,#121212, 1-1 d,#080808, 2-6 #626262,#080808, 7-7 #080808,#9399f9, 8-9 #bdbdbd,#080808, 10-99 d,#080808, +|8: 0-0 d,#121212, 1-1 d,#080808, 2-6 #626262,#080808, 7-7 #080808,#9399f9, 8-9 #bdbdbd,#080808, 10-99 d,#080808, +|9: 0-0 d,#121212, 1-1 d,#080808, 2-6 #626262,#080808, 7-7 #080808,#9399f9, 8-9 #bdbdbd,#080808, 10-99 d,#080808, +|10: 0-1 #ffffff,#626262, 2-90 #949494,#121212, 91-99 d,#121212, +|11: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-11 #bdbdbd,#080808, 12-99 d,#080808, +|12: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-11 #bdbdbd,#080808, 12-99 d,#080808, +|13: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|14: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|15: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|16: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|17: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|18: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|19: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|20: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|21: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|22: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|23: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|24: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|25: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|26: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|27: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|28: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-99 d,#080808, +|29: 0-1 #ffffff,#262626, 2-79 #949494,#121212, 80-99 d,#121212, +== snap cut-down grid=100x30 cursor=7,4 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 1 aaa +| 2 bbb +| 3 ccc +| 4 jj +| 5 kkk +| 6 lll +| 7 mmm +| 8 nnn +| 9 ooo +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| 1 ZZONE +| 2 ZZTWO +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save New Del +== 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=100x30 cursor=7,4 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| 1 aaa +| 2 bbb +| 3 ccc +| 4 jj +| 5 kkk +| 6 lll +| 7 mmm +| 8 nnn +| 9 ooo +| 10 ppp +| 11 qqq +| 12 rrr +| 13 sss +| 14 ttt +| 15 uuu +| 16 vvv +| 17 www +| 18 xxx +| 19 yyy +| 20 zzz +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +== snap off-again grid=100x30 cursor=7,5 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/tagbottom/cwd/top.txt bottom.txt Save New Del +| 1 aaa +| 2 bbb +| 3 ccc +| 4 jj +| 5 kkk +| 6 lll +| 7 mmm +| 8 nnn +| 9 ooo +| 10 ppp +| 11 qqq +| 12 rrr +| 13 sss +| 14 ttt +| 15 uuu +| 16 vvv +| 17 www +| 18 xxx +| 19 yyy +| 20 zzz +| +| +| +| +| +| +| +| diff --git a/test/snapshots/tagbottom.snap b/test/snapshots/tagbottom.snap new file mode 100644 index 00000000..801df1a8 --- /dev/null +++ b/test/snapshots/tagbottom.snap @@ -0,0 +1,154 @@ +# Tagbottom: every pane's tagline on its LAST row instead of its first, and +# the transient message row (prompts, messages, the SPC indicator) at the other +# end with 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 +start 30 100 top.txt +wait 8000 New Newcol +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. +press left 50 30 +release left 50 30 +stable 400 5000 +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 55 30 +release right 55 30 +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 6 +release left 10 6 +stable 400 8000 +snap body-cursor +# The h-resize seam. With top taglines it is the upper pane's LAST row; here +# that row is the upper pane's TAG, so the handle is the lower pane's FIRST row +# (grid 16, click row 17). A no-drag click on it must leave both sizes alone. +press left 40 17 +release left 40 17 +motion 40 25 +stable 500 8000 +snap seam-noop +# ...and the real drag, five rows up: the upper pane keeps 10 rows, the lower +# grows to 19. Both taglines follow their own pane's bottom. +press left 40 17 +drag left 40 12 +release left 40 12 +motion 40 25 +stable 500 8000 +snap seam-dragged +# the wheel over the BODY of the upper pane (nine body rows now): four rows +# down, so the view starts at line 5 and the pinned cursor rides up to the +# pane's first row +wheel down 40 4 +wheel down 40 4 +wheel down 40 4 +wheel down 40 4 +stable 400 8000 +snap wheel-body +# ...and one row back up with the wheel over the GUTTER: the same pane, found +# through its gutter column. View at line 4. +wheel up 1 4 +stable 400 8000 +snap wheel-gutter +# 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 4 +release left 1 4 +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 +# those two are at opposite ends of the pane: the tail keeps its builtins on +# row 29 while `/ZZ` and the cursor sit up on row 11, the lower pane's first. +press left 10 14 +release left 10 14 +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 4 +drag left 8 11 +stable 400 5000 +snapstyle sweep-down +# ...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 11 +release middle 8 11 +release left 8 11 +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 78 30 +release middle 78 30 +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 |
