summaryrefslogtreecommitdiff
path: root/test/snapshots/grep.golden
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-31 11:42:18 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:08 -0300
commit911215846f1d5a9b2e37a00e74fb9266d4a0884a (patch)
tree31413ca3336cbbd1933d9dc3e24f09a3b8ef46b4 /test/snapshots/grep.golden
parent0b7a480bef38b209741c520e2478d178767a9e51 (diff)
downloadpardes-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/grep.golden')
-rw-r--r--test/snapshots/grep.golden58
1 files changed, 29 insertions, 29 deletions
diff --git a/test/snapshots/grep.golden b/test/snapshots/grep.golden
index 768c56dc..8ea45e14 100644
--- a/test/snapshots/grep.golden
+++ b/test/snapshots/grep.golden
@@ -88,10 +88,10 @@
|
|
| NOR /tmp/pardes-snap/grep/cwd/+Search Del
-| 1 a.txt:1:7 hello TARGET one
-| 2 a.txt:3:6 last TARGET line
-| 3 sub/b.txt:2:1 TARGET inside sub
-== snap first grid=180x30 cursor=13,2
+| 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
+== snap first grid=180x30 cursor=18,2
|Kill Newcol Tutor Debug NextColor Dump Find Grep Help
| NOR /tmp/pardes-snap/grep/cwd/a.txt Save Del NOR /tmp/pardes-snap/grep/cwd Del NOR /tmp/pardes-snap/grep/cwd Del
| 1 hello TARGET one
@@ -119,10 +119,10 @@
|
|
| NOR /tmp/pardes-snap/grep/cwd/+Search Del
-| 1 a.txt:1:7 hello TARGET one
-| 2 a.txt:3:6 last TARGET line
-| 3 sub/b.txt:2:1 TARGET inside sub
-== snap opened-hit grid=180x30 cursor=12,4
+| 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
+== snap opened-hit grid=180x30 cursor=17,4
|Kill Newcol Tutor Debug NextColor Dump Find Grep Help
| NOR /tmp/pardes-snap/grep/cwd/a.txt Save Del NOR /tmp/pardes-snap/grep/cwd Del NOR /tmp/pardes-snap/grep/cwd Del
| 1 hello TARGET one
@@ -150,10 +150,10 @@
|
|
| NOR /tmp/pardes-snap/grep/cwd/+Search Del
-| 2 a.txt:3:6 last TARGET line
-| 3 sub/b.txt:2:1 TARGET inside sub
+| 2 a.txt:3:6-11 last TARGET line
+| 3 sub/b.txt:2:1-6 TARGET inside sub
| 4
-== snap nomatch grid=180x30 cursor=13,2
+== snap nomatch grid=180x30 cursor=17,4
|Kill Newcol Tutor Debug NextColor Dump Find Grep Help
| NOR /tmp/pardes-snap/grep/cwd/a.txt Save Del NOR /tmp/pardes-snap/grep/cwd Del NOR /tmp/pardes-snap/grep/cwd Del
| 1 hello TARGET one
@@ -163,9 +163,9 @@
|
| a.txt
|
-| NOR /tmp/pardes-snap/grep/cwd/+Search Del
-| 1 a.txt:1:7 hello TARGET one
-| 2 a.txt:3:6 last TARGET line
+|
+|
+|
| NOR /tmp/pardes-snap/grep/cwd/+Search Del
| 1
| NOR /tmp/pardes-snap/grep/cwd/sub/b.txt Save Del
@@ -181,8 +181,8 @@
|
|
| NOR /tmp/pardes-snap/grep/cwd/+Search Del
-| 2 a.txt:3:6 last TARGET line
-| 3 sub/b.txt:2:1 TARGET inside sub
+| 2 a.txt:3:6-11 last TARGET line
+| 3 sub/b.txt:2:1-6 TARGET inside sub
| 4
== snap chordsel grid=180x30 cursor=19,2
|Kill Newcol Tutor Debug NextColor Dump Find Grep Help
@@ -194,9 +194,9 @@
|
| a.txt
|
-| NOR /tmp/pardes-snap/grep/cwd/+Search Del
-| 1 a.txt:1:7 hello TARGET one
-| 2 a.txt:3:6 last TARGET line
+|
+|
+|
| NOR /tmp/pardes-snap/grep/cwd/+Search Del
| 1
| NOR /tmp/pardes-snap/grep/cwd/sub/b.txt Save Del
@@ -212,8 +212,8 @@
|
|
| NOR /tmp/pardes-snap/grep/cwd/+Search Del
-| 2 a.txt:3:6 last TARGET line
-| 3 sub/b.txt:2:1 TARGET inside sub
+| 2 a.txt:3:6-11 last TARGET line
+| 3 sub/b.txt:2:1-6 TARGET inside sub
| 4
== snap chord grid=180x30 cursor=19,2
|Kill Newcol Tutor Debug NextColor Dump Find Grep Help
@@ -221,13 +221,13 @@
| 1 hello TARGET one
| 2 nothing here a.txt noise.txt sub a.txt noise.txt sub
| 3 last TARGET line
+|
+|
+| a.txt
| NOR /tmp/pardes-snap/grep/cwd/+Search Del
-| 1 a.txt:1:7 hello TARGET one
-| 2 a.txt:3:6 last TARGET line a.txt
-| 3 sub/b.txt:2:1 TARGET inside sub
-| NOR /tmp/pardes-snap/grep/cwd/+Search Del
-| 1 a.txt:1:7 hello TARGET one
-| 2 a.txt:3:6 last TARGET line
+| 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
| NOR /tmp/pardes-snap/grep/cwd/+Search Del
| 1
| NOR /tmp/pardes-snap/grep/cwd/sub/b.txt Save Del
@@ -243,6 +243,6 @@
|
|
| NOR /tmp/pardes-snap/grep/cwd/+Search Del
-| 2 a.txt:3:6 last TARGET line
-| 3 sub/b.txt:2:1 TARGET inside sub
+| 2 a.txt:3:6-11 last TARGET line
+| 3 sub/b.txt:2:1-6 TARGET inside sub
| 4