diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-24 20:33:44 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-24 20:33:44 -0300 |
| commit | 441e61294268bd0bb94abfa6b1ebb4ced23e726c (patch) | |
| tree | ddea5d6685ea34b474f734e33146a6c01dbf0920 /core/Jump.zig | |
| parent | 93160a4d7c6151fba394fd5ab51dea3b7468b937 (diff) | |
| download | pardes-441e61294268bd0bb94abfa6b1ebb4ced23e726c.tar.gz pardes-441e61294268bd0bb94abfa6b1ebb4ced23e726c.zip | |
Pick: the act step (walk UI, pick-ui SPEC.md §5.5, item 3 of line D): M-l or M-Enter unrolls the acts beside the rows, headed by what they act on (`on 2 marked`, `on core/pick.zig`), and the head's second row says them before the sources' words (`Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent ...`); a key letter or Enter on the act's row: w Walk lands on the first picked place and queues the others (Pick.queue, the places as paths and spots), which Ctrl-i steps in the landing pane past its newest step (Pick.stepQueue, at the hook B left in Jump.jumpBy), o Look, s Split, v Newcol (Enter's three ways), g Grep a Grep picker in the picked rows' directory with the same pattern, e Edit the field a sam command (the head `Find pick | Edit s/a/b/`) run by Enter on each picked row's line in the open text that shows it (edit_cmd.run, from the last line up, a row whose file no pane shows passed over and said), y Copy the places as `path:line` lines into the unnamed register, k Keep as C-q, x Drop the picked rows as a refinement without them, d Del (the Panes list's, whose acts are Look Copy Keep Drop Del: its rows are no places) closes the picked panes and lists them again; an act's or a source's word run while the picker is live (B2 on the head's second row or on the band) is the picker's (Pick.execWord, at the head of exec.zig executeBuiltinLine; Grep, both, is the source); B3 on a picker's row lands on it and B2 runs the word with the picker live (mouse.zig bandPress: the picker's arm before A's toRest); a landing pane previewed in its own file has its caret and top put back when the picker rolls up (said in item 2's description, made here); TEST FIRST: Pick.zig "M-l unrolls the act step, which says what it acts on; Copy puts the places in the register, Drop takes the picked rows out, Walk queues the rest for C-i"; core-test 1017/1183 (166 skipped), 0 failed
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'core/Jump.zig')
| -rw-r--r-- | core/Jump.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Jump.zig b/core/Jump.zig index a4ecca04..5cc9d624 100644 --- a/core/Jump.zig +++ b/core/Jump.zig @@ -275,9 +275,10 @@ pub fn trackJump(p: *Pardes) void { pub fn jumpBy(p: *Pardes, delta: i32) void { const v = p.view(); // A reading pane's walk first (pick-ui SPEC §6.4). Past its newest - // step, Ctrl-i is to step the Walk queue once the pickers make one; - // until then, the jump list's. + // step, Ctrl-i steps the Walk queue a picker left (Pick.stepQueue); + // then the jump list's. if (pardes.Trail.walkBy(p, v.active, delta)) return; + if (delta > 0 and pardes.Pick.stepQueue(p, v.active)) return; const older = delta < 0; // At an end of the list: said, not a step that silently does nothing. if (v.jumps.n == 0 or (older and v.jumps.cur == 0) or (!older and v.jumps.cur + 1 >= v.jumps.n)) |
