diff options
Diffstat (limited to 'core/replica.zig')
| -rw-r--r-- | core/replica.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/replica.zig b/core/replica.zig index 172ab6f3..546ed679 100644 --- a/core/replica.zig +++ b/core/replica.zig @@ -7352,6 +7352,7 @@ const may_wait = [_]Wait{ .{ .what = "Save", .on = .any, .stop = "write_file", .why = "a save" }, // A program run, a shell opened or closed: the session's processes. .{ .what = "Exec *", .on = .any, .stop = "kind", .why = "a program run: its name asked of the disk first" }, + .{ .what = "Root *", .on = .any, .stop = "kind", .why = "the project's root, a `.jj` or `.git` at or above the pane's directory asked of the session's disk (Pick.workTree), as Find's listing and a program run are the session's (SPC f F, SPC f G, SPC :'s line)" }, .{ .what = "Exec *", .on = .any, .stop = "tty_taken", .why = "a program run in a shell: whether one has it, the session's" }, .{ .what = "Exec *", .on = .command, .stop = "run a command", .why = "a line run again in its directory's finished command pane: its process and its emulator are the session's" }, .{ .what = "Term", .on = .any, .stop = "kind", .why = "a shell opened: its name asked of the disk first" }, @@ -7441,13 +7442,15 @@ const walk_prefixes = prefixes: { break :prefixes ks; }; -/// The argument a word that means nothing without one is walked with. +/// The argument a word that means nothing without one is walked with, and +/// Root's, whose bare `:` line asks the disk nothing. const walk_samples = [_]struct { []const u8, []const u8 }{ .{ "Look", "mise.toml" }, .{ "Exec", "echo" }, .{ "Mount", "x" }, .{ "Unmount", "x" }, .{ "Msg", "hi" }, .{ "ThemeFile", "t.zon" }, .{ "Edit", "s/a/b/" }, .{ "Mini", "x" }, .{ "Find", "x" }, .{ "Grep", "x" }, .{ "Rename", "x" }, .{ "WsSymbols", "x" }, .{ "Theme", "acme" }, .{ "Font", "Mono 12" }, .{ "TaglineSize", "100" }, .{ "WindowOpacity", "100" }, .{ "MessageLinger", "1000" }, .{ "InactiveDim", "0" }, .{ "GripWidth", "100" }, .{ "At", "@-" }, + .{ "Root", "Find" }, }; fn keyName(buf: []u8, k: pardes.Key) []const u8 { |
