diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-31 11:42:18 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 15:02:08 -0300 |
| commit | 911215846f1d5a9b2e37a00e74fb9266d4a0884a (patch) | |
| tree | 31413ca3336cbbd1933d9dc3e24f09a3b8ef46b4 /test/snapshots/psearch.golden | |
| parent | 0b7a480bef38b209741c520e2478d178767a9e51 (diff) | |
| download | pardes-911215846f1d5a9b2e37a00e74fb9266d4a0884a.tar.gz pardes-911215846f1d5a9b2e37a00e74fb9266d4a0884a.zip | |
a Look path can name a range, and search selects what it found
file:LINE:COL-ENDLINE:ENDCOL, with the two short forms people actually type
reading naturally: file:412:9-21 on one line, file:412-418 whole ones. Ends are
inclusive. A path feature, not a search feature — a ranged path typed in a tag
or middle-clicked out of a shell's output selects just the same; search is only
its first consumer.
The dash is the fussy part. `-` was already a file char, so a ranged word
survives click expansion whole, but a range needs a number on BOTH sides or
my-file:10, build-2 and 2026-07-30 would stop being paths. Table-driven test in
look.zig for exactly that.
Selecting goes through the cellRange/setPaneRange pair the multi-cursor work
left, and hxOff clamps both ends, so a stale range selects what still exists
rather than crashing or reaching past EOF — pinned with an 8:6-400:9 range in a
nine-line file.
Producers: / search, Grep, and five LSP sites through a new spanRow — goto,
references, rename tokens and both symbol lists were throwing away real
protocol ranges at path:line:col. Left alone deliberately: Find rows are bare
paths with nothing to span, a jump is a spot not a span, and the diagnostic and
format paths only ever have a point, where half a range would be worse than
none.
One knock-on worth knowing: n now leaves an EXPLICIT selection, so a topbar
execute chords it. grep.snap's no-match step was silently becoming
`Grep TARGET`; it runs from the leader path now, which never chords, and the
dedicated chord steps stayed where they were.
Diffstat (limited to 'test/snapshots/psearch.golden')
| -rw-r--r-- | test/snapshots/psearch.golden | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/test/snapshots/psearch.golden b/test/snapshots/psearch.golden index 2bd9fc81..7456db00 100644 --- a/test/snapshots/psearch.golden +++ b/test/snapshots/psearch.golden @@ -88,10 +88,10 @@ | | | NOR /tmp/pardes-snap/psearch/cwd/+Search Del -| 1 @p0:2:3 x MARK a -| 2 @p0:4:3 x MARK b -| 3 @p0:6:3 x MARK c -== snap first grid=140x30 cursor=4,3 +| 1 @p0:2:3-6 x MARK a +| 2 @p0:4:3-6 x MARK b +| 3 @p0:6:3-6 x MARK c +== snap first grid=140x30 cursor=7,3 |Kill Newcol Tutor Debug NextColor Dump Find Grep Help | NOR /tmp/pardes-snap/psearch/cwd Del | @@ -119,14 +119,14 @@ | | | NOR /tmp/pardes-snap/psearch/cwd/+Search Del -| 1 @p0:2:3 x MARK a -| 2 @p0:4:3 x MARK b -| 3 @p0:6:3 x MARK c +| 1 @p0:2:3-6 x MARK a +| 2 @p0:4:3-6 x MARK b +| 3 @p0:6:3-6 x MARK c == style first |0: 0-52 #949494,#121212, 53-139 d,#121212, |1: 0-1 d,#626262, 2-37 #949494,#121212, 38-139 d,#121212, |2: 0-1 d,#444444, 2-139 #bdbdbd,#080808, -|3: 0-1 d,#444444, 2-139 #bdbdbd,#080808, +|3: 0-1 d,#444444, 2-3 #bdbdbd,#080808, 4-7 #d8c8a8,#4a3a1e, 8-139 #bdbdbd,#080808, |4: 0-1 d,#444444, 2-139 #bdbdbd,#080808, |5: 0-1 d,#444444, 2-139 #bdbdbd,#080808, |6: 0-1 d,#444444, 2-139 #bdbdbd,#080808, @@ -151,9 +151,9 @@ |25: 0-1 d,#444444, 2-139 #bdbdbd,#080808, |26: 0-1 d,#262626, 2-45 #949494,#121212, 46-139 d,#121212, |27: 0-1 d,#444444, 2-6 #626262,#080808, 7-139 #d8c8a8,#4a3a1e, -|28: 0-1 d,#444444, 2-6 #626262,#080808, 7-22 #bdbdbd,#080808, 23-139 d,#080808, -|29: 0-1 d,#121212, 2-6 #626262,#080808, 7-22 #bdbdbd,#080808, 23-139 d,#080808, -== snap second grid=140x30 cursor=4,5 +|28: 0-1 d,#444444, 2-6 #626262,#080808, 7-24 #bdbdbd,#080808, 25-139 d,#080808, +|29: 0-1 d,#121212, 2-6 #626262,#080808, 7-24 #bdbdbd,#080808, 25-139 d,#080808, +== snap second grid=140x30 cursor=7,5 |Kill Newcol Tutor Debug NextColor Dump Find Grep Help | NOR /tmp/pardes-snap/psearch/cwd Del | @@ -181,10 +181,10 @@ | | | NOR /tmp/pardes-snap/psearch/cwd/+Search Del -| 1 @p0:2:3 x MARK a -| 2 @p0:4:3 x MARK b -| 3 @p0:6:3 x MARK c -== snap back grid=140x30 cursor=4,3 +| 1 @p0:2:3-6 x MARK a +| 2 @p0:4:3-6 x MARK b +| 3 @p0:6:3-6 x MARK c +== snap back grid=140x30 cursor=7,3 |Kill Newcol Tutor Debug NextColor Dump Find Grep Help | NOR /tmp/pardes-snap/psearch/cwd Del | @@ -212,10 +212,10 @@ | | | NOR /tmp/pardes-snap/psearch/cwd/+Search Del -| 1 @p0:2:3 x MARK a -| 2 @p0:4:3 x MARK b -| 3 @p0:6:3 x MARK c -== snap nomatch grid=140x30 cursor=4,3 +| 1 @p0:2:3-6 x MARK a +| 2 @p0:4:3-6 x MARK b +| 3 @p0:6:3-6 x MARK c +== snap nomatch grid=140x30 cursor=7,3 |Kill Newcol Tutor Debug NextColor Dump Find Grep Help | NOR /tmp/pardes-snap/psearch/cwd Del | @@ -243,9 +243,9 @@ | NOR /tmp/pardes-snap/psearch/cwd/+Search Del | 1 | NOR /tmp/pardes-snap/psearch/cwd/+Search Del -| 1 @p0:2:3 x MARK a -| 2 @p0:4:3 x MARK b -| 3 @p0:6:3 x MARK c +| 1 @p0:2:3-6 x MARK a +| 2 @p0:4:3-6 x MARK b +| 3 @p0:6:3-6 x MARK c == snap ttyinert grid=140x30 cursor=4,8 |Kill Newcol Tutor Debug NextColor Dump Find Grep Help | TTY /tmp/pardes-snap/psearch/cwd Del @@ -274,10 +274,10 @@ | NOR /tmp/pardes-snap/psearch/cwd/+Search Del | 1 | NOR /tmp/pardes-snap/psearch/cwd/+Search Del -| 1 @p0:2:3 x MARK a -| 2 @p0:4:3 x MARK b -| 3 @p0:6:3 x MARK c -== snap rightsearch grid=140x30 cursor=4,3 +| 1 @p0:2:3-6 x MARK a +| 2 @p0:4:3-6 x MARK b +| 3 @p0:6:3-6 x MARK c +== snap rightsearch grid=140x30 cursor=7,3 |Kill Newcol Tutor Debug NextColor Dump Find Grep Help | NOR /tmp/pardes-snap/psearch/cwd Del | @@ -299,12 +299,12 @@ | | | NOR /tmp/pardes-snap/psearch/cwd/+Search Del -| 1 @p0:2:3 x MARK a -| 2 @p0:4:3 x MARK b -| 3 @p0:6:3 x MARK c +| 1 @p0:2:3-6 x MARK a +| 2 @p0:4:3-6 x MARK b +| 3 @p0:6:3-6 x MARK c | NOR /tmp/pardes-snap/psearch/cwd/+Search Del | 1 | NOR /tmp/pardes-snap/psearch/cwd/+Search Del -| 1 @p0:2:3 x MARK a -| 2 @p0:4:3 x MARK b -| 3 @p0:6:3 x MARK c +| 1 @p0:2:3-6 x MARK a +| 2 @p0:4:3-6 x MARK b +| 3 @p0:6:3-6 x MARK c |
