diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-24 22:32:25 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-24 22:32:25 -0300 |
| commit | 791d47a64db09f842d23b3d0b03c40951f30aae6 (patch) | |
| tree | d2d8b9fa92055748d866d9296b26ae995df59172 /core/mouse.zig | |
| parent | 89b3e7365bac28c4cd7d52d40c1786c01db5af52 (diff) | |
| download | pardes-791d47a64db09f842d23b3d0b03c40951f30aae6.tar.gz pardes-791d47a64db09f842d23b3d0b03c40951f30aae6.zip | |
walk: Enter on a word of the walk with the keyboard in the tag Looks it as a click does (Tab Execs it, as B2), and out of rest the walk folds to its newest word, its older ones `·` (pick-ui SPEC §6.3, §3.4.3, walk UI line F item 5, the gaps line B left): keys.zig handleKey's Enter-in-a-tag asks tagline.trailAt at the cursor's byte before taking the word as a builtin's operand, the keyboard back in the body as a click leaves it; Trail.folded says how many back steps a tag writes whole (shown_steps at rest, one while TagState.hostOf is its pane), which Trail.write, bytes and stepAt now take (wordOf's fold the caller's), so the name's offset (tagline.nameAt), the forward span, a click on a step, the drafted name and the name's tint all read the trail as it is drawn (nameAt, forwardSpan, onName and draw.tagTintRange take the session); TEST: Trail.zig "Enter on a word of the walk, the keyboard in the tag, goes back to its step ..." (SPC folds `‹@pN › · › rank.zig:20 ›`, Esc unfolds, Enter on rank.zig:10 goes back there); core-test 1026/1193 (167 skipped), 0 failed, load 8
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'core/mouse.zig')
| -rw-r--r-- | core/mouse.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mouse.zig b/core/mouse.zig index 400d020b..48546c12 100644 --- a/core/mouse.zig +++ b/core/mouse.zig @@ -1265,7 +1265,7 @@ fn dragRelease(p: *Pardes, button: Mouse.Button) void { // (pick-ui SPEC §6.3): the one place B1 does more than // select. if (!dragged and tagline.trailClick(p, s.id, row, col, false)) return; - if (if (dragged) null else tagline.onName(p.settings.tab, pane, row, col)) |at| { + if (if (dragged) null else tagline.onName(p, pane, row, col)) |at| { tagline.draftName(p, pane, at); } else if (tagline.tagOffsetAt(p, pane, row, col)) |cursor| { pane.tag.cur_row = @intCast(cursor.row); |
