From b17ff3c29dc5b0eb03fe471be9b96098cbb631f8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 25 Nov 2026 10:16:33 -0300 Subject: Pick: a list of places (a Grep's hits, All's, a list's: Refs, SPC e's errors, a server's symbols) shows each row's place in the dim ink and its text after it in one column, the widest place shown before it (UX E7 2b, D4/D5): THE CAUSE: Pick.rowAt wrote `path:line code` with one blank between them and the band drew its `pre` (the place) in the tag's name tint, so every row repeated `Jump.zig:76` as loud as the code (8.4:1 against the code's 8.8:1) and the code started at a ragged column (UX2/before: the old +Search grouped hits under a file line with the code in one column, `path:line:col` dim); THE FIX: Pick.steps, for those sources, gives each row whose place has text after it Band.Row.quiet over the place up to its blank (a column `:3:1` and the `:` of a compiler's `path:line:col: words` are the place's), which the band draws in the dim ink of its ground over the name tint, and pads the place to the widest one shown, the matched letters moved with the text; bounded by the rows shown (the band's window), nothing at rest or for any other picker; TEST FIRST: Pick.zig "a list of places (a Grep's, a list's) shows each row's `path:line` in the dim ink and its text after it in one column, the widest place shown before it (UX E7 2b)" (fails on the base: Row.quiet 0..0); GOLDENS: fsearch's list and ctrln snaps (rows 18 and 19: `g.txt:2:1: MARK a`, `g.txt:6:1: MARK b` padded to `g.txt:10:1: MARK c`'s column) and lsp's symbols snap (rows 4 and 5: `a.zig:1:7-9 std`, `a.zig:3:4-9 helper` padded to `a.zig:7:8-11 main`'s), regenerated with process-test -- --update fsearch / lsp and read, no other row moved (these snaps keep no style rows for the band); core-test 1087/1258 (171 skipped), process-test 2 of 147 failed before the goldens (fsearch, lsp), 0 after Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE --- test/snapshots/fsearch.golden | 8 ++++---- test/snapshots/lsp.golden | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden index e7814fb5..c0e3f076 100644 --- a/test/snapshots/fsearch.golden +++ b/test/snapshots/fsearch.golden @@ -70,8 +70,8 @@ == 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 +|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 @@ -85,8 +85,8 @@ |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 +|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 diff --git a/test/snapshots/lsp.golden b/test/snapshots/lsp.golden index 5d536a0f..c680700d 100644 --- a/test/snapshots/lsp.golden +++ b/test/snapshots/lsp.golden @@ -59,8 +59,8 @@ == snap symbols grid=120x41 cursor=24,2 |2: ^ a.zig:8 › ␣ l Symbols 1/3 |3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent Panes Symbols All Jumplist -|4: │ │ ▶ a.zig:1:7-9 std -|5: │ │ a.zig:3:4-9 helper +|4: │ │ ▶ a.zig:1:7-9 std +|5: │ │ a.zig:3:4-9 helper |6: │ │ a.zig:7:8-11 main |7: │ │ |8: 1▸const std = @import("std"); -- cgit v1.3