summaryrefslogtreecommitdiff
path: root/src/dump.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-01 17:52:24 -0300
committerGabriel Schneider <[email protected]>2026-10-01 18:02:10 -0300
commitafec162464d360cbbf475d3fb7457cda83ce918f (patch)
tree7278bc32743769c096fd743758ea3a2967b8be93 /src/dump.zig
parentfe9ec319e01052e3ede65ad0e8a809dd5f2c9953 (diff)
downloadpardes-afec162464d360cbbf475d3fb7457cda83ce918f.tar.gz
pardes-afec162464d360cbbf475d3fb7457cda83ce918f.zip
Back and Forward keep to the focused file: Ctrl-o, Ctrl-i, the mouse's side buttons (now the tty's 8 and 9 too), the builtins and 9P go to the nearest place that way in this pane, else in this file in another pane, else of any file; JumpScope all takes every place in order as before
Diffstat (limited to 'src/dump.zig')
-rw-r--r--src/dump.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dump.zig b/src/dump.zig
index 84321457..005770e1 100644
--- a/src/dump.zig
+++ b/src/dump.zig
@@ -1028,14 +1028,17 @@ test "a dump keeps the settings that differ from a fresh session's, and a restor
defer p.deinit();
try std.testing.expect(p.executeBuiltinLine(p.active, "Placement pardes"));
try std.testing.expect(p.executeBuiltinLine(p.active, "Verbose off"));
+ try std.testing.expect(p.executeBuiltinLine(p.active, "JumpScope all"));
try dumpState(p);
try std.testing.expect(std.mem.indexOf(u8, p.dump_out.?, "\"Placement pardes\"") != null);
+ try std.testing.expect(std.mem.indexOf(u8, p.dump_out.?, "\"JumpScope all\"") != null);
// What is left at its default is not written.
try std.testing.expect(std.mem.indexOf(u8, p.dump_out.?, "\"BootShell keep\"") == null);
const restored = try initFromDump(gpa, .{ .tty_only = true }, p.dump_out.?);
defer restored.deinit();
try std.testing.expectEqual(config.Runtime.Placement.pardes, restored.settings.placement);
try std.testing.expect(!restored.settings.verbose);
+ try std.testing.expectEqual(config.Runtime.JumpScope.all, restored.settings.jump_scope);
}
test "a session with every column it may hold dumps and restores them all" {