feat: add keybind hints to command palette
This commit is contained in:
parent
3ea039f41c
commit
d4019d00b2
10 changed files with 422 additions and 139 deletions
|
@ -58,7 +58,7 @@ pub fn create(a: Allocator, parent: Plane) !Widget {
|
|||
}
|
||||
|
||||
fn on_click(_: *Self, _: *Button.State(Self)) void {
|
||||
command.executeName("enter_overlay_mode", command.fmt(.{"open_recent"})) catch {};
|
||||
command.executeName("open_recent", .{}) catch {};
|
||||
}
|
||||
|
||||
fn on_click2(_: *Self, _: *Button.State(Self)) void {
|
||||
|
|
|
@ -63,6 +63,6 @@ fn on_click(_: *void, _: *Button.State(void)) void {
|
|||
} else if (is_overlay_mode()) {
|
||||
command.executeName("exit_overlay_mode", .{}) catch {};
|
||||
} else {
|
||||
command.executeName("enter_overlay_mode", command.fmt(.{"command_palette"})) catch {};
|
||||
command.executeName("open_command_palette", .{}) catch {};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue