diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 04:51:19 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 04:51:19 -0300 |
| commit | 36e5561ed6135e2c66f1e0813b037f34a1249eda (patch) | |
| tree | 200ec40ab7338c7444ccd6aed2174490ba22d211 /core/Pick.zig | |
| parent | 3c4b2c99b1a969abad0a530fa99b70b2cb564af3 (diff) | |
| download | pardes-36e5561ed6135e2c66f1e0813b037f34a1249eda.tar.gz pardes-36e5561ed6135e2c66f1e0813b037f34a1249eda.zip | |
ctl, Pick, fs: keys written to /kbdin and a mouse written to /mousein are the user's own, so a builtin they reach routes as typed (walk UI P3 item 2, POLISH 14): Pick.asked, D's "never a 9P script's" test, read `p.fs.serving` alone, so `SPC f f` typed at /kbdin opened the query pane a script's Find opens (a +Search) where jumps walk, never the picker in the tag a user's keys open, and the S kit's screenshots of pickers had to go another way; THE FIX: the request's own flag `fs.typed` (authority-only, beside `serving`), set by ctl.writeKbdin and ctl.writeMousein for their keys and clicks, and Pick.asked is `walk and (not serving or typed)`: a script's Exec of the word still opens its +Search (whose rows it reads back), the write is still served as any (a grep the keys start runs to its end before the write is answered, as `serving` has it); TEST FIRST: test/behaviour/other_files.zig "kbdin's keys are the user's: SPC f f opens Find's picker in the pane's tag where jumps walk" (on the base: a +Search in /index); core-test 1062/1232 (170 skipped), behaviour-test 278/278
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/Pick.zig')
| -rw-r--r-- | core/Pick.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Pick.zig b/core/Pick.zig index 3bab0970..e19866d3 100644 --- a/core/Pick.zig +++ b/core/Pick.zig @@ -149,10 +149,11 @@ pub fn deinit(pk: *Pick, gpa: std.mem.Allocator) void { /// Whether a search a builtin asks for from pane `id` is a picker in the /// tag (SPEC ยง14.3 phase 4): in a session whose jumps walk, from the -/// keyboard or a click, never a script's (a 9P write's: the query pane, -/// whose rows it reads back, and whose `not found` it hears). +/// keyboard or a click (kbdin's and mousein's too), never a script's word +/// (a 9P exec's: the query pane, whose rows it reads back, and whose `not +/// found` it hears). pub fn asked(p: *const Pardes) bool { - return p.settings.jumps == .walk and !p.fs.serving; + return p.settings.jumps == .walk and (!p.fs.serving or p.fs.typed); } /// Picker `id`, kept or live. |
