summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 19:32:34 -0300
committerGabriel Schneider <[email protected]>2026-11-05 22:03:21 -0300
commit8fe1cbd5ba5792b71f4a1b9be6f3e8df591ec52b (patch)
tree6977f394e1f07e9cee6f4ebe791de3e09ba95c4e /src/builtins.zig
parent542e6677e23e277ce39edb3e96d729e9adca99d0 (diff)
downloadpardes-8fe1cbd5ba5792b71f4a1b9be6f3e8df591ec52b.tar.gz
pardes-8fe1cbd5ba5792b71f4a1b9be6f3e8df591ec52b.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig5
1 files changed, 3 insertions, 2 deletions
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);
}
};