From 8fe1cbd5ba5792b71f4a1b9be6f3e8df591ec52b Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 19:32:34 -0300 Subject: split pardes.zig by noun, Jump: the jump list's functions and its place type move into src/Jump.zig, the clean room's name: Loc and the path cap a closed place names, jumpPath, samePlace, trackJump and jumpBy (the list's fields stay the session's until #38); callers name Jump (builtins.zig's Back and Forward, mouse.zig's side buttons, sync's trackJump, test/pdf.zig as pardes.Jump); the session's recentDot is pub for it; tests moved with them, by name: the jump list never holds two entries in a row the same, when the one between them goes; jump history skips an entry whose pane slot or serial is gone, leaving the selection; Back and Forward take the same steps from the mouse's side buttons and jumpBy (and its JumpsTest); jump history terminal rectangle follows output and clears on reflow; a pure move, no field touched, a dump and the wire as they were; gates on tui: core-test 960/960, behaviour-test 238/238, pane-test 171/172 (1 skipped) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/builtins.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/builtins.zig') diff --git a/src/builtins.zig b/src/builtins.zig index 08c41510..398e699d 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -14,6 +14,7 @@ const layout = @import("layout.zig"); const config = @import("config.zig"); const limits = @import("memory.zig").limits; const keys = @import("keys.zig"); +const Jump = @import("Jump.zig"); /// What this build's own frontend draws and its host does: the render's. pub const frontend: config.Runtime.Capabilities = .{ @@ -1810,7 +1811,7 @@ pub const Window = struct { pub const Back = struct { pub const scope: Scope = .session; pub fn run(c: Ctx) void { - c.p.jumpBy(-1); + Jump.jumpBy(c.p, -1); } }; @@ -1818,7 +1819,7 @@ pub const Back = struct { pub const Forward = struct { pub const scope: Scope = .session; pub fn run(c: Ctx) void { - c.p.jumpBy(1); + Jump.jumpBy(c.p, 1); } }; -- cgit v1.3