summaryrefslogtreecommitdiff
path: root/src/ninep
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-25 11:40:05 -0300
committerGabriel Schneider <[email protected]>2026-10-25 12:24:05 -0300
commit685b4050bb0caaa95c4c6a209e69f7777469e9fc (patch)
treeb1c34301f9f1febd5e70dfdfee52425cdca0ef4a /src/ninep
parent29d753b420385d7ca214250909e3a33c85cfab8d (diff)
downloadpardes-685b4050bb0caaa95c4c6a209e69f7777469e9fc.tar.gz
pardes-685b4050bb0caaa95c4c6a209e69f7777469e9fc.zip
query: a row is its place as text, `path:line:col` then its code, the path the shortest a Look from the query pane resolves (Query.lookPath: relative, `../` included, when shorter, else absolute, never `@pN` but for a text with no file), aligned per group, the declaration headers `path:line`; its code coloured as its file's language colours it, the file painted whole on the worker (Stream.paintRows, highlightApart, kept in the locations cache, Query.Shades a walk a refill, Query.recolor in place as each lands) with the match tinted over it; the +Preview's places are the query's hits in its file (a Grep searched, a list fed), tinted and ticked, the row's one current and selected, as in a pane that already shows it; tests for B3 on an address, a saved list's Looks, the shortest path, the preview's places and colours, the worker's colours; fsearch, grep, lookrange, lsp-client, lsprelpath (now `../shade.zig`), stepgrain, tagbottom goldens: the address rows; docs/next-searchrows.md: the design and the numbers
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016u3hBPFfja5pK4EBRC1UVD
Diffstat (limited to 'src/ninep')
-rw-r--r--src/ninep/ctl.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index d9bd4372..9cb96667 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -3059,8 +3059,9 @@ test "a script's Grep and Find fill the pane's one query pane, a row a line unde
const rows = grepped.file.?.content;
try testing.expect(std.mem.startsWith(u8, rows, "Grep bravo\n"));
try testing.expect(std.mem.indexOf(u8, rows, "\nother.txt\n") != null);
- try testing.expect(std.mem.indexOf(u8, rows, "2 bravo here\n") != null);
- try testing.expect(std.mem.indexOf(u8, rows, "3 three bravo\n") != null);
+ // each row its place as text, `path:line:col`, the code in one column
+ try testing.expect(std.mem.indexOf(u8, rows, "\nother.txt:2:1 bravo here\n") != null);
+ try testing.expect(std.mem.indexOf(u8, rows, "\nother.txt:3:7 three bravo\n") != null);
try testing.expectEqual(@as(usize, 2), grepped.query.?.total);
try testing.expectEqual(Status.ok, wr(p, Node.of(serialOf(p), .exec), "Find other\n").reply.status);
const found = p.panes[p.paneBySerial(try std.fmt.parseInt(u32, std.mem.trimEnd(u8, rd(p, root_exec, 0, 64).bytes, "\n"), 10)).?].?;