diff options
Diffstat (limited to 'core/builtins.zig')
| -rw-r--r-- | core/builtins.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/builtins.zig b/core/builtins.zig index 1b35d75c..32af63f7 100644 --- a/core/builtins.zig +++ b/core/builtins.zig @@ -797,6 +797,9 @@ pub const Themes = struct { pub const scope: Scope = .session; pub const output: OutputTraits = .{ .name = config.themes_buffer, .steps = true, .commands = true }; pub fn run(c: Ctx) void { + // From the keyboard, where the walk is on: a picker in the tag, the + // window wearing its row (Pick.zig, SPEC §5.1). + if (pardes.Pick.asked(c.p)) return pardes.Pick.open(c.p, c.id, .themes, "", "", ""); panes.Output.openThemes(c.p, c.id) catch |err| c.p.reportError(.at(c.id), "themes", err); } }; @@ -2292,6 +2295,9 @@ pub const Rename = struct { pub fn run(c: Ctx) void { const a = std.mem.trim(u8, c.arg orelse "", " \t\r\n"); if (a.len > 0) return c.p.lspRequest(c.id, .rename, a); + // From the keyboard, where the walk is on: typed in the pane's own + // tag, its edits drawn in its body as they are typed (SPEC §3.5). + if (pardes.Pick.asked(c.p) and c.pane.file != null) return @import("lsp/Ask.zig").openRename(c.p, c.id); panes.startPrompt(c.p, c.pane, &c.pane.body, .{ .search = config.rename_marker }); } }; |
