feat: add initial simplistic command palette implementation

This commit is contained in:
CJ van den Berg 2024-06-14 21:48:28 +02:00
parent acd65d0157
commit 25556336b9
9 changed files with 289 additions and 5 deletions

View file

@ -126,6 +126,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) tp.result {
else => {},
},
mod.CTRL | mod.SHIFT => switch (keynormal) {
'P' => self.cmd("enter_overlay_mode", command.fmt(.{"command_palette"})),
'D' => self.cmd("dupe_down", .{}),
'Z' => self.cmd("redo", .{}),
'Q' => self.cmd("quit_without_saving", .{}),