summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-24 11:57:35 -0300
committerGabriel Schneider <[email protected]>2026-10-24 12:21:18 -0300
commit8ac6db5662dd2db0f082e1651835f1db36e235f8 (patch)
treeae8a8e928ca774b4347e4d19a8bf083c397e909b /src/builtins.zig
parent51903dd947f90381d1a908c488a019289a1c8413 (diff)
downloadpardes-8ac6db5662dd2db0f082e1651835f1db36e235f8.tar.gz
pardes-8ac6db5662dd2db0f082e1651835f1db36e235f8.zip
Search converge 4/6: the disk engine, Grep and Find's listing on a worker (rg when there, else a sorted walk), generation-numbered batches, a debounce, a 2000-line cap and More, and the declarations parse off the loop
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index 7cdee9de..c8909e66 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -1756,6 +1756,14 @@ pub const Search = struct {
}
};
+/// A query pane's Grep stopped at its 2000 lines goes on for 2000 more.
+pub const More = struct {
+ pub const quiet = true;
+ pub fn run(c: Ctx) void {
+ if (!pardes.Stream.moreFor(c.p, c.id)) c.p.reportFailure(c.id, "More: no search is waiting at its cap");
+ }
+};
+
/// Pick an open pane by its name in a query pane under this one (SPC b b).
pub const Panes = struct {
pub const takes_arg = true;