summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
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",