From 791d47a64db09f842d23b3d0b03c40951f30aae6 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 24 Nov 2026 22:32:25 -0300 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- core/mouse.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/mouse.zig') 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); -- cgit v1.3