summaryrefslogtreecommitdiff
path: root/src/Output.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-01 06:47:48 -0300
committerGabriel Schneider <[email protected]>2026-10-01 07:16:43 -0300
commit528c5a28ac3b813a2d0c06a019d7758476257915 (patch)
tree777dd00892ea0d8ef690e8a646c2a8f93b7414fa /src/Output.zig
parent24dbdf73f92cd0a4b5ba130abe182cbcf9b3e472 (diff)
downloadpardes-528c5a28ac3b813a2d0c06a019d7758476257915.tar.gz
pardes-528c5a28ac3b813a2d0c06a019d7758476257915.zip
A second LookWord list look in a directory refills its +Search, as a terminal's word looks already did, rather than stacking another
Each word looked at with LookWord list opened a +Search of its own in the same directory. Word looks now share the directory's one, the next word refilling it; a `/` search still keeps a +Search each. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/Output.zig')
-rw-r--r--src/Output.zig9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Output.zig b/src/Output.zig
index e6448e36..fc300e8b 100644
--- a/src/Output.zig
+++ b/src/Output.zig
@@ -525,10 +525,11 @@ pub fn fillResults(p: *Pardes, id: usize, dir: []const u8, from: Origin, arg: []
const rf = if (rp.file) |*f| f else continue;
const o = if (rf.output) |*x| x else continue;
// A file search's rows share the directory's one +Search, and so do
- // a terminal's word looks (a look of a word no file names, clicked
- // or written): the next word refills it rather than stacking
- // another. A `/` search keeps a +Search each, which n and N walk.
- const terminal_word = p.word_look and from == .search and pane.isTerminal() and o.from == .search;
+ // word looks (`LookWord list`, a terminal's word: a look of a word
+ // no file names, clicked or written): the next word refills it
+ // rather than stacking another. A `/` search keeps a +Search each,
+ // which n and N walk.
+ const terminal_word = p.word_look and from == .search and o.from == .search;
const shared = (fileSearch(from) and fileSearch(o.from)) or terminal_word or (lspProse(from) and lspProse(o.from));
if (i == id and !shared) continue;
if (!shared and !std.meta.eql(o.from, from)) continue;