summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-25 05:58:33 -0300
committerGabriel Schneider <[email protected]>2026-11-25 05:58:33 -0300
commit1d440373e90516ace8e45e8e64f2e4ae5d4a4773 (patch)
tree2eb1247e10a143c37d4972d1d1f883a38e140a85 /test
parent99c70953a0c3b8e32cc5b61121c2b18e5ee68edd (diff)
downloadpardes-1d440373e90516ace8e45e8e64f2e4ae5d4a4773.tar.gz
pardes-1d440373e90516ace8e45e8e64f2e4ae5d4a4773.zip
TagState, Pick, Band: computed text breaks between its items only, a hanging indent under the spines, a rolled level three rows at most ending `+N ↓`, the picker's act row one row, a row too long cut with `…` (a path from the left) (walk UI polish P1, UX DESIGN.md D2): the rolled level was one long line wrapped by the tag's grapheme wrap, so a key fell apart from its label (`P`/`ClipPasteBefore`, `l ls`/`p…`, `D d`/`iagnostic end`) and its continuation rows started at the tag's first column under the box; the act row wrapped onto two (`Grep Rec`/`ent`); a band row was clipped at its step's edge; now (TagState.Builder) `keyCell` keeps each key cell's column and `row(indent)` starts a row of the head with a `│` under each key cell left of the indent (UX D5's spines through the tag's continuation rows; `// P2: the rule role`) and blanks up to it; the rolled level puts each child (`key label`) whole, a row's last child followed by the next row from the first child's column, three rows at most (a terminal's: the rows its own text takes, as before), the last one's last fitting child followed by a dim `+N ↓` (N the children not shown; the cells of it and of a struck key kept on the last row), its hints by the right block's rule on its last row (dropped where they do not fit); Pick.head's key cells are the builder's (its head's first spans, as every head's), its act row one row from two cells right of the last spine: the acts, `|`, the other sources, what does not fit dropped from the right (the sources first) and a dim `…` ending it (M-l, M-h reach them); Band.findSpines takes the key cells on whatever row they are (it wanted them on the tag's last row, so a picker's band had no spines and its steps started at the pane's edge: fsearch's list rows); Band.cutRow holds a row to its room with `…`: a path (its directory faint: Find's rows) cut from the left (`…r/Store.zig`), anything else from the right, its marks and faint bytes moved with it; TEST FIRST: TagState.zig "a rolled level breaks between its children only: ..." (SPC's level at 60 columns: three rows, the second and third `│ ` then a child, no row wider than the tag, every child shown whole, the rest counted in the last row's `+N ↓`; SPC h's on one row), Pick.zig "a picker's act row is one row under the spines ..." (60 columns: `│ │ Walk Look ` ... ` …`, a dim `…`), Band.zig "a row longer than its room is cut with `…` ..."; the SPC test reads a level of three rows at most; core-test 1066/1236 (170 skipped); process-test: 3 goldens regenerated and read: leader (the rolled level's second and third rows `│ ` from its first child's column, no child split, the hints at the last row's right end), find (`␣ f`'s hints at the row's end), fsearch (the list picker's act row one row ending `Panes …`, its band rows under spines from two cells right of the last, the body a row up); a user met the split words at every width under ~160 columns
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'test')
-rw-r--r--test/snapshots/find.golden2
-rw-r--r--test/snapshots/fsearch.golden35
-rw-r--r--test/snapshots/leader.golden10
3 files changed, 24 insertions, 23 deletions
diff --git a/test/snapshots/find.golden b/test/snapshots/find.golden
index 83fd76dc..6af0405d 100644
--- a/test/snapshots/find.golden
+++ b/test/snapshots/find.golden
@@ -1,7 +1,7 @@
== snap group grid=120x41 cursor=7,3
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
| New Term Find Grep Joincol Delcol
-| ␣ f ▸ c Config f Find g Grep h History n New r Recent s Save ↓ unroll · ? help
+| ␣ f ▸ c Config f Find g Grep h History n New r Recent s Save ↓ unroll · ? help
| 1 Find zqm
|
|
diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden
index dd1d34e5..fe5a29ef 100644
--- a/test/snapshots/fsearch.golden
+++ b/test/snapshots/fsearch.golden
@@ -71,23 +71,11 @@
|30: 0-1 d,#1d2824, 2-179 #67756e,#1d2824,
== snap list grid=180x31 cursor=110,16
|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › ␣ l /MARK/ 1/3
-|17: ls │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent Panes Symb
-|18: g.txt ols All Jumplist
-|19: ▶ /tmp/pardes-snap/fsearch/cwd/g.txt:2:1: MARK a
-|20: /tmp/pardes-snap/fsearch/cwd/g.txt:6:1: MARK b
-|21: /tmp/pardes-snap/fsearch/cwd/g.txt:10:1: MARK c
-|22: 1 l1
-|23: 2 MARK a
-|24: 3 l3
-|25: 4 l4
-|26: 5 l5
-|27: 6 MARK b
-|28: 7 l7
-|29: 8 l8
-== snap ctrln grid=180x31 cursor=110,16
-|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › ␣ l /MARK/ 2/3
-|19: /tmp/pardes-snap/fsearch/cwd/g.txt:2:1: MARK a
-|20: ▶ /tmp/pardes-snap/fsearch/cwd/g.txt:6:1: MARK b
+|17: ls │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent Panes …
+|18: g.txt │ │ ▶ /tmp/pardes-snap/fsearch/cwd/g.txt:2:1: MARK a
+|19: │ │ /tmp/pardes-snap/fsearch/cwd/g.txt:6:1: MARK b
+|20: │ │ /tmp/pardes-snap/fsearch/cwd/g.txt:10:1: MARK c
+|21: 1 l1
|22: 2 MARK a
|23: 3 l3
|24: 4 l4
@@ -96,6 +84,19 @@
|27: 7 l7
|28: 8 l8
|29: 9 l9
+== snap ctrln grid=180x31 cursor=110,16
+|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › ␣ l /MARK/ 2/3
+|18: g.txt │ │ /tmp/pardes-snap/fsearch/cwd/g.txt:2:1: MARK a
+|19: │ │ ▶ /tmp/pardes-snap/fsearch/cwd/g.txt:6:1: MARK b
+|21: 2 MARK a
+|22: 3 l3
+|23: 4 l4
+|24: 5 l5
+|25: 6 MARK b
+|26: 7 l7
+|27: 8 l8
+|28: 9 l9
+|29: 10 MARK c
== snap landed grid=180x31 cursor=97,22
|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › g.txt:1 › /MARK/ 2/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse
|17: ls Follow Del
diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden
index b93030e8..1f2d4fc5 100644
--- a/test/snapshots/leader.golden
+++ b/test/snapshots/leader.golden
@@ -2,8 +2,8 @@
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
| New Term Find Grep Joincol Delcol
| ␣ ▸ b buffer… c column… f file… h help… j jump… l lsp… n new… s session… t view… ' Resume
-| / All ? Help d Del e Message p ClipPaste P ClipPasteBefore q Exit R ClipReplace w Window
-| y ClipYank Y ClipYankMain ↓ unroll · ? help
+| │ / All ? Help d Del e Message p ClipPaste P ClipPasteBefore q Exit R ClipReplace
+| │ w Window y ClipYank Y ClipYankMain ↓ unroll · ? help
| 1 Help Help h Help t Help c Help l
|
|
@@ -41,7 +41,7 @@
|
| /tmp/pardes-snap/leader/cwd/cmds.txt:1
== snap spc-h grid=100x41 cursor=7,3
-|2: ␣ h ▸ b Build c Changelog k Keys m Messages t Tutor ↓ unroll · ? help
+|2: ␣ h ▸ b Build c Changelog k Keys m Messages t Tutor ↓ unroll · ? help
|3: 1 Help Help h Help t Help c Help l
|4:
|5:
@@ -49,8 +49,8 @@
|2: /tmp/pardes-snap/leader/cwd/cmds.txt Keep Save Term Collapse Follow Del
== snap unmapped grid=100x41 cursor=7,5
|2: ␣ ▸ b buffer… c column… f file… h help… j jump… l lsp… n new… s session… t view… ' Resume
-|3: / All ? Help d Del e Message p ClipPaste P ClipPasteBefore q Exit R ClipReplace w Window
-|4: y ClipYank Y ClipYankMain x ↓ unroll · ? help
+|3: │ / All ? Help d Del e Message p ClipPaste P ClipPasteBefore q Exit R ClipReplace
+|4: │ w Window y ClipYank Y ClipYankMain x ↓ unroll · ? help
|5: 1 Help Help h Help t Help c Help l
== snap help-group grid=100x41 cursor=7,6
|2: /tmp/pardes-snap/leader/cwd/cmds.txt Keep Save Term Collapse Follow Del