diff options
Diffstat (limited to 'test/snapshots')
| -rw-r--r-- | test/snapshots/builtins.golden | 62 | ||||
| -rw-r--r-- | test/snapshots/cmdword.snap | 3 | ||||
| -rw-r--r-- | test/snapshots/dirpane.golden | 13 | ||||
| -rw-r--r-- | test/snapshots/dirpane.snap | 27 | ||||
| -rw-r--r-- | test/snapshots/dump.golden | 1 | ||||
| -rw-r--r-- | test/snapshots/images.golden | 18 | ||||
| -rw-r--r-- | test/snapshots/layout-open.golden | 2 | ||||
| -rw-r--r-- | test/snapshots/leader.golden | 52 | ||||
| -rw-r--r-- | test/snapshots/look-dir.snap | 3 | ||||
| -rw-r--r-- | test/snapshots/lookpanes.snap | 3 | ||||
| -rw-r--r-- | test/snapshots/nested.golden | 8 | ||||
| -rw-r--r-- | test/snapshots/shrinktag.golden | 10 | ||||
| -rw-r--r-- | test/snapshots/tagalign.snap | 5 | ||||
| -rw-r--r-- | test/snapshots/tagbottomimage.golden | 6 | ||||
| -rw-r--r-- | test/snapshots/tagpath.snap | 3 | ||||
| -rw-r--r-- | test/snapshots/ttyedit.golden | 2 | ||||
| -rw-r--r-- | test/snapshots/ttylook.snap | 3 | ||||
| -rw-r--r-- | test/snapshots/tutor.golden | 18 |
18 files changed, 150 insertions, 89 deletions
diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index abeedd4b..87a515aa 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -30,38 +30,38 @@ |15: /tmp/pardes-snap/builtins/cwd/+Tutor Save Tty Collapse Del |16: 1 |17: 2 PARDES TUTOR -|18: 3 tmux + vi + acme, by doing. -|19: 4 -|20: 5 This pane is +Tutor, a copy: edit it freely; there is no need to -|21: 6 Save it (a bare Save asks for a path to write a copy to). -|22: 7 `Del` in its tag closes it; once you have edited it, `Del` refuses -|23: 8 once and the second `Del` discards. `Tutor` or SPC h t opens a -|24: 9 fresh copy. -|25: 10 -|26: 11 The guide (docs/typ/guide.typ) explains; this is the hands-on part. -|27: 12 Each lesson is a few things to do, then names its guide section. -|28: 13 Words in backticks, like `Save`, are builtins. Two carry the rest: -|29: 14 `Exec` (middle-click, B2) runs the builtin a word names, or else -|30: 15 runs it as a shell line; `Look` (right-click, B3) opens what the -|31: 16 text names, or else finds it. Type a builtin in any tag and `Exec` -|32: 17 it. Lines starting with "| " are tags. -|33: 18 -|34: 19 Press j until you reach part 1. +|18: 3 +|19: 4 This pane is +Tutor, a copy: edit it freely; there is no need to +|20: 5 Save it (a bare Save asks for a path to write a copy to). +|21: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses +|22: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a +|23: 8 fresh copy. +|24: 9 +|25: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. +|26: 11 Each lesson is a few things to do, then names its guide section. +|27: 12 Words in backticks, like `Save`, are builtins. +|28: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a +|29: 14 shell line; `Look` (B3) opens what the text names, or else finds +|30: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with +|31: 16 "| " are tags. +|32: 17 +|33: 18 Press j until you reach part 1. +|34: 19 |35: 20 -|36: 21 -|37: 22 ================================================================= -|38: 23 = PART 1 โ MODES = -|39: 24 ================================================================= -|40: 25 -|41: 26 1. The box left of this pane's tag is blank, so you are in -|42: 27 NORMAL mode. Press i: it shows ^ (INSERT). Type a word, then -|43: 28 Esc: blank again. -|44: 29 2. Press Esc once more, in NORMAL: the keyboard goes back to the -|45: 30 pane you were in before (not what helix does). Come back with -|46: 31 Esc again. -|47: 32 3. Press Alt-n: a terminal opens, in NORMAL mode. Press Ctrl-b: its -|48: 33 box shows $ (RAW), and keys go to the shell. At its empty prompt, -|49: 34 Esc brings you back here; the terminal stays $. +|36: 21 ================================================================= +|37: 22 = PART 1 โ MODES = +|38: 23 ================================================================= +|39: 24 +|40: 25 1. The box left of this pane's tag is blank, so you are in +|41: 26 NORMAL mode. Press i: it shows ^ (INSERT). Type a word, then +|42: 27 Esc: blank again. +|43: 28 2. Press Esc once more, in NORMAL: the keyboard goes back to the +|44: 29 pane you were in before (not what helix does). Come back with +|45: 30 Esc again. +|46: 31 3. Press Alt-n: a terminal opens, in NORMAL mode, and pardes types +|47: 32 ls at its first prompt. Press Ctrl-b: its box shows $ (RAW), and +|48: 33 keys go to the shell. At its empty prompt, Esc brings you back +|49: 34 here; the terminal stays $. |50: 35 |51: 36 -> Guide: Modes |52: 37 diff --git a/test/snapshots/cmdword.snap b/test/snapshots/cmdword.snap index 631fab8b..42a91e18 100644 --- a/test/snapshots/cmdword.snap +++ b/test/snapshots/cmdword.snap @@ -23,6 +23,9 @@ file zzmark.txt x # the top of the body -- which would move every row this script clicks. The # verbs are what is under test here, not the announcement. config Verbose off +# a directory looked at opens a terminal there (DirLook terminal), as this +# script was written for; DirLook pane, the default, is dirpane.snap's +config DirLook terminal start 31 120 cmds.txt wait 8000 Newcol Joincol wait 8000 cmds.txt diff --git a/test/snapshots/dirpane.golden b/test/snapshots/dirpane.golden new file mode 100644 index 00000000..3118079f --- /dev/null +++ b/test/snapshots/dirpane.golden @@ -0,0 +1,13 @@ +== snap dir-open grid=80x24 cursor=7,6 +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit +| New Tty Find Grep Joincol Delcol +| /tmp/pardes-snap/dirpane/cwd/top.txt Save Tty Collapse Del +| 1 sub +| +| /tmp/pardes-snap/dirpane/cwd/sub/ Get Tty Collapse Del +| 1 .hidden beta-gamma.txt inner.txt +| 2 alpha.txt deeper/ zeta +| 3 +== snap entry-open grid=80x24 cursor=7,9 +|8: /tmp/pardes-snap/dirpane/cwd/sub/inner.txt Save Tty Collapse Del +|9: 1 inner-marker diff --git a/test/snapshots/dirpane.snap b/test/snapshots/dirpane.snap new file mode 100644 index 00000000..a884b12e --- /dev/null +++ b/test/snapshots/dirpane.snap @@ -0,0 +1,27 @@ +# a look at a directory opens a pane named for it with a trailing /, its +# entries in columns as acme's directory window lays them out: down each +# column first, a directory's marked /, dotfiles shown. A look at an entry +# opens it from that directory. No shell anywhere: nothing here races a prompt. +dirmk sub +dirmk sub/deeper +file sub/inner.txt inner-marker +file sub/.hidden x +file sub/alpha.txt x +file sub/beta-gamma.txt x +file sub/zeta x +file top.txt sub +config Verbose off +start 24 80 top.txt +wait 8000 top.txt +stable 700 20000 +press right @sub 4 +release right @sub 4 +wait 8000 inner.txt +stable 700 20000 +snap dir-open +# an entry, by its name alone: sub's inner.txt +press right @inner.txt 7 +release right @inner.txt 7 +wait 8000 inner-marker +stable 700 20000 +snap entry-open diff --git a/test/snapshots/dump.golden b/test/snapshots/dump.golden index ea6e5912..571bacbc 100644 --- a/test/snapshots/dump.golden +++ b/test/snapshots/dump.golden @@ -108,5 +108,6 @@ "MessageLinger 0", "Shell bash", }, + .incl = .{ "/usr/include", "/usr/local/include" }, } == end file diff --git a/test/snapshots/images.golden b/test/snapshots/images.golden index e888460d..0f15804b 100644 --- a/test/snapshots/images.golden +++ b/test/snapshots/images.golden @@ -5,8 +5,8 @@ | ls ls | pic.ppm pic.ppm | -| img petscii:off palette:commodore ascii:on /tmp/pardes-snap/images/cwd/p -| ic.ppm Tty Collapse Del +| img petscii:on palette:commodore ascii:on /tmp/pardes-snap/images/cwd/pi +| c.ppm Tty Collapse Del | x๐ฌฑ\โฒ๐ฌ\~โ๐ฌฅ4โg*๐ฌบ๐ฌถ_๐ฌ๐ฌป | >A8๐ฌCq&.\H&๐ฌน๐ฌCโ๐ฌป | ><e'๐ฌทy๐ฌโFso๐ฌด๐ฌ๐ฌน @@ -26,8 +26,8 @@ |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, -|6: 0-1 d,#add38a, 2-2 d,#314738, 3-73 #becfc4,#314738, 74-74 #dfbce5,#314738, 75-75 #dfbce5,#608269, 76-149 #dfbce5,#0d1410, -|7: 0-2 d,#314738, 3-9 #dfbce5,#314738, 10-74 #becfc4,#314738, 75-75 #becfc4,#608269, 76-149 #becfc4,#0d1410, +|6: 0-1 d,#add38a, 2-2 d,#314738, 3-72 #becfc4,#314738, 73-74 #dfbce5,#314738, 75-75 #dfbce5,#608269, 76-149 #dfbce5,#0d1410, +|7: 0-2 d,#314738, 3-8 #dfbce5,#314738, 9-74 #becfc4,#314738, 75-75 #becfc4,#608269, 76-149 #becfc4,#0d1410, |8: 0-0 d,#152019, 1-28 d,#0d1410, 29-30 #959595,#6c6c6c, 31-31 #6c6c6c,#959595, 32-32 #959595,#6c6c6c, 33-33 #6c6c6c,#959595, 34-35 #959595,#6c6c6c, 36-36 #6c6c6c,#959595, 37-37 #959595,#6c6c6c, 38-40 #6c6c6c,#959595, 41-41 #959595,#6c6c6c, 42-43 #6c6c6c,#959595, 44-44 #959595,#6c6c6c, 45-45 #6c6c6c,#6c5eb5, 46-46 #352879,#959595, 47-74 #352879,#0d1410, 75-75 #352879,#608269, 76-149 #352879,#0d1410, |9: 0-0 d,#152019, 1-28 d,#0d1410, 29-29 #959595,#6c6c6c, 30-31 #6c6c6c,#959595, 32-35 #959595,#6c6c6c, 36-36 #6c6c6c,#959595, 37-38 #959595,#6c6c6c, 39-42 #6c6c6c,#959595, 43-43 #6c6c6c,#352879, 44-44 #352879,#6c6c6c, 45-46 #352879,#352879, 47-74 #352879,#0d1410, 75-75 #352879,#608269, 76-149 #352879,#0d1410, |10: 0-0 d,#152019, 1-28 d,#0d1410, 29-30 #959595,#6c6c6c, 31-31 #6c6c6c,#959595, 32-32 #959595,#6c6c6c, 33-33 #6c6c6c,#959595, 34-34 #959595,#6c6c6c, 35-36 #6c6c6c,#959595, 37-39 #959595,#6c6c6c, 40-40 #6c6c6c,#959595, 41-41 #6c6c6c,#6c5eb5, 42-42 #352879,#6c5eb5, 43-46 #352879,#352879, 47-74 #352879,#0d1410, 75-75 #352879,#608269, 76-149 #352879,#0d1410, @@ -52,8 +52,8 @@ |29: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |30: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, == style term-palette grid=150x31 -|6: 0-1 d,#add38a, 2-2 d,#314738, 3-72 #becfc4,#314738, 73-74 #dfbce5,#314738, 75-75 #dfbce5,#608269, 76-149 #dfbce5,#0d1410, -|7: 0-2 d,#314738, 3-8 #dfbce5,#314738, 9-74 #becfc4,#314738, 75-75 #becfc4,#608269, 76-149 #becfc4,#0d1410, +|6: 0-1 d,#add38a, 2-2 d,#314738, 3-71 #becfc4,#314738, 72-74 #dfbce5,#314738, 75-75 #dfbce5,#608269, 76-149 #dfbce5,#0d1410, +|7: 0-2 d,#314738, 3-7 #dfbce5,#314738, 8-74 #becfc4,#314738, 75-75 #becfc4,#608269, 76-149 #becfc4,#0d1410, |8: 0-0 d,#152019, 1-65 d,#0d1410, 66-66 d,#1d2824, 67-74 #b2c3b8,#1d2824, 75-75 #b2c3b8,#608269, 76-149 #b2c3b8,#0d1410, |9: 0-0 d,#152019, 1-29 d,#0d1410, 30-33 p8,p4, 34-34 p4,p8, 35-35 p8,p4, 36-36 p4,p8, 37-43 p8,p4, 44-44 p8,p12, 45-45 p12,p8, 46-74 p12,#0d1410, 75-75 p12,#608269, 76-149 p12,#0d1410, |10: 0-0 d,#152019, 1-29 d,#0d1410, 30-30 p4,p8, 31-31 p8,p4, 32-32 p4,p8, 33-41 p8,p4, 42-43 p12,p8, 44-45 p12,p12, 46-74 p12,#0d1410, 75-75 p12,#608269, 76-149 p12,#0d1410, @@ -64,7 +64,7 @@ |15: 0-0 d,#152019, 1-29 d,#0d1410, 30-30 p4,p8, 31-31 p8,p4, 32-32 p8,p12, 33-33 p12,p8, 34-45 p12,p12, 46-74 p12,#0d1410, 75-75 p12,#608269, 76-149 p12,#0d1410, |16: 0-0 d,#152019, 1-29 d,#0d1410, 30-30 p8,p12, 31-31 p12,p8, 32-45 p12,p12, 46-74 p12,#0d1410, 75-75 p12,#608269, 76-149 p12,#0d1410, == snap no-ascii grid=150x31 cursor=11,8 -|6: img petscii:off palette:terminal ascii:off /tmp/pardes-snap/images/cwd/p +|6: img petscii:on palette:terminal ascii:off /tmp/pardes-snap/images/cwd/pi |8: Ascii |9: โโโโโโโโโโโโโโ๐ฌ๐ฌน |10: โโโโโโ๐ฌโโโโโ๐ฌโ @@ -74,14 +74,14 @@ |14: โโโโ๐ฌโ |15: โโ๐ฌโ |16: ๐ฌ๐ฌน -== snap tag-edit grid=400x31 cursor=87,6 +== snap tag-edit grid=400x31 cursor=86,6 |Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/images/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/images/cwd Tty+bash Save Mode Filter Collapse Del | ls ls | pic.ppm pic.ppm | -| img petscii:off palette:terminal ascii:off /tmp/pardes-snap/images/cwd/pic.ppm Zork Tty Collapse Del +| img petscii:on palette:terminal ascii:off /tmp/pardes-snap/images/cwd/pic.ppm Zork Tty Collapse Del | โโโโฑโ๐ฌปโโ๐ฌบโโ๐ฌปโโโโฑโโ๐ฌดโ | ๐ฌฌโโโฑโโโโฑ๐ฌป๐ฌ๐ฌป๐ฌฌโโโโ๐ฌ๐ฌตโ | โโฒโ๐ฌดโโโโโฒโฑโ๐ฌโโโโโ diff --git a/test/snapshots/layout-open.golden b/test/snapshots/layout-open.golden index a3d9dfdd..d2cbb9a9 100644 --- a/test/snapshots/layout-open.golden +++ b/test/snapshots/layout-open.golden @@ -1,4 +1,4 @@ -== snap before grid=100x31 cursor=2,9 +== snap before grid=100x31 cursor=4,9 |Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/layout-open/cwd Tty+bash Save /tmp/pardes-snap/layout-open/cwd Tty+bash Save diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index 5bd7e284..cdc78e66 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -21,33 +21,33 @@ |11: /tmp/pardes-snap/leader/cwd/+Tutor Save Tty Collapse Del |12: 1 |13: 2 PARDES TUTOR -|14: 3 tmux + vi + acme, by doing. -|15: 4 -|16: 5 This pane is +Tutor, a copy: edit it freely; there is no need to -|17: 6 Save it (a bare Save asks for a path to write a copy to). -|18: 7 `Del` in its tag closes it; once you have edited it, `Del` refuses -|19: 8 once and the second `Del` discards. `Tutor` or SPC h t opens a -|20: 9 fresh copy. -|21: 10 -|22: 11 The guide (docs/typ/guide.typ) explains; this is the hands-on part. -|23: 12 Each lesson is a few things to do, then names its guide section. -|24: 13 Words in backticks, like `Save`, are builtins. Two carry the rest: -|25: 14 `Exec` (middle-click, B2) runs the builtin a word names, or else -|26: 15 runs it as a shell line; `Look` (right-click, B3) opens what the -|27: 16 text names, or else finds it. Type a builtin in any tag and `Exec` -|28: 17 it. Lines starting with "| " are tags. -|29: 18 -|30: 19 Press j until you reach part 1. +|14: 3 +|15: 4 This pane is +Tutor, a copy: edit it freely; there is no need to +|16: 5 Save it (a bare Save asks for a path to write a copy to). +|17: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses +|18: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a +|19: 8 fresh copy. +|20: 9 +|21: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. +|22: 11 Each lesson is a few things to do, then names its guide section. +|23: 12 Words in backticks, like `Save`, are builtins. +|24: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a +|25: 14 shell line; `Look` (B3) opens what the text names, or else finds +|26: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with +|27: 16 "| " are tags. +|28: 17 +|29: 18 Press j until you reach part 1. +|30: 19 |31: 20 -|32: 21 -|33: 22 ================================================================= -|34: 23 = PART 1 โ MODES = -|35: 24 ================================================================= -|36: 25 -|37: 26 1. The box left of this pane's tag is blank, so you are in -|38: 27 NORMAL mode. Press i: it shows ^ (INSERT). Type a word, then -|39: 28 Esc: blank again. -|40: 29 2. Press Esc once more, in NORMAL: the keyboard goes back to the +|32: 21 ================================================================= +|33: 22 = PART 1 โ MODES = +|34: 23 ================================================================= +|35: 24 +|36: 25 1. The box left of this pane's tag is blank, so you are in +|37: 26 NORMAL mode. Press i: it shows ^ (INSERT). Type a word, then +|38: 27 Esc: blank again. +|39: 28 2. Press Esc once more, in NORMAL: the keyboard goes back to the +|40: 29 pane you were in before (not what helix does). Come back with == snap deleted grid=100x41 cursor=7,3 |5: |6: diff --git a/test/snapshots/look-dir.snap b/test/snapshots/look-dir.snap index caf29da8..2032d0c0 100644 --- a/test/snapshots/look-dir.snap +++ b/test/snapshots/look-dir.snap @@ -2,6 +2,9 @@ dirmk sub file sub/inner.txt inner-marker file top.txt x +# a directory looked at opens a terminal there (DirLook terminal), as this +# script was written for; DirLook pane, the default, is dirpane.snap's +config DirLook terminal start 31 100 -n 3 wait 8000 top.txt stable 700 20000 diff --git a/test/snapshots/lookpanes.snap b/test/snapshots/lookpanes.snap index e1db907a..2834a4a9 100644 --- a/test/snapshots/lookpanes.snap +++ b/test/snapshots/lookpanes.snap @@ -24,6 +24,9 @@ file beta/bmark.txt both.txt\nb-marker # 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 +# a directory looked at opens a terminal there (DirLook terminal), as this +# script was written for; DirLook pane, the default, is dirpane.snap's +config DirLook terminal start 51 130 beta/bmark.txt wait 8000 b-marker stable 700 20000 diff --git a/test/snapshots/nested.golden b/test/snapshots/nested.golden index 07d6148d..44ab4b82 100644 --- a/test/snapshots/nested.golden +++ b/test/snapshots/nested.golden @@ -46,15 +46,15 @@ | | /tmp/pardes-snap/nested/cwd/+New Save Tty Collapse Del | 1 -== snap dir-arg grid=100x31 cursor=4,8 +== snap dir-arg grid=100x31 cursor=7,6 |Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/nested/cwd Tty+bash Save Mode Filter Collapse Del | $ $(readlink /proc/$PPID/exe) nestdir | $ -| /tmp/pardes-snap/nested/cwd/nestdir Tty+bash Save Mode Filter Collapse Del -| ls -| inside-nested.txt +| /tmp/pardes-snap/nested/cwd/nestdir/ Get Tty Collapse Del +| 1 inside-nested.txt +| 2 | | | diff --git a/test/snapshots/shrinktag.golden b/test/snapshots/shrinktag.golden index d73c0072..6e64d89b 100644 --- a/test/snapshots/shrinktag.golden +++ b/test/snapshots/shrinktag.golden @@ -1,4 +1,4 @@ -== snap before grid=100x31 cursor=2,9 +== snap before grid=100x31 cursor=4,9 |Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/shrinktag/cwd Tty+bash Save Mo /tmp/pardes-snap/shrinktag/cwd Tty+bash Save Mo @@ -20,7 +20,7 @@ | de Filter Collapse Del | ls | w.txt -== snap shrunk grid=100x31 cursor=2,9 +== snap shrunk grid=100x31 cursor=4,9 |4: w.txt ls |5: w.txt |6: /tmp/pardes-snap/shrinktag/cwd Tty+bash Save Mo @@ -31,9 +31,9 @@ |18: |19: |20: -== snap move-preview grid=100x31 cursor=2,9 +== snap move-preview grid=100x31 cursor=4,9 |8: ls โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ -== snap restored grid=100x31 cursor=2,9 +== snap restored grid=100x31 cursor=4,9 |4: ls ls |5: w.txt w.txt |6: @@ -44,7 +44,7 @@ |18: de Filter Collapse Del |19: ls |20: w.txt -== snap bottom-shrunk grid=100x31 cursor=2,9 +== snap bottom-shrunk grid=100x31 cursor=4,9 |17: |18: |19: diff --git a/test/snapshots/tagalign.snap b/test/snapshots/tagalign.snap index 3bb3922e..7237167a 100644 --- a/test/snapshots/tagalign.snap +++ b/test/snapshots/tagalign.snap @@ -22,12 +22,15 @@ press left 12 3 release left 12 3 stable 400 5000 snap clicked -# The click was on the path, so it drafted a name; Esc drops the draft. `:` +# The click was on the path, so it drafted a name; Esc keeps it pending and +# a second Esc drops the draft. `:` # then `A` puts the caret after the tag's end, which reveals the complete # command suffix; a scrolled Del still executes. resize 31 70 key esc settle 100 +key esc +settle 100 key : key A stable 400 5000 diff --git a/test/snapshots/tagbottomimage.golden b/test/snapshots/tagbottomimage.golden index 2bf9231e..ce6948bf 100644 --- a/test/snapshots/tagbottomimage.golden +++ b/test/snapshots/tagbottomimage.golden @@ -5,7 +5,7 @@ | ls | pic.ppm | -| img petscii:off palette:commodore ascii:on /tmp/pardes-snap/tagbottomimage/cwd/pic.ppm Tty Collapse Del +| img petscii:on palette:commodore ascii:on /tmp/pardes-snap/tagbottomimage/cwd/pic.ppm Tty 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๐ฌ๐ฌปโ @@ -59,7 +59,7 @@ |27: P4๐ฌ1๐ฌ~โ |28: ๐ฌฎG๐ฌ๐ฌน |29: ๐ฌญโโ -|30: img petscii:off palette:commodore ascii:on /tmp/pardes-snap/tagbottomimage/cwd/pic.ppm Tty Collapse Del +|30: img petscii:on palette:commodore ascii:on /tmp/pardes-snap/tagbottomimage/cwd/pic.ppm Tty Collapse Del == style img-bottom grid=150x31 |0: 0-149 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-2 d,#314738, 3-149 #becfc4,#314738, @@ -91,7 +91,7 @@ |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-2 d,#314738, 3-81 #becfc4,#314738, 82-89 #dfbce5,#314738, 90-149 #becfc4,#314738, +|30: 0-1 d,#add38a, 2-2 d,#314738, 3-80 #becfc4,#314738, 81-88 #dfbce5,#314738, 89-149 #becfc4,#314738, == snap search-prompt grid=150x31 cursor=149,6 |6: /ZZ == snap del-image grid=150x31 cursor=5,7 diff --git a/test/snapshots/tagpath.snap b/test/snapshots/tagpath.snap index f02769d9..841d4fed 100644 --- a/test/snapshots/tagpath.snap +++ b/test/snapshots/tagpath.snap @@ -41,6 +41,9 @@ key i text /renamed stable 400 5000 snap name-draft +# Esc keeps the draft pending; a second drops it +key esc +settle 100 key esc stable 400 5000 snap name-cancelled diff --git a/test/snapshots/ttyedit.golden b/test/snapshots/ttyedit.golden index ab1b1b5b..70ab8504 100644 --- a/test/snapshots/ttyedit.golden +++ b/test/snapshots/ttyedit.golden @@ -22,12 +22,14 @@ | words.txt == snap split grid=100x31 cursor=2,9 |2: ^ /tmp/pardes-snap/ttyedit/cwd Tty+bash Save Mode /tmp/pardes-snap/ttyedit/cwd Tty+bash Save Mode +|4: next replaces it (Ctrl-b types to the program) ls |8: one t |9: wo three |10: four five six |11: seven eight nine == snap opened grid=100x31 cursor=6,10 |2: /tmp/pardes-snap/ttyedit/cwd Tty+bash Save Mode /tmp/pardes-snap/ttyedit/cwd Tty+bash Save Mode +|4: ls ls |10: OPEN |11: four five six |12: seven eight nine diff --git a/test/snapshots/ttylook.snap b/test/snapshots/ttylook.snap index 5b82bd89..91401a64 100644 --- a/test/snapshots/ttylook.snap +++ b/test/snapshots/ttylook.snap @@ -9,6 +9,9 @@ lines big.txt 40 file plain.txt just text dirmk sub +# a directory looked at opens a terminal there (DirLook terminal), as this +# script was written for; DirLook pane, the default, is dirpane.snap's +config DirLook terminal start 31 120 -n 3 wait 8000 big.txt stable 700 20000 diff --git a/test/snapshots/tutor.golden b/test/snapshots/tutor.golden index f3585801..d861fcb9 100644 --- a/test/snapshots/tutor.golden +++ b/test/snapshots/tutor.golden @@ -7,14 +7,14 @@ | /tmp/pardes-snap/tutor/cwd/+Tutor Save Tty Collapse Del | 1 | 2 PARDES TUTOR -| 3 tmux + vi + acme, by doing. -| 4 -| 5 This pane is +Tutor, a copy: edit it freely; there is no need to -| 6 Save it (a bare Save asks for a path to write a copy to). -| 7 `Del` in its tag closes it; once you have edited it, `Del` refuses -| 8 once and the second `Del` discards. `Tutor` or SPC h t opens a -| 9 fresh copy. -| 10 -| 11 The guide (docs/typ/guide.typ) explains; this is the hands-on part +| 3 +| 4 This pane is +Tutor, a copy: edit it freely; there is no need to +| 5 Save it (a bare Save asks for a path to write a copy to). +| 6 `Del` in its tag closes it; once you have edited it, `Del` refuses +| 7 once and the second `Del` discards. `Tutor` or SPC h t opens a +| 8 fresh copy. +| 9 +| 10 The guide (docs/typ/guide.typ) explains; this is the hands-on partโฉ +| . | /tmp/pardes-snap/tutor/cwd Tty+bash Save Mode Filter Collapse Del | ls |
