summaryrefslogtreecommitdiff
path: root/core/Query.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 06:33:52 -0300
committerGabriel Schneider <[email protected]>2026-11-20 06:33:53 -0300
commitffe05cceb897b3ae6a6d36491f9318a8aa3426e7 (patch)
tree352414579559060b3e8486af34e29d49fd5df781 /core/Query.zig
parent5b7124d10f9b2db8d1c5e99eacb9b6d2fffff0cc (diff)
parenta403340ec5c90238b136ca85fc64d65809b29a65 (diff)
downloadpardes-ffe05cceb897b3ae6a6d36491f9318a8aa3426e7.tar.gz
pardes-ffe05cceb897b3ae6a6d36491f9318a8aa3426e7.zip
integration: the build's second pass on the handle and the devices once: pardes-build-pass2 (pardes-isolate and the tree-sitter=disabled tier deleted; one option, grammars = none | minimal | full; build.zig with the consumer's lines as its head comment; test/lib -> test/consumer; the manual's library section) and pardes-merge31, merged without a textual conflict; one line follows a deletion: dev/file_watch.zig's end-to-end test of a session's watches (written since on the base) guarded on fs.platform_has_fs, which the first of these changes deleted: the guard reads as the file's other tests' (comptime !supported); tui core-test 857/1008 (151 skipped), shell-test 1048/1051, the window builds; the coordinator's gate in the ledger (reorg/merge32)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Query.zig')
-rw-r--r--core/Query.zig7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/Query.zig b/core/Query.zig
index 704206e6..ebb44155 100644
--- a/core/Query.zig
+++ b/core/Query.zig
@@ -2294,7 +2294,6 @@ fn settle(p: *Pardes) void {
}
test "Find: names fuzzy per keystroke, the group born with its +Preview, nothing else moves, Enter promotes the preview in place" {
- if (!filesystem.platform_has_fs) return;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
try tmp.dir.createDirPath(std.testing.io, "src");
@@ -2346,7 +2345,6 @@ test "Find: names fuzzy per keystroke, the group born with its +Preview, nothing
}
test "Grep: lines of the files under the owner's directory, under their file; All: every pane's, under @pN in serial order, a line once" {
- if (!filesystem.platform_has_fs) return;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "b.zig", .data = "const needle = 1;\nconst hay = 2;\nneedle needle\n" });
@@ -2568,7 +2566,6 @@ test "Enter on a frozen query pane's rows after its text was edited: no row to l
}
test "a query row's place is its text: the match tinted after it, B3 on it opens the place, the rows saved and read again still Look" {
- if (!filesystem.platform_has_fs) return;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 120, .rows = 48 });
@@ -2627,7 +2624,6 @@ test "a query row's place is its text: the match tinted after it, B3 on it opens
}
test "the +Preview: the query's hits in its file are its places, the row's one current and selected, coloured as the file is" {
- if (!filesystem.platform_has_fs) return;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
const text = "const needle = 1;\nconst hay = 2;\nfn f() void {\n _ = needle;\n}\npub const needle_too = needle;\n";
@@ -2662,7 +2658,6 @@ test "the +Preview: the query's hits in its file are its places, the row's one c
sel = pv.body.primaryRange(pv.file.?.content, 0);
try std.testing.expectEqual(expected.items[2].start, @min(sel.anchor, sel.head));
// its colours the file's, as its own pane paints them
- if (!syntax.enabled) return;
var frame = std.heap.ArenaAllocator.init(std.testing.allocator);
defer frame.deinit();
_ = try p.render(frame.allocator());
@@ -2674,7 +2669,6 @@ test "the +Preview: the query's hits in its file are its places, the row's one c
}
test "a row's address is the shortest path a Look from the query pane resolves: in its directory, under it, above it, else absolute" {
- if (!filesystem.platform_has_fs) return;
if (!pardes.lsp.supports.contains(.references)) return;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
@@ -2716,7 +2710,6 @@ test "a row's address is the shortest path a Look from the query pane resolves:
}
test "a query row's address reaches every way a look arrives: an empty look written back to event and the whole row written to look, as the mouse on it" {
- if (!filesystem.platform_has_fs) return;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 120, .rows = 48 });