diff options
Diffstat (limited to 'core/config.zig')
| -rw-r--r-- | core/config.zig | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/config.zig b/core/config.zig index d500cdcb..69636d1d 100644 --- a/core/config.zig +++ b/core/config.zig @@ -28,11 +28,15 @@ const undecided: []const u8 = "<undecided>"; /// Leader paths that run a builtin WITH an argument (the pick prototype's): /// the query pane's sources that have no word of their own, `Search` and /// line 1. `SPC s` is the session group (Dump, Restore, Attach), so the -/// declarations are `SPC s s`, a key from helix's. +/// declarations are `SPC s s`, a key from helix's. Find's and Grep's twins +/// at the project's root (Root, the user's explicit root keys) are their +/// keys' capitals. pub const leader_args = [_]struct { path: []const u8, cmd: Builtin, arg: []const u8 }{ .{ .path = "bb", .cmd = .Search, .arg = "Panes" }, .{ .path = "ss", .cmd = .Search, .arg = "Symbols" }, .{ .path = "/", .cmd = .Search, .arg = "All" }, + .{ .path = "fF", .cmd = .Root, .arg = "Find" }, + .{ .path = "fG", .cmd = .Root, .arg = "Grep" }, }; comptime { @@ -155,6 +159,8 @@ pub const leader_path = paths: { .Look = null, .Mini = null, .Exec = null, + // `:`'s twin, its line run at the project's root. + .Root = ":", }); if (builtins.capabilities.font_picker) { table.set(.Fonts, "tf"); |
