summaryrefslogtreecommitdiff
path: root/src/tagline.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/tagline.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/tagline.zig')
-rw-r--r--src/tagline.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tagline.zig b/src/tagline.zig
index 89152a3a..3c8dd3e1 100644
--- a/src/tagline.zig
+++ b/src/tagline.zig
@@ -39,6 +39,8 @@ pub const dir_pane_tail = " " ++ config.dir_pane_builtins_str;
/// them into text a Save keeps; Unattach leaves it where it stands.
pub const query_live_tail = " Del";
pub const query_frozen_tail = " Save Unattach Del";
+/// ...and while its Grep waits at 2000 lines for More (Stream.zig).
+pub const query_capped_tail = " More Del";
/// A file with changes it has not saved.
pub fn dirty(pane: *const panes.Pane) bool {
const f = pane.file orelse return false;
@@ -181,7 +183,7 @@ pub fn curTail(pane: *Pane) []const u8 {
pub fn defaultTail(pane: *const Pane) []const u8 {
if (comptime pdf_enabled) if (pane.pdf != null) return pdf_pane_tail;
- if (pane.query) |q| return if (q.frozen) query_frozen_tail else query_live_tail;
+ if (pane.query) |q| return if (q.frozen) query_frozen_tail else if (q.capped) query_capped_tail else query_live_tail;
if (pane.file) |file| if (file.listing != null) return dir_pane_tail;
if (pane.file) |file| if (file.pager) return if (file.pager_diff) pager_diff_pane_tail else pager_pane_tail;
if (pane.file != null and pane.colorAlgo() == .diff) return diff_pane_tail;