diff options
Diffstat (limited to 'test/snapshots')
| -rw-r--r-- | test/snapshots/fsearch.golden | 310 | ||||
| -rw-r--r-- | test/snapshots/fsearch.snap | 63 |
2 files changed, 373 insertions, 0 deletions
diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden new file mode 100644 index 00000000..0df3dbcf --- /dev/null +++ b/test/snapshots/fsearch.golden @@ -0,0 +1,310 @@ +== snap opened grid=120x30 cursor=7,2 +|Kill Newcol Tutor Debug Colors NextColor Dump +| nm /tmp/pardes-snap/fsearch/cwd/g.txt Save Del nm /tmp/pardes-snap/fsearch/cwd Del +| 1 l1 +| 2 MARK a g.txt +| 3 l3 +| 4 l4 +| 5 l5 +| 6 MARK b +| 7 l7 +| 8 l8 +| 9 l9 +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| g.txt +| +| +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| +| +| +== snap typing grid=120x30 cursor=54,1 +|Kill Newcol Tutor Debug Colors NextColor Dump +| in /tmp/pardes-snap/fsearch/cwd/g.txt Save Del /MARK nm /tmp/pardes-snap/fsearch/cwd Del +| 1 l1 +| 2 MARK a g.txt +| 3 l3 +| 4 l4 +| 5 l5 +| 6 MARK b +| 7 l7 +| 8 l8 +| 9 l9 +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| g.txt +| +| +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| +| +| +== snap results grid=120x30 cursor=7,2 +|Kill Newcol Tutor Debug Colors NextColor Dump +| nm /tmp/pardes-snap/fsearch/cwd/g.txt Save Del nm /tmp/pardes-snap/fsearch/cwd Del +| 1 l1 +| 2 MARK a g.txt +| 3 l3 +| 4 l4 +| 5 l5 +| 6 MARK b +| 7 l7 +| 8 l8 +| 9 l9 +| nm /tmp/pardes-snap/fsearch/cwd Del +| g.txt +| +| +| +| g.txt +| /tmp/pardes-snap/fsearch/cwd/g.txt:2:MARK a +| /tmp/pardes-snap/fsearch/cwd/g.txt:6:MARK b +| /tmp/pardes-snap/fsearch/cwd/g.txt:10:MARK c +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| +| +| +== snap first grid=120x30 cursor=7,1 +|Kill Newcol Tutor Debug Colors NextColor Dump +| nm /tmp/pardes-snap/fsearch/cwd/g.txt Save Del nm /tmp/pardes-snap/fsearch/cwd Del +| 2 MARK a +| 3 l3 g.txt +| 4 l4 +| 5 l5 +| 6 MARK b +| 7 l7 +| 8 l8 +| 9 l9 +| 10 MARK c +| nm /tmp/pardes-snap/fsearch/cwd Del +| g.txt +| +| +| +| g.txt +| /tmp/pardes-snap/fsearch/cwd/g.txt:2:MARK a +| /tmp/pardes-snap/fsearch/cwd/g.txt:6:MARK b +| /tmp/pardes-snap/fsearch/cwd/g.txt:10:MARK c +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| +| +| +== style first +|0: 0-44 #969696,#2c2a3e, 45-119 d,#2c2a3e, +|1: 0-1 d,#6e4fd0, 2-47 #969696,#2c2a3e, 48-59 d,#2c2a3e, 60-61 d,#383c54, 62-96 #969696,#2c2a3e, 97-119 d,#2c2a3e, +|2: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d, +|3: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d, +|4: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d, +|5: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d, +|6: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d, +|7: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d, +|8: 0-1 d,#2a2a2a, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d, +|9: 0-1 d,#2a2a2a, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d, +|10: 0-1 d,#2a2a2a, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d, +|11: 0-1 d,#383c54, 2-36 #969696,#2c2a3e, 37-59 d,#2c2a3e, 60-61 d,#525252, 62-119 d,d, +|12: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|13: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|14: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|15: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|16: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|17: 0-1 d,#525252, 2-59 #d8c8a8,#4a3a1e, 60-61 d,#525252, 62-119 d,d, +|18: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|19: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|20: 0-1 d,#2a2a2a, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|21: 0-1 d,#383c54, 2-36 #969696,#2c2a3e, 37-59 d,#2c2a3e, 60-61 d,#525252, 62-119 d,d, +|22: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|23: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|24: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|25: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|26: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|27: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|28: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +|29: 0-1 d,#525252, 2-59 d,d, 60-61 d,#525252, 62-119 d,d, +== snap second grid=120x30 cursor=7,1 +|Kill Newcol Tutor Debug Colors NextColor Dump +| nm /tmp/pardes-snap/fsearch/cwd/g.txt Save Del nm /tmp/pardes-snap/fsearch/cwd Del +| 6 MARK b +| 7 l7 g.txt +| 8 l8 +| 9 l9 +| 10 MARK c +| 11 l11 +| 12 l12 +| +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| g.txt +| +| +| +| g.txt +| /tmp/pardes-snap/fsearch/cwd/g.txt:2:MARK a +| /tmp/pardes-snap/fsearch/cwd/g.txt:6:MARK b +| /tmp/pardes-snap/fsearch/cwd/g.txt:10:MARK c +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| +| +| +== snap third grid=120x30 cursor=7,1 +|Kill Newcol Tutor Debug Colors NextColor Dump +| nm /tmp/pardes-snap/fsearch/cwd/g.txt Save Del nm /tmp/pardes-snap/fsearch/cwd Del +| 10 MARK c +| 11 l11 g.txt +| 12 l12 +| +| +| +| +| +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| g.txt +| +| +| +| g.txt +| /tmp/pardes-snap/fsearch/cwd/g.txt:2:MARK a +| /tmp/pardes-snap/fsearch/cwd/g.txt:6:MARK b +| /tmp/pardes-snap/fsearch/cwd/g.txt:10:MARK c +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| +| +| +== snap back grid=120x30 cursor=7,1 +|Kill Newcol Tutor Debug Colors NextColor Dump +| nm /tmp/pardes-snap/fsearch/cwd/g.txt Save Del nm /tmp/pardes-snap/fsearch/cwd Del +| 6 MARK b +| 7 l7 g.txt +| 8 l8 +| 9 l9 +| 10 MARK c +| 11 l11 +| 12 l12 +| +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| g.txt +| +| +| +| g.txt +| /tmp/pardes-snap/fsearch/cwd/g.txt:2:MARK a +| /tmp/pardes-snap/fsearch/cwd/g.txt:6:MARK b +| /tmp/pardes-snap/fsearch/cwd/g.txt:10:MARK c +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| +| +| +== snap cancel grid=120x30 cursor=52,1 +|Kill Newcol Tutor Debug Colors NextColor Dump +| nm /tmp/pardes-snap/fsearch/cwd/g.txt Save Del nm /tmp/pardes-snap/fsearch/cwd Del +| 6 MARK b +| 7 l7 g.txt +| 8 l8 +| 9 l9 +| 10 MARK c +| 11 l11 +| 12 l12 +| +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| g.txt +| +| +| +| g.txt +| /tmp/pardes-snap/fsearch/cwd/g.txt:2:MARK a +| /tmp/pardes-snap/fsearch/cwd/g.txt:6:MARK b +| /tmp/pardes-snap/fsearch/cwd/g.txt:10:MARK c +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| +| +| +== snap nomatch grid=120x30 cursor=54,1 +|Kill Newcol Tutor Debug Colors NextColor Dump +| nm /tmp/pardes-snap/fsearch/cwd/g.txt Save Del nm /tmp/pardes-snap/fsearch/cwd Del +| 6 MARK b +| 7 l7 g.txt +| 8 l8 +| 9 l9 +| 10 MARK c +| 11 l11 +| 12 l12 +| +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| +| +| g.txt +| /tmp/pardes-snap/fsearch/cwd/g.txt:2:MARK a +| /tmp/pardes-snap/fsearch/cwd/g.txt:6:MARK b +| /tmp/pardes-snap/fsearch/cwd/g.txt:10:MARK c +| +| +| nm /tmp/pardes-snap/fsearch/cwd Del +| +| g.txt +| +| +| +| +| +| diff --git a/test/snapshots/fsearch.snap b/test/snapshots/fsearch.snap new file mode 100644 index 00000000..eab702cb --- /dev/null +++ b/test/snapshots/fsearch.snap @@ -0,0 +1,63 @@ +# `/` file search: the pattern types into the tag (persistent, no popup); +# Enter runs grep -nH into a shell pane so the results are ordinary terminal +# text; n/N select the next/prev result row there (prompt rows skipped via the +# OSC 133 semantic marks) and look it — the file pane scrolls to path:NNN. +# Esc abandons the input; a no-match search leaves n with nowhere to go. +file g.txt l1\nMARK a\nl3\nl4\nl5\nMARK b\nl7\nl8\nl9\nMARK c\nl11\nl12 +start 30 120 +wait 8000 g.txt +stable 700 20000 +# open g.txt: type the name in the shell, look it (as in look-file.snap) +press left 5 8 +release left 5 8 +stable 400 5000 +key i +text g.txt +key esc +settle 700 +stable 400 5000 +press right 6 8 +release right 6 8 +wait 10000 MARK a +stable 700 15000 +snap opened +# / starts the search input in the tag; the pattern is visible while typing +key / +stable 400 5000 +text MARK +stable 400 5000 +snap typing +key enter +wait 10000 g.txt:2:MARK +stable 700 10000 +snap results +# n selects result 1 in the results pane + scrolls the file to line 2 +key n +stable 700 15000 +snap first +snapstyle first +key n +stable 700 15000 +snap second +key n +stable 700 15000 +snap third +# N walks back up to result 2 (line 6) +key N +stable 700 15000 +snap back +# Esc abandons the input: the tag tail is restored +key / +text zz +key esc +settle 700 +stable 400 5000 +snap cancel +# a no-match search: n has nowhere to go (nothing changes, no crash) +key / +text zzqq +key enter +stable 700 10000 +key n +stable 400 5000 +snap nomatch |
