From 475cc49ccbe9e81f8ec8aa2371c20fc632d110b9 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 9 Aug 2026 00:15:38 -0300 Subject: tagline: align the command words across the panes of a column --- test/snapshots/doccol.golden | 6 +- test/snapshots/fsearch.golden | 18 ++--- test/snapshots/grep.golden | 18 ++--- test/snapshots/look-dir.golden | 4 +- test/snapshots/lookpanes.golden | 30 ++++---- test/snapshots/rsearch.golden | 44 +++++------ test/snapshots/tag.golden | 2 +- test/snapshots/tagalign.golden | 155 +++++++++++++++++++++++++++++++++++++++ test/snapshots/tagalign.snap | 53 +++++++++++++ test/snapshots/tagnav.golden | 42 +++++------ test/snapshots/topbarexec.golden | 4 +- test/snapshots/ttylook.golden | 12 +-- test/snapshots/windownav.golden | 14 ++-- 13 files changed, 305 insertions(+), 97 deletions(-) create mode 100644 test/snapshots/tagalign.golden create mode 100644 test/snapshots/tagalign.snap (limited to 'test') diff --git a/test/snapshots/doccol.golden b/test/snapshots/doccol.golden index b54e7885..c6d5468a 100644 --- a/test/snapshots/doccol.golden +++ b/test/snapshots/doccol.golden @@ -62,7 +62,7 @@ | == snap moved grid=100x30 cursor=57,20 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/doccol/cwd/a.txt Save New Del /tmp/pardes-snap/doccol/cwd New Del +| /tmp/pardes-snap/doccol/cwd/a.txt Save New Del /tmp/pardes-snap/doccol/cwd New Del | 1 AAA | a.txt b.txt c.txt | @@ -93,7 +93,7 @@ | == snap worked grid=100x30 cursor=59,21 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/doccol/cwd/a.txt Save New Del /tmp/pardes-snap/doccol/cwd New Del +| /tmp/pardes-snap/doccol/cwd/a.txt Save New Del /tmp/pardes-snap/doccol/cwd New Del | 1 AAA | a.txt b.txt c.txt | @@ -124,7 +124,7 @@ | == snap third grid=100x30 cursor=57,26 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/doccol/cwd/a.txt Save New Del /tmp/pardes-snap/doccol/cwd New Del +| /tmp/pardes-snap/doccol/cwd/a.txt Save New Del /tmp/pardes-snap/doccol/cwd New Del | 1 AAA | a.txt b.txt c.txt | diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden index 8de3f0e7..f0c89e1b 100644 --- a/test/snapshots/fsearch.golden +++ b/test/snapshots/fsearch.golden @@ -87,7 +87,7 @@ | | | -| /tmp/pardes-snap/fsearch/cwd/+Search New Del +| /tmp/pardes-snap/fsearch/cwd/+Search New Del | 1 g.txt:2:1-4 MARK a | 2 g.txt:6:1-4 MARK b | 3 g.txt:10:1-4 MARK c @@ -118,7 +118,7 @@ | | | -| /tmp/pardes-snap/fsearch/cwd/+Search New Del +| /tmp/pardes-snap/fsearch/cwd/+Search New Del | 1 g.txt:2:1-4 MARK a | 2 g.txt:6:1-4 MARK b | 3 g.txt:10:1-4 MARK c @@ -149,7 +149,7 @@ |23: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-59 d,#080808, 60-60 d,#444444, 61-61 d,#080808, 62-119 #bdbdbd,#080808, 120-120 d,#444444, 121-121 d,#080808, 122-179 #bdbdbd,#080808, |24: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-59 d,#080808, 60-60 d,#444444, 61-61 d,#080808, 62-119 #bdbdbd,#080808, 120-120 d,#444444, 121-121 d,#080808, 122-179 #bdbdbd,#080808, |25: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-59 d,#080808, 60-60 d,#444444, 61-61 d,#080808, 62-119 #bdbdbd,#080808, 120-120 d,#444444, 121-121 d,#080808, 122-179 #bdbdbd,#080808, -|26: 0-1 #ffffff,#262626, 2-45 #949494,#121212, 46-59 d,#121212, 60-60 d,#444444, 61-61 d,#080808, 62-119 #bdbdbd,#080808, 120-120 d,#444444, 121-121 d,#080808, 122-179 #bdbdbd,#080808, +|26: 0-1 #ffffff,#262626, 2-48 #949494,#121212, 49-59 d,#121212, 60-60 d,#444444, 61-61 d,#080808, 62-119 #bdbdbd,#080808, 120-120 d,#444444, 121-121 d,#080808, 122-179 #bdbdbd,#080808, |27: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-59 #080808,#80a0ff, 60-60 d,#444444, 61-61 d,#080808, 62-119 #bdbdbd,#080808, 120-120 d,#444444, 121-121 d,#080808, 122-179 #bdbdbd,#080808, |28: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-24 #bdbdbd,#080808, 25-59 d,#080808, 60-60 d,#444444, 61-61 d,#080808, 62-119 #bdbdbd,#080808, 120-120 d,#444444, 121-121 d,#080808, 122-179 #bdbdbd,#080808, |29: 0-0 d,#121212, 1-1 d,#080808, 2-6 #626262,#080808, 7-25 #bdbdbd,#080808, 26-59 d,#080808, 60-60 d,#444444, 61-61 d,#080808, 62-119 #bdbdbd,#080808, 120-120 d,#444444, 121-121 d,#080808, 122-179 #bdbdbd,#080808, @@ -180,7 +180,7 @@ | | | -| /tmp/pardes-snap/fsearch/cwd/+Search New Del +| /tmp/pardes-snap/fsearch/cwd/+Search New Del | 1 g.txt:2:1-4 MARK a | 2 g.txt:6:1-4 MARK b | 3 g.txt:10:1-4 MARK c @@ -211,7 +211,7 @@ | | | -| /tmp/pardes-snap/fsearch/cwd/+Search New Del +| /tmp/pardes-snap/fsearch/cwd/+Search New Del | 1 g.txt:2:1-4 MARK a | 2 g.txt:6:1-4 MARK b | 3 g.txt:10:1-4 MARK c @@ -242,7 +242,7 @@ | | | -| /tmp/pardes-snap/fsearch/cwd/+Search New Del +| /tmp/pardes-snap/fsearch/cwd/+Search New Del | 1 g.txt:2:1-4 MARK a | 2 g.txt:6:1-4 MARK b | 3 g.txt:10:1-4 MARK c @@ -273,7 +273,7 @@ | | | -| /tmp/pardes-snap/fsearch/cwd/+Search New Del +| /tmp/pardes-snap/fsearch/cwd/+Search New Del | 1 g.txt:2:1-4 MARK a | 2 g.txt:6:1-4 MARK b | 3 g.txt:10:1-4 MARK c @@ -302,9 +302,9 @@ | | | -| /tmp/pardes-snap/fsearch/cwd/+Search New Del +| /tmp/pardes-snap/fsearch/cwd/+Search New Del | 1 -| /tmp/pardes-snap/fsearch/cwd/+Search New Del +| /tmp/pardes-snap/fsearch/cwd/+Search New Del | 1 g.txt:2:1-4 MARK a | 2 g.txt:6:1-4 MARK b | 3 g.txt:10:1-4 MARK c diff --git a/test/snapshots/grep.golden b/test/snapshots/grep.golden index ed1086df..a8252249 100644 --- a/test/snapshots/grep.golden +++ b/test/snapshots/grep.golden @@ -87,7 +87,7 @@ | | | -| /tmp/pardes-snap/grep/cwd/+Search New Del +| /tmp/pardes-snap/grep/cwd/+Search New Del | 1 a.txt:1:7-12 hello TARGET one | 2 a.txt:3:6-11 last TARGET line | 3 sub/b.txt:2:1-6 TARGET inside sub @@ -118,7 +118,7 @@ | | | -| /tmp/pardes-snap/grep/cwd/+Search New Del +| /tmp/pardes-snap/grep/cwd/+Search New Del | 1 a.txt:1:7-12 hello TARGET one | 2 a.txt:3:6-11 last TARGET line | 3 sub/b.txt:2:1-6 TARGET inside sub @@ -149,7 +149,7 @@ | | | -| /tmp/pardes-snap/grep/cwd/+Search New Del +| /tmp/pardes-snap/grep/cwd/+Search New Del | 1 a.txt:1:7-12 hello TARGET one | 2 a.txt:3:6-11 last TARGET line | 3 sub/b.txt:2:1-6 TARGET inside sub @@ -166,7 +166,7 @@ | | | -| /tmp/pardes-snap/grep/cwd/+Search New Del +| /tmp/pardes-snap/grep/cwd/+Search New Del | 1 | /tmp/pardes-snap/grep/cwd/sub/b.txt Save New Del | 1 deep @@ -180,7 +180,7 @@ | | | -| /tmp/pardes-snap/grep/cwd/+Search New Del +| /tmp/pardes-snap/grep/cwd/+Search New Del | 1 a.txt:1:7-12 hello TARGET one | 2 a.txt:3:6-11 last TARGET line | 3 sub/b.txt:2:1-6 TARGET inside sub @@ -197,7 +197,7 @@ | | | -| /tmp/pardes-snap/grep/cwd/+Search New Del +| /tmp/pardes-snap/grep/cwd/+Search New Del | 1 | /tmp/pardes-snap/grep/cwd/sub/b.txt Save New Del | 1 deep @@ -211,7 +211,7 @@ | | | -| /tmp/pardes-snap/grep/cwd/+Search New Del +| /tmp/pardes-snap/grep/cwd/+Search New Del | 1 a.txt:1:7-12 hello TARGET one | 2 a.txt:3:6-11 last TARGET line | 3 sub/b.txt:2:1-6 TARGET inside sub @@ -228,7 +228,7 @@ | | | -| /tmp/pardes-snap/grep/cwd/+Search New Del +| /tmp/pardes-snap/grep/cwd/+Search New Del | 1 | /tmp/pardes-snap/grep/cwd/sub/b.txt Save New Del | 1 deep @@ -242,7 +242,7 @@ | | | -| /tmp/pardes-snap/grep/cwd/+Search New Del +| /tmp/pardes-snap/grep/cwd/+Search New Del | 1 a.txt:1:7-12 hello TARGET one | 2 a.txt:3:6-11 last TARGET line | 3 sub/b.txt:2:1-6 TARGET inside sub diff --git a/test/snapshots/look-dir.golden b/test/snapshots/look-dir.golden index 5b4f57ee..a29b1cf1 100644 --- a/test/snapshots/look-dir.golden +++ b/test/snapshots/look-dir.golden @@ -1,6 +1,6 @@ == snap dir-open grid=100x30 cursor=4,8 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/look-dir/cwd New Del /tmp/pardes-snap/look-dir/cwd New Del +| /tmp/pardes-snap/look-dir/cwd New Del /tmp/pardes-snap/look-dir/cwd New Del | | sub top.txt sub top.txt | @@ -15,7 +15,7 @@ | | | -| /tmp/pardes-snap/look-dir/cwd New Del +| /tmp/pardes-snap/look-dir/cwd New Del | | sub top.txt | diff --git a/test/snapshots/lookpanes.golden b/test/snapshots/lookpanes.golden index acdb02a3..d049ff5a 100644 --- a/test/snapshots/lookpanes.golden +++ b/test/snapshots/lookpanes.golden @@ -1,6 +1,6 @@ == snap shells grid=130x50 cursor=122,3 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save New Del /tmp/pardes-snap/lookpanes/cwd New Del +| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save New Del /tmp/pardes-snap/lookpanes/cwd New Del | 1 both.txt | 2 b-marker alpha beta zzboot.txt zqonly.txt pick.txt twin.txt | @@ -51,7 +51,7 @@ | == snap other-dir grid=130x50 cursor=7,27 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save New Del /tmp/pardes-snap/lookpanes/cwd New Del +| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save New Del /tmp/pardes-snap/lookpanes/cwd New Del | 1 both.txt | 2 b-marker alpha beta zzboot.txt zqonly.txt pick.txt twin.txt | @@ -102,7 +102,7 @@ | == snap clicked-wins grid=130x50 cursor=7,15 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save New Del /tmp/pardes-snap/lookpanes/cwd New Del +| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save New Del /tmp/pardes-snap/lookpanes/cwd New Del | 1 both.txt | 2 b-marker alpha beta zzboot.txt zqonly.txt pick.txt twin.txt | @@ -115,7 +115,7 @@ | | | -| /tmp/pardes-snap/lookpanes/cwd/beta/both.txt Save New Del +| /tmp/pardes-snap/lookpanes/cwd/beta/both.txt Save New Del | 1 BOTH-FROM-BETA | | @@ -153,7 +153,7 @@ | == snap mru-alpha grid=130x50 cursor=7,21 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save New Del /tmp/pardes-snap/lookpanes/cwd New Del +| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save New Del /tmp/pardes-snap/lookpanes/cwd New Del | 1 both.txt | 2 b-marker alpha beta zzboot.txt zqonly.txt pick.txt twin.txt | @@ -166,13 +166,13 @@ | | | -| /tmp/pardes-snap/lookpanes/cwd/beta/both.txt Save New Del +| /tmp/pardes-snap/lookpanes/cwd/beta/both.txt Save New Del | 1 BOTH-FROM-BETA | | | | -| /tmp/pardes-snap/lookpanes/cwd/alpha/pick.txt Save New Del +| /tmp/pardes-snap/lookpanes/cwd/alpha/pick.txt Save New Del | 1 PICK-FROM-ALPHA | | @@ -204,26 +204,26 @@ | == snap mru-beta grid=130x50 cursor=7,9 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save New Del /tmp/pardes-snap/lookpanes/cwd New Del +| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save New Del /tmp/pardes-snap/lookpanes/cwd New Del | 1 both.txt | 2 b-marker alpha beta zzboot.txt zqonly.txt pick.txt twin.txt | | /tmp/pardes-snap/lookpanes/cwd/alpha New Del | | amark.txt both.txt pick.txt twin.txt zqonly.txt -| /tmp/pardes-snap/lookpanes/cwd/beta/twin.txt Save New Del +| /tmp/pardes-snap/lookpanes/cwd/beta/twin.txt Save New Del | 1 TWIN-FROM-BETA | | | | -| /tmp/pardes-snap/lookpanes/cwd/beta/both.txt Save New Del +| /tmp/pardes-snap/lookpanes/cwd/beta/both.txt Save New Del | 1 BOTH-FROM-BETA | | | | -| /tmp/pardes-snap/lookpanes/cwd/alpha/pick.txt Save New Del +| /tmp/pardes-snap/lookpanes/cwd/alpha/pick.txt Save New Del | 1 PICK-FROM-ALPHA | | @@ -255,26 +255,26 @@ | == style mru-beta |0: 0-56 #949494,#121212, 57-129 d,#121212, -|1: 0-1 #ffffff,#262626, 2-59 #949494,#121212, 60-64 d,#121212, 65-66 #ffffff,#262626, 67-109 #949494,#121212, 110-129 d,#121212, +|1: 0-1 #ffffff,#262626, 2-61 #949494,#121212, 62-64 d,#121212, 65-66 #ffffff,#262626, 67-110 #949494,#121212, 111-129 d,#121212, |2: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-14 #bdbdbd,#080808, 15-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |3: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-14 #bdbdbd,#080808, 15-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-121 #bdbdbd,#080808, 122-129 d,#080808, |4: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |5: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-66 #ffffff,#262626, 67-110 #949494,#121212, 111-129 d,#121212, |6: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |7: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, -|8: 0-1 #ffffff,#626262, 2-58 #949494,#121212, 59-64 d,#121212, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, +|8: 0-1 #ffffff,#626262, 2-61 #949494,#121212, 62-64 d,#121212, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |9: 0-0 d,#444444, 1-1 d,#080808, 2-6 #949494,#121212, 7-20 #bdbdbd,#080808, 21-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |10: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |11: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |12: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |13: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, -|14: 0-1 #ffffff,#262626, 2-58 #949494,#121212, 59-64 d,#121212, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, +|14: 0-1 #ffffff,#262626, 2-61 #949494,#121212, 62-64 d,#121212, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |15: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-20 #bdbdbd,#080808, 21-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |16: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |17: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |18: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |19: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, -|20: 0-1 #ffffff,#262626, 2-59 #949494,#121212, 60-64 d,#121212, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, +|20: 0-1 #ffffff,#262626, 2-61 #949494,#121212, 62-64 d,#121212, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |21: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-21 #bdbdbd,#080808, 22-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |22: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, |23: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-64 d,#080808, 65-65 d,#444444, 66-66 d,#080808, 67-129 #bdbdbd,#080808, diff --git a/test/snapshots/rsearch.golden b/test/snapshots/rsearch.golden index 852be46d..953634af 100644 --- a/test/snapshots/rsearch.golden +++ b/test/snapshots/rsearch.golden @@ -57,7 +57,7 @@ | | | -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:1:5-11 run count_x now | 2 code.txt:3:1-7 count_x again == snap select grid=180x30 cursor=14,5 @@ -86,14 +86,14 @@ | | | -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:4:1-8 pick two words -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:1:5-11 run count_x now | 2 code.txt:3:1-7 count_x again == snap path-open grid=180x30 cursor=7,16 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del +| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del | 1 run count_x now | 2 open sub/dep.txt:3 here code.txt sub code.txt sub | 3 count_x again @@ -117,14 +117,14 @@ | | | -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:4:1-8 pick two words -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:1:5-11 run count_x now | 2 code.txt:3:1-7 count_x again == snap step1 grid=180x30 cursor=13,4 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del +| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del | 1 run count_x now | 2 open sub/dep.txt:3 here code.txt sub code.txt sub | 3 count_x again @@ -148,14 +148,14 @@ | | | -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:4:1-8 pick two words -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:1:5-11 run count_x now | 2 code.txt:3:1-7 count_x again == snap step2 grid=180x30 cursor=17,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del +| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del | 1 run count_x now | 2 open sub/dep.txt:3 here code.txt sub code.txt sub | 3 count_x again @@ -179,14 +179,14 @@ | | | -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:4:1-8 pick two words -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:1:5-11 run count_x now | 2 code.txt:3:1-7 count_x again == snap step3 grid=180x30 cursor=17,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del +| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del | 1 run count_x now | 2 open sub/dep.txt:3 here code.txt sub code.txt sub | 3 count_x again @@ -210,14 +210,14 @@ | | | -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:4:1-8 pick two words -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:1:5-11 run count_x now | 2 code.txt:3:1-7 count_x again == snap selclick grid=180x30 cursor=14,5 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del +| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del | 1 run count_x now | 2 open sub/dep.txt:3 here code.txt sub code.txt sub | 3 count_x again @@ -241,14 +241,14 @@ | | | -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:4:1-8 pick two words -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:1:5-11 run count_x now | 2 code.txt:3:1-7 count_x again == snap outside grid=180x30 cursor=20,5 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del +| /tmp/pardes-snap/rsearch/cwd/code.txt Save New Del /tmp/pardes-snap/rsearch/cwd New Del /tmp/pardes-snap/rsearch/cwd New Del | 1 run count_x now | 2 open sub/dep.txt:3 here code.txt sub code.txt sub | 3 count_x again @@ -258,7 +258,7 @@ | | | -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:4:10-14 pick two words | /tmp/pardes-snap/rsearch/cwd/sub/dep.txt Save New Del | 1 d1 @@ -272,8 +272,8 @@ | | | -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:4:1-8 pick two words -| /tmp/pardes-snap/rsearch/cwd/+Search New Del +| /tmp/pardes-snap/rsearch/cwd/+Search New Del | 1 code.txt:1:5-11 run count_x now | 2 code.txt:3:1-7 count_x again diff --git a/test/snapshots/tag.golden b/test/snapshots/tag.golden index 68e8ad1f..f24790d2 100644 --- a/test/snapshots/tag.golden +++ b/test/snapshots/tag.golden @@ -139,7 +139,7 @@ | | | -| /tmp/pardes-snap/tag/cwd New Del +| /tmp/pardes-snap/tag/cwd New Del | | t.txt | diff --git a/test/snapshots/tagalign.golden b/test/snapshots/tagalign.golden new file mode 100644 index 00000000..a9dda3c7 --- /dev/null +++ b/test/snapshots/tagalign.golden @@ -0,0 +1,155 @@ +== snap aligned grid=100x30 cursor=4,19 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save New Del +| 1 alpha +| 2 beta +| 3 gamma +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagalign/cwd New Del +| +| deep +| +| +| +| +| +| +| +| +| +| +| +== snap fits grid=87x30 cursor=4,19 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save New Del +| 1 alpha +| 2 beta +| 3 gamma +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagalign/cwd New Del +| +| deep +| +| +| +| +| +| +| +| +| +| +| +== snap overby1 grid=86x30 cursor=4,19 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save New De +| 1 alpha +| 2 beta +| 3 gamma +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagalign/cwd New Del +| +| deep +| +| +| +| +| +| +| +| +| +| +| +== snap clicked grid=100x30 cursor=11,1 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save New Del +| 1 alpha +| 2 beta +| 3 gamma +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/tagalign/cwd New Del +| +| deep +| +| +| +| +| +| +| +| +| +| +| +== snap alone grid=100x30 cursor=4,4 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/tagalign/cwd New Del +| +| deep +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| diff --git a/test/snapshots/tagalign.snap b/test/snapshots/tagalign.snap new file mode 100644 index 00000000..4a3fa2a8 --- /dev/null +++ b/test/snapshots/tagalign.snap @@ -0,0 +1,53 @@ +# The command words of every pane in a LAYOUT COLUMN end at the same screen +# column. tag_right_pad sets that end, but a path too long to fit inside the +# pad used to collapse its own gap alone, so one row's New/Del sat hard against +# its path while the row below it kept its own out at the pad — two ragged +# columns of words you read (and click) down. +# +# Here the file's path is 43 columns longer than the shell's cwd, and long +# enough (85 of the pane's 98 columns) that its own gap is zero. The shell +# below it moves out to the file's end instead of the pad's, so both rows spell +# New and Del in the same two places. +dirmk deep +dirmk deep/nested-project-directory +file deep/nested-project-directory/document.txt alpha\nbeta\ngamma +start 30 100 deep/nested-project-directory/document.txt +wait 8000 New Newcol +wait 8000 document.txt +stable 700 20000 +# Alt-n: a shell BELOW the file, in the same column +key a-n +stable 700 15000 +snap aligned +# A pane whose tag does not FIT is counted AT its right edge rather than +# dropped from the vote. Dropping it would be a threshold: here the file's tag +# is 85 columns, so one column of resize either side of that would move BOTH +# rows of words by the whole pad, and dragging a window edge across the width +# would snap them back and forth under the pointer. 87 -> 86 moves them one +# column, and the file's own tag is the only thing that loses a character. +resize 30 87 +stable 400 5000 +snap fits +resize 30 86 +stable 400 5000 +snap overby1 +resize 30 100 +stable 700 15000 +# A left click on a tagline SEEDS its tail: the gap stops being computed and +# becomes ordinary characters you own. It must not stop the pane VOTING — +# this clicks the FILE's path, and the file is the widest tag in the column, +# the one holding the end out. The shell's row below must not move a column +# (it did once: every other tagline in the column snapped left on the click, +# and a middle-click that used to hit Del landed on whitespace). +press left 12 2 +release left 12 2 +stable 400 5000 +snap clicked +# ...and proving that with the words themselves: Del at the columns the two +# snaps above put it. It closes the file, so the shell is alone in the column +# and falls back to tag_right_pad short of its own edge — the shared end is +# the LIVE widest, not a high-water mark. +press middle 86 2 +release middle 86 2 +stable 700 15000 +snap alone diff --git a/test/snapshots/tagnav.golden b/test/snapshots/tagnav.golden index e3e5e8d2..1c9186be 100644 --- a/test/snapshots/tagnav.golden +++ b/test/snapshots/tagnav.golden @@ -15,7 +15,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -46,7 +46,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -77,7 +77,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -108,7 +108,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -122,7 +122,7 @@ | | | -== snap down-tag grid=100x30 cursor=30,16 +== snap down-tag grid=100x30 cursor=41,16 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill | /tmp/pardes-snap/tagnav/cwd/w.txt Save New Del /tmp/pardes-snap/tagnav/cwd New Del | 1 alpha @@ -139,7 +139,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -170,7 +170,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -201,7 +201,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -232,7 +232,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -263,7 +263,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -294,7 +294,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -325,7 +325,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -356,7 +356,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -387,7 +387,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -418,7 +418,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -449,7 +449,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -480,7 +480,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -511,7 +511,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -542,7 +542,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -573,7 +573,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | @@ -604,7 +604,7 @@ | | | -| /tmp/pardes-snap/tagnav/cwd New Del +| /tmp/pardes-snap/tagnav/cwd New Del | | w.txt | diff --git a/test/snapshots/topbarexec.golden b/test/snapshots/topbarexec.golden index 7d27c4cd..ed996103 100644 --- a/test/snapshots/topbarexec.golden +++ b/test/snapshots/topbarexec.golden @@ -42,7 +42,7 @@ | == snap arg-still-spliced grid=90x20 cursor=14,3 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/topbarexec/cwd New Del /tmp/pardes-snap/topbarexec/cwd New Del +| /tmp/pardes-snap/topbarexec/cwd New Del /tmp/pardes-snap/topbarexec/cwd New Del | | zmarkfile.txt zmarkfile.txt | @@ -52,7 +52,7 @@ | | /tmp/pardes-snap/topbarexec/cwd/+Search New | 1 zmarkfile.txt -| /tmp/pardes-snap/topbarexec/cwd New Del +| /tmp/pardes-snap/topbarexec/cwd New Del | | zmarkfile.txt | diff --git a/test/snapshots/ttylook.golden b/test/snapshots/ttylook.golden index 3b82e3c7..41e16c99 100644 --- a/test/snapshots/ttylook.golden +++ b/test/snapshots/ttylook.golden @@ -186,7 +186,7 @@ | == snap diropen grid=120x30 cursor=4,7 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/ttylook/cwd New Del /tmp/pardes-snap/ttylook/cwd New Del +| /tmp/pardes-snap/ttylook/cwd New Del /tmp/pardes-snap/ttylook/cwd New Del | | big.txt plain.txt sub big.txt plain.txt sub | @@ -201,7 +201,7 @@ | | | -| /tmp/pardes-snap/ttylook/cwd New Del +| /tmp/pardes-snap/ttylook/cwd New Del | | big.txt plain.txt sub | @@ -217,7 +217,7 @@ | == snap noop grid=120x30 cursor=4,7 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/ttylook/cwd New Del /tmp/pardes-snap/ttylook/cwd New Del +| /tmp/pardes-snap/ttylook/cwd New Del /tmp/pardes-snap/ttylook/cwd New Del | | big.txt plain.txt sub big.txt plain.txt sub | @@ -232,7 +232,7 @@ | | | -| /tmp/pardes-snap/ttylook/cwd New Del +| /tmp/pardes-snap/ttylook/cwd New Del | | big.txt plain.txt sub | @@ -248,7 +248,7 @@ | == snap fileopen grid=120x30 cursor=7,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/ttylook/cwd/big.txt S /tmp/pardes-snap/ttylook/cwd New Del /tmp/pardes-snap/ttylook/cwd New Del +| /tmp/pardes-snap/ttylook/cwd/big.txt S /tmp/pardes-snap/ttylook/cwd New Del /tmp/pardes-snap/ttylook/cwd New Del | 1 line 1 | 2 line 2 big.txt plain.txt sub big.txt plain.txt sub | 3 line 3 @@ -263,7 +263,7 @@ | 12 line 12 | 13 line 13 | 14 line 14 -| 15 line 15 /tmp/pardes-snap/ttylook/cwd New Del +| 15 line 15 /tmp/pardes-snap/ttylook/cwd New Del | 16 line 16 | 17 line 17 big.txt plain.txt sub | 18 line 18 diff --git a/test/snapshots/windownav.golden b/test/snapshots/windownav.golden index f38ee1d1..ab8b76ec 100644 --- a/test/snapshots/windownav.golden +++ b/test/snapshots/windownav.golden @@ -170,7 +170,7 @@ | | | -| /tmp/pardes-snap/windownav/cwd New Del +| /tmp/pardes-snap/windownav/cwd New Del | | w.txt | @@ -201,7 +201,7 @@ | | | -| /tmp/pardes-snap/windownav/cwd New Del +| /tmp/pardes-snap/windownav/cwd New Del | | w.txt | @@ -232,7 +232,7 @@ | | | -| /tmp/pardes-snap/windownav/cwd New Del +| /tmp/pardes-snap/windownav/cwd New Del | | w.txt | @@ -263,7 +263,7 @@ | | | -| /tmp/pardes-snap/windownav/cwd New Del +| /tmp/pardes-snap/windownav/cwd New Del | | w.txt | @@ -294,7 +294,7 @@ | | | -| /tmp/pardes-snap/windownav/cwd New Del +| /tmp/pardes-snap/windownav/cwd New Del | | w.txt | @@ -325,7 +325,7 @@ | | | -| /tmp/pardes-snap/windownav/cwd New Del +| /tmp/pardes-snap/windownav/cwd New Del | | w.txt | @@ -356,7 +356,7 @@ | | | -| /tmp/pardes-snap/windownav/cwd New Del +| /tmp/pardes-snap/windownav/cwd New Del | | w.txt | -- cgit v1.3