From 5df97028a994b7e8c1720fd2dd2c1d8d943a8300 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 19 Nov 2026 03:04:50 -0300 Subject: look: n and N in a kind's pane are a motion that reads no disk (the reorganisation's 12a; the user's ruling P14: motions instant on a far client): they walked Look's candidates across every result and output pane, and a word or a row with no place of its own was look-able only if the disk said it named a file (look.wordSpan and lineSpan through look.resolve to fs.resolve's realpath: 33 of the soak's 43 `resolve` stops); lookWalk now takes `disk`, and the key in a kind's pane walks without it: only the places the rows already hold (a row's location, a command row's whole line), so it steps the kind's +Search, references, errors and the like at once and skips words that might name a file, while LookNext and LookPrev (words, a Look's walk, which may wait) and the walk to a kind's first hit keep asking the disk as before; a test at the end of core/replica.zig (a client's n in a plain kind's pane, a scratch whose words name files standing first in the walk, lands on the kind's +Search row at once, confirmed fast), shown failing on the change before (stopped 1); the semantics word did not move; tui core-test 831/973 (142 skipped), shell-test 1008/1011, pane-test 183/184, behaviour-test 275/275 and --replay 275/275, process-test 2 of 144 failed (lspcomplete, lspcompletemoved, the base's; headersweep and cmdexit flaked and passed again), replicas --clients 5 diverged 0 unequal 0 deltas wrong 0 quiet differ 0 at 30/80/207 ms, stopped 89/75/108 (the base 104/133/147), mispredicted 37/34/36 on a run whose inputs now differ from the base's (the probe's 2-seed run with every host entry classed each one, before and after: a join's view, a clock's millisecond, a file's second, never a host call's: reports/pardes-seam-a.md), gui unit-test 1606/1610 (its perf check's BaselineHarnessMismatch the base's), daemon.py plain, --far, --games, --window-clients pass; gate-w seam-a-3 against tree1: 77/77 frames byte-identical in Debug, perfab corpus2x +0.045%, perfops 97 counts within 0.1% (largest +0.0012%) Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- core/normal.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/normal.zig') diff --git a/core/normal.zig b/core/normal.zig index fb392647..66df9608 100644 --- a/core/normal.zig +++ b/core/normal.zig @@ -1277,9 +1277,10 @@ fn executeNormalAction(p: *Pardes, t: *Text, a: modal.Normal.Action) edit.Error! return panes.startPrompt(p, pane, &pane.body, .{ .search = config.search_marker }), // In a file's text, n and N step its places while they answer for // the register (Places.answersN); else helix's search of the register. - // A kind's pane walks its `/`'s +Search (look.zig runSearch). + // A kind's pane walks its `/`'s +Search (look.zig runSearch): the + // places the rows hold, never the disk (a motion). .search_next, .search_prev => if (t.what == .body and pane.addon != null) - return look.lookWalk(p, if (a.role == .search_next) 1 else -1) + return look.lookWalk(p, if (a.role == .search_next) 1 else -1, false) else if (t.what == .body and pane.file != null and pane.places.answersN(p, pane)) return pane.places.step(p, pane, a.role == .search_next, a.count, t.select) else -- cgit v1.3