diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 04:45:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | bda5b5f621d0edd8e26f9700043ab21cae18f329 (patch) | |
| tree | b183df1b137f405a9dcecfe32769e374d2da5c50 /test | |
| parent | 85d5467023a9db801d8ea2538e9611b71cd10d9d (diff) | |
| download | pardes-bda5b5f621d0edd8e26f9700043ab21cae18f329.tar.gz pardes-bda5b5f621d0edd8e26f9700043ab21cae18f329.zip | |
A looked word selects its next place in its own pane, as acme's look3
A plain word looked at (a look write, a right click, an ML record written
back) opened another identically named +Search pane each time, until the
panes ran out, and never wrapped. As acme's look3 searches the text for
it (look.c:210), it now selects the word's next place in that pane after
the dot, wrapping at the end, and opens nothing. LookWord list, a new
root setting, keeps the +Search listing (search is the default); the
rsearch snapshot and an output test that walk the listing say LookWord
list. (The leader-path check over every builtin gets a comptime
branch quota, as one more builtin took the GUI build past the default.)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
| -rw-r--r-- | test/output.zig | 1 | ||||
| -rw-r--r-- | test/snapshots/rsearch.snap | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/output.zig b/test/output.zig index f3e61e93..478f1b4a 100644 --- a/test/output.zig +++ b/test/output.zig @@ -862,6 +862,7 @@ test "n/N resumes the result output whose Look moved focus away" { const p = try Pardes.init(std.testing.allocator, .{ .file = path, .cols = 80, .rows = 24 }); defer p.deinit(); p.locations_config.layout = .@"inline"; + p.settings.look_word = .list; // the +Search listing is what is walked try std.testing.expect(p.executeBuiltinLine(0, "Look target")); const rid = p.panes[0].?.search_pane orelse return error.MissingResults; diff --git a/test/snapshots/rsearch.snap b/test/snapshots/rsearch.snap index 8c81db1d..75d0212c 100644 --- a/test/snapshots/rsearch.snap +++ b/test/snapshots/rsearch.snap @@ -11,6 +11,9 @@ file code.txt run count_x now\nopen sub/dep.txt:3 here\ncount_x again\npick two # the top of the body -- which moves every row this script clicks. What the # verbs do is what is under test, not the announcement. config Verbose off +# the +Search listing is what this walks: LookWord list (search, acme's look3, +# is the default; ctl.zig tests it) +config LookWord list start 31 210 -n 1 wait 8000 code.txt stable 700 20000 |
