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 --- src/Jump.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Jump.zig') diff --git a/src/Jump.zig b/src/Jump.zig index 131d7e9d..2220f3c8 100644 --- a/src/Jump.zig +++ b/src/Jump.zig @@ -226,10 +226,10 @@ pub fn trackJump(p: *Pardes) void { /// 9P exec. `jcur` is the entry where you are; the step moves it to the /// entry it lands on, and the entries it passed over stay where they are. /// -/// JumpScope file, from a pane with a file: the nearest entry that way in -/// this pane, else in this file in any pane (a closed one's too), else, -/// with none of this file left that way, the nearest of any file, as -/// JumpScope all always takes. Forward mirrors Back, so it retraces a run +/// From a pane with a file: the nearest entry that way in this pane, else +/// in this file in any pane (a closed one's too), else, with none of this +/// file left that way, the nearest of any file; from a terminal or a +/// scratch, the nearest of any. Forward mirrors Back, so it retraces a run /// of Backs inside one file step for step, and Forwards end, as they /// always have, at the newest entry. pub fn jumpBy(p: *Pardes, delta: i32) void { @@ -239,7 +239,7 @@ pub fn jumpBy(p: *Pardes, delta: i32) void { return p.setMessage(p.active, if (older) "Back: nothing further back" else "Forward: nothing further on"); var next = if (older) p.jumps.cur - 1 else p.jumps.cur + 1; // A terminal or a scratch has no file to keep to: the step is global. - if (p.settings.jump_scope == .file) if (p.panes[p.active]) |here| if (Pardes.recentPlace(here)) |place| if (place.path.len > 0) { + if (p.panes[p.active]) |here| if (Pardes.recentPlace(here)) |place| if (place.path.len > 0) { const hash = if (jumpPath(here)) |path| std.hash.Wyhash.hash(0, path) else 0; // The nearest of this pane's own wins over a nearer one of this // file in another pane: the step does not move the keyboard. -- cgit v1.3