diff options
Diffstat (limited to 'core/config.zig')
| -rw-r--r-- | core/config.zig | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/config.zig b/core/config.zig index e9225c53..d5895b99 100644 --- a/core/config.zig +++ b/core/config.zig @@ -144,6 +144,7 @@ pub const leader_path = paths: { .Unfollow = null, .Back = "jo", .Forward = "ji", + .Keep = "jk", .Last = "jj", .Jumplist = "jl", .History = "fh", @@ -157,6 +158,7 @@ pub const leader_path = paths: { table.set(.TaglineSize, null); } table.set(.MessageLinger, null); + table.set(.Jumps, null); table.set(.DumpDir, null); if (builtins.capabilities.window_opacity) table.set(.WindowOpacity, null); if (builtins.capabilities.pixels) table.set(.CursorBlink, null); @@ -668,9 +670,16 @@ pub const Settings = struct { tab: u16 = tab_width, callstack_depth: u8 = @import("lsp/lsp.zig").callstack_default_depth, + /// A jump (a Look at a place, a definition, an error's place) steps + /// the pane it is made from, or its reader, as a walk (Trail.zig); or + /// opens a pane for each file, as before the walk, until the walk's + /// pickers and prompts are in (pick-ui SPEC ยง14.3). + jumps: Jumps = .@"new-pane", + /// A setting that is one of a few words, each an enum field of Settings. - pub const Choice = enum { pet }; + pub const Choice = enum { pet, jumps }; pub const Pet = enum { off, cat, frog }; + pub const Jumps = enum { walk, @"new-pane" }; pub const tagline_percent_min: u8 = 1; pub const tagline_percent_max: u8 = 100; @@ -798,6 +807,7 @@ pub const Settings = struct { .{ .word = "GripWidth", .action = .grip_width, .doc = "The grip and scrollbar width, as a percent of the theme's rail." }, .{ .word = "InactiveDim", .action = .inactive_dim, .doc = "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off." }, .{ .word = "Pet", .action = .{ .choice = .pet }, .doc = "The window's companion in the workspace tag's blank space: off, cat or frog." }, + .{ .word = "Jumps", .action = .{ .choice = .jumps }, .doc = "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane)." }, .{ .word = "MessageLinger", .action = .message_linger, .doc = "How long, in milliseconds, a message stays after what dismisses it." }, .{ .word = "DumpDir", .action = .dump_dir, .doc = "The directory of the state file, where Dump writes and Recent is kept. A relative Restore name is looked for there too; bare, the default." }, .{ .word = "Theme", .action = .theme, .doc = "Switch to the theme named: `Theme atelier`. Themes lists them, NextColor steps through them." }, |
