diff options
Diffstat (limited to 'core/config.zig')
| -rw-r--r-- | core/config.zig | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/core/config.zig b/core/config.zig index f9f906a9..d916b677 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", @@ -268,6 +269,7 @@ pub const tag_tty = "$"; pub const command_line: []const Chord = &.{.{ .cp = ':' }}; pub const search: []const Chord = &.{.{ .cp = '/' }}; +pub const search_back: []const Chord = &.{.{ .cp = '?' }}; pub const search_next: []const Chord = &.{.{ .cp = 'n' }}; pub const search_prev: []const Chord = &.{.{ .cp = 'N' }}; /// Typing on a query pane's line 1 (Query.zig): the next and the previous @@ -637,8 +639,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) = .{}, @@ -673,10 +676,10 @@ pub const Settings = struct { 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", + /// the pane it is made from, or its reader, as a walk (Trail.zig, the + /// spec's default); `new-pane` opens a pane for each file, as before + /// the walk (pick-ui SPEC §6.6's opt-out). + jumps: Jumps = .walk, /// A setting that is one of a few words, each an enum field of Settings. pub const Choice = enum { pet, jumps }; @@ -810,7 +813,7 @@ pub const Settings = struct { .{ .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 = "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." }, |
