summaryrefslogtreecommitdiff
path: root/core/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 19:37:15 -0300
committerGabriel Schneider <[email protected]>2026-11-24 19:38:18 -0300
commit480f36b85299fa7407c20a2d6482dd093f842bf7 (patch)
tree5d07c37c3e4eae82ec35ed100799d5810a8912aa /core/config.zig
parentf44d1b7d040acf674814be3cde336527833450e9 (diff)
parent9f63733156853c925c31a948b50d4a3a7b77aa70 (diff)
downloadpardes-480f36b85299fa7407c20a2d6482dd093f842bf7.tar.gz
pardes-480f36b85299fa7407c20a2d6482dd093f842bf7.zip
walk UI wave-2 base: line A items 1-4 (kquzozvs) merged with line B items 1-5 (mqmtqvtt)
Diffstat (limited to 'core/config.zig')
-rw-r--r--core/config.zig12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/config.zig b/core/config.zig
index 324102b5..6adebe1b 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." },