feat: add keybind hints to command palette

This commit is contained in:
CJ van den Berg 2024-06-20 22:26:09 +02:00
parent 3ea039f41c
commit d4019d00b2
10 changed files with 422 additions and 139 deletions

View file

@ -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 {

View file

@ -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 {};
}
}