diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 21:40:17 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 23:31:32 -0300 |
| commit | 08aacc103047d414d780dd805e73618b7bef7f38 (patch) | |
| tree | 7900d24daca9db753fec50872b7b8baa555c24bd /core/Core.zig | |
| parent | 0e9d91dcf8bf42ee6c9b3a777d6cac658b83f97a (diff) | |
| download | pardes-08aacc103047d414d780dd805e73618b7bef7f38.tar.gz pardes-08aacc103047d414d780dd805e73618b7bef7f38.zip | |
Jump: Ctrl-o at a walk's first place never rewrites its trail: past it the jump list passes by a closed file's entry while the reading pane has steps after where it is, so Ctrl-i goes forward again (UX DESIGN L1's fault, not part L's redesign: after SPC f f words, Enter, /in_word, Enter, the first C-o went to main.zig:1 and the second stepped to words.zig as a new step, dropping `Find words 1/1`, `/in_word/` and the place after them, L4-co2, and C-i had nothing to go forward to, L5-ci); THE CAUSE: Trail.walkBy skips list and search words and gives the step to the jump list at the trail's first place (Jump.jumpBy), whose older entries for the walk's own files are closed ones (a walk step keeps a pane's serial but not its slot, and trackJump closes the entry of a slot gone), and jumpBy reopens a closed entry through look.reopenAt → lookAt → walk → Trail.step in the same reading pane: a new step from its first place drops every step after it; THE FIX: from a reading pane with steps after where it is, jumpBy passes closed entries by (`Back: nothing further back` when none is left); a live entry still moves the keyboard or the caret, and a reading pane at its newest step, with nothing after it to drop, reopens as before; where part L's L-a would plug in: Trail.walkBy's `if (t.steps[i] != .place) continue;` (a list word: Pick.reopen of its index there, the picker unrolled as left; a search word: the caret back to where the search started), this rule kept for the jump list past the oldest word; RUN (TEST FIRST): Jump.zig "Ctrl-o at a walk's first place never rewrites its trail (UX L)" types part L's keys in an 84x20 session of main.zig with words.zig beside it (SPC f f words, Enter, /in_word, Enter, then C-o, C-o, C-i, C-i) and asks after each key the file, the trail's 4 steps with the list's and the search's words at 1 and 2, and where it is (main.zig at 0, main.zig at 0, words.zig at 3, words.zig at 3): fails on the base at the second C-o (words.zig, a trail of 2 steps, as L4-co2), passes now; a user hit it on any C-o past a walk's first place with a closed file older in the jump list; core-test 1117/1290 (173 skipped: +1 of these), shell-test 1338/1341, behaviour-test 280/280, process-test 0 of 147 failed (with the change before); load 2.4 to 5.6
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/Core.zig')
0 files changed, 0 insertions, 0 deletions
