summaryrefslogtreecommitdiff
path: root/src/config.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/config.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/config.zig')
-rw-r--r--src/config.zig11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/config.zig b/src/config.zig
index 45deb7bb..d80e2a02 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -85,6 +85,7 @@ pub const leader_path = paths: {
.Pager = null,
.PagerColor = null,
.TermImages = null,
+ .JumpScope = null,
.Debug = "td",
.Msg = null,
.Colors = "tc",
@@ -791,6 +792,10 @@ pub const Runtime = struct {
/// (yazi's previews): `real`, as pixels where the shell can, or
/// `petscii`, as glyph art. The Petscii builtin flips one pane.
term_images: TermImages = .real,
+ /// What Back and Forward keep to (Pardes.jumpBy): `file`, the places in
+ /// the focused pane's file first, other files only once those run out
+ /// that way; `all`, every place in the order it was jumped to.
+ jump_scope: JumpScope = .file,
pub const ShaderAnimation = enum { off, on, always };
pub const Placement = enum { acme, pardes };
@@ -799,8 +804,9 @@ pub const Runtime = struct {
pub const DirLook = enum { pane, terminal };
pub const Pager = enum { pardes, off };
pub const TermImages = enum { real, petscii };
+ pub const JumpScope = enum { file, all };
/// A setting that is one of a few words, each an enum field of Runtime.
- pub const Choice = enum { placement, boot_shell, look_word, dir_look, pager, term_images };
+ pub const Choice = enum { placement, boot_shell, look_word, dir_look, pager, term_images, jump_scope };
/// shadow: a soft drop shadow. rim: a light hairline along the top of
/// the focused pane's tag rows. auto: a shadow on a light page; on a
@@ -1069,6 +1075,7 @@ pub const Runtime = struct {
.{ .word = "Pager", .action = .{ .choice = .pager }, .doc = "What a terminal's commands page through: pardes, a +Pager pane (pardes -), or off, the environment's own; for terminals started after it." },
.{ .word = "PagerColor", .action = .{ .toggle = .pager_color }, .doc = "A +Pager keeps its program's colours, on or off; for the next text paged." },
.{ .word = "TermImages", .action = .{ .choice = .term_images }, .doc = "How a new terminal draws its program's kitty graphics: real, as pixels where it can, or petscii, as glyph art." },
+ .{ .word = "JumpScope", .action = .{ .choice = .jump_scope }, .doc = "What Back and Forward keep to: file, the focused pane's file until it runs out that way, or all, every place in order." },
};
pub fn find(name: []const u8) ?Setting {
@@ -1756,6 +1763,7 @@ pub const Runtime = struct {
.dir_look => "terminal",
.pager => "off",
.term_images => "petscii",
+ .jump_scope => "all",
},
.lift => "rim",
.motion => "playful",
@@ -1829,6 +1837,7 @@ pub const Runtime = struct {
.dir_look => "DirLook terminal\n",
.pager => "Pager off\n",
.term_images => "TermImages petscii\n",
+ .jump_scope => "JumpScope all\n",
},
.lift => "Lift rim\n",
.motion => "Motion playful\n",