summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-25 09:57:56 -0300
committerGabriel Schneider <[email protected]>2026-11-25 09:58:56 -0300
commit6d90badbf94dcee1c8a123153fb331b8c523c9f1 (patch)
tree2223fcf9398a956e3d7aa44d7847ef537544924e /test
parent1902703adec3e8461d623fe6e867bc8adb1e52e0 (diff)
downloadpardes-6d90badbf94dcee1c8a123153fb331b8c523c9f1.tar.gz
pardes-6d90badbf94dcee1c8a123153fb331b8c523c9f1.zip
Pick: a picker's band is capped once, at open, at 40 % of its host pane's rows (UX D6 as E3 amends it, DESIGN.md E5.1), so the layout that borrows the host's body from its column sees the band the pane will have: a Grep from a held pane at 100x30 previews 11 rows (the old +Preview's 8 is E7's pass mark; P1's tree showed 6 at 26 px); TEST FIRST: Pick.zig "a picker's band is capped once at open at 40 % of its host pane's rows; the host borrows from its column for a body of 60 % before the band gives way: a Grep from a held pane at 100x30 previews 8 rows at least" (a held pane, Grep `pub fn` over a file of 40 such lines, Down: on the base the reader made for it, 14 rows at open, kept 14 (2 tag rows, a band of 6, a body of 6, under 60 %) while the held pane kept its 13: `expected 5, found 6`); THE CAUSE: Pick.bandRows took 40 % of the host's COLUMN from `v.rects`, and layout.compute zeroes every rect before it lays the columns out (`v.rects = @splat(.{})`), so the floor it asked while borrowing (layout.floorRows -> Band.takes -> bandRows) was a band of 1 row: nothing was borrowed, and the sync after it (rects laid out) held the band to what the pane had left over a body of 6; P1's reading 5 (the column) is E4's ruling 5 reversed: the host PANE's rows; THE FIX: `Pick.cap`, set in `open` from the host's rect (laid out: landingFor lays a reader made for the picker out), read by bandRows in place of the column (in the dump and the digest with the picker: the layout's term is the state's); the band may still grow with the list (Find's names) up to the cap, never past 11; GOLDEN: fsearch (list, ctrln): the reader borrows one row from the pane above (rows 15-29 where 16-29: 2 tag rows, the band of 4, a body of 9 = 60 %, where it kept 8), so the head is on row 15 and the body shows one more line (9, 11); landed: row 15 goes back to the pane above, blank, as leaving the state gives every pane its rows back; no other golden moved; core-test 1085/1256 (171 skipped), process-test 1 of 147 failed before the golden (fsearch, regenerated with `-- --update fsearch`)
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/fsearch.golden57
1 files changed, 30 insertions, 27 deletions
diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden
index 59a1b0bb..78de9812 100644
--- a/test/snapshots/fsearch.golden
+++ b/test/snapshots/fsearch.golden
@@ -67,35 +67,38 @@
|28: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-93 d,#0d1410, 94-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410,
|29: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
|30: 0-1 d,#1d2824, 2-179 #6f7d75,#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 …
-|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: │ │
-|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 list grid=180x31 cursor=110,15
+|15: ^ ‹@p1 › ␣ l /MARK/ 1/3
+|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent Panes …
+|17: ls │ │ ▶ /tmp/pardes-snap/fsearch/cwd/g.txt:2:1: MARK a
+|18: g.txt │ │ /tmp/pardes-snap/fsearch/cwd/g.txt:6:1: MARK b
+|19: │ │ /tmp/pardes-snap/fsearch/cwd/g.txt:10:1: MARK c
+|20: │ │
+|21: 1 l1
+|22: 2▸MARK a
+|23: 3 l3
+|24: 4 l4
+|25: 5 l5
+|26: 6 MARK b
+|27: 7 l7
+|28: 8 l8
+|29: 9 l9
|30: ⏎ lands here · its text is the preview · S-⏎ a new pane 1 message · SPC h m
-== 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
-|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 ctrln grid=180x31 cursor=110,15
+|15: ^ ‹@p1 › ␣ l /MARK/ 2/3
+|17: ls │ │ /tmp/pardes-snap/fsearch/cwd/g.txt:2:1: MARK a
+|18: g.txt │ │ ▶ /tmp/pardes-snap/fsearch/cwd/g.txt:6:1: MARK b
+|21: 3 l3
+|22: 4 l4
+|23: 5 l5
+|24: 6▸MARK b
+|25: 7 l7
+|26: 8 l8
+|27: 9 l9
+|28: 10 MARK c
+|29: 11 l11
== snap landed grid=180x31 cursor=97,22
+|15:
|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › +1 › /MARK/ 2/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse Foll
|17: ls ow Del
|18: g.txt 2 MARK a