diff options
Diffstat (limited to 'core/config.zig')
| -rw-r--r-- | core/config.zig | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/core/config.zig b/core/config.zig index b7ffad81..8bcf649f 100644 --- a/core/config.zig +++ b/core/config.zig @@ -116,6 +116,7 @@ pub const leader_path = paths: { .Build = "hb", .Messages = "hm", .Keys = "hk", + .Message = "e", .Newcol = "cn", .Delcol = "cd", .Joincol = "cj", @@ -145,6 +146,8 @@ pub const leader_path = paths: { .Unfollow = null, .Back = "jo", .Forward = "ji", + .Keep = "jk", + .Resume = "'", .Last = "jj", .Jumplist = "jl", .History = "fh", @@ -158,6 +161,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); @@ -634,8 +638,9 @@ pub const Settings = struct { /// A jump of the cursor leaves a short trail that fades: a setting /// alone, each frontend draws it (jump_trail.zig). jump_trail: bool = false, - /// How long a message stays after the key or click that dismisses it. - message_linger_ms: u16 = 800, + /// How long an echo or a notice stays bright before it dims (a warning + /// twice as long): Messages.Said.faded. + message_linger_ms: u16 = 4000, /// Where Dump writes and a relative Restore looks; empty is the default /// ($XDG_DATA_HOME/pardes, else ~/.local/share/pardes). dump_dir: Text(limits.host_path_cap) = .{}, @@ -669,9 +674,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; @@ -799,7 +811,8 @@ 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 = "MessageLinger", .action = .message_linger, .doc = "How long, in milliseconds, a message stays after what dismisses it." }, + .{ .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, an echo or a notice stays bright before it dims; a warning twice as long." }, .{ .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." }, .{ .word = "Shell", .action = .shell, .doc = "The shell new terminals run: `Shell /bin/zsh`; bare, $SHELL if it is executable, else /bin/sh." }, |
