From cd3627307740896426830423598d2e1a8e27b024 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 23:27:29 -0300 Subject: settings #5, three behaviour knobs go, each the value it had by default: ProgramEsc (in a raw terminal Esc goes back a pane and Shift-Esc is the program's Esc; keys.zig's at-the-prompt Esc, which only ProgramEsc reached, goes), JumpScope (Back and Forward keep to the focused pane's file first; Jump.jumpBy's scope test goes) and WindowBlur (the macOS window draws no blur: macos.zig's pardes_window_blur, its header line, and AppDelegate.swift's NSVisualEffectView backdrop go, built nowhere here; Capabilities.window_blur with them); deleted tests: "with ProgramEsc raw tty Escape only leaves at a shell prompt", "modes: with JumpScope all, Ctrl-o and Ctrl-i take every place in the order it was jumped to, and bare JumpScope is file again", "window blur defaults off and validates without changing opacity", macos.zig's "mac window blur builtin reaches the ABI without changing opacity", and the JumpScope all half of "settings: Back and Forward written to exec keep to the focused file"; rewritten: dump's settings test on Wrap, the PDF jump test without its scope check, other-files' jump to a closed file from the +Jumps listing (no file to keep to); the reference, guide, helix-keys and macos docs lose the three; no golden changes; gates on tui: core-test 961/961, behaviour-test 240/240, unit-test 1476/1477, pane-test 171/172, snap all 105 scripts ok, process-test 0 of 37 failed; gui unit-test 1520/1521 Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/behaviour/modes.zig | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'test/behaviour/modes.zig') diff --git a/test/behaviour/modes.zig b/test/behaviour/modes.zig index ef39d912..e615920d 100644 --- a/test/behaviour/modes.zig +++ b/test/behaviour/modes.zig @@ -345,10 +345,9 @@ const Jumps = struct { } }; -test "modes: Ctrl-o keeps to the focused file (JumpScope file), A41 then A1, and leaves it only once it runs out that way; Ctrl-i mirrors it" { +test "modes: Ctrl-o keeps to the focused file, A41 then A1, and leaves it only once it runs out that way; Ctrl-i mirrors it" { var t = try Jumps.init("BABABA"); defer t.s.deinit(); - try std.testing.expect(std.mem.indexOf(u8, try t.s.read("/ctl"), "\nJumpScope file\n") != null); // B81, B41 passed over, kept in their places: A has nothing older than // A1, so the step after it is the nearest place of any file, B1. try std.testing.expectEqualStrings("A41 A1 B1", try t.walk(.key, true)); @@ -372,16 +371,6 @@ test "modes: Ctrl-i retraces a run of Ctrl-o inside one file step for step, back try std.testing.expectEqualStrings("A41 A1", try t.walk(.key, true)); } -test "modes: with JumpScope all, Ctrl-o and Ctrl-i take every place in the order it was jumped to, and bare JumpScope is file again" { - var t = try Jumps.init("ABABA"); - defer t.s.deinit(); - try t.s.write("/ctl", "JumpScope all\n"); - try std.testing.expectEqualStrings("B41 A41 B1 A1", try t.walk(.key, true)); - try std.testing.expectEqualStrings("B1 A41 B41 A81", try t.walk(.key, false)); - try t.s.write("/ctl", "JumpScope\n"); - try std.testing.expect(std.mem.indexOf(u8, try t.s.read("/ctl"), "\nJumpScope file\n") != null); -} - test "modes: from a pane with no file, Ctrl-o and Ctrl-i step through every place" { var t = try Jumps.init("OAOBO"); defer t.s.deinit(); -- cgit v1.3