diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-30 17:33:18 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:17 -0300 |
| commit | 39149c051a79e7d5148522b9851768a8e5b2ab54 (patch) | |
| tree | bb4f11b00a7e8714903ad3fbcda071af50eb81a2 /src/look.zig | |
| parent | 41147087343144a439a77e6b9817f30d596a6fcb (diff) | |
| download | pardes-39149c051a79e7d5148522b9851768a8e5b2ab54.tar.gz pardes-39149c051a79e7d5148522b9851768a8e5b2ab54.zip | |
A terminal's word looks refill the directory's one +Search, as +Lsp is shared, rather than stacking one per word
Each word looked for in a terminal (clicked, or written to look), where
no file of that name was, opened another +Search in the same directory,
one per word, until the column filled. Such a search now refills the
directory's +Search, as the file searches and the +Lsp answers already
share theirs. A `/` search keeps a +Search per pattern, which n and N
walk across (psearch.snap), so the sharing is marked on the word look
alone (Pardes.word_look).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/look.zig')
| -rw-r--r-- | src/look.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/look.zig b/src/look.zig index 0f99722d..e22f5705 100644 --- a/src/look.zig +++ b/src/look.zig @@ -1346,6 +1346,8 @@ fn lookUnresolved(p: *Pardes, id: usize, pane: *Pane, trimmed: []const u8, text: if (pane.image != null or (pane.body.mode == .tty and !p.fs.serving)) return; if (text.len == 0) return; if (p.settings.look_word == .search and pane.file != null) return lookWord(p, id, pane, text); + p.word_look = true; + defer p.word_look = false; const rows = runSearch(p, id, text, .text, .cursor, false) catch |err| { p.reportError(id, "search", err); return; |
