feat: add alternate keybinding for command palette

For terminals that block C-S-p.
This commit is contained in:
CJ van den Berg 2024-06-21 12:40:07 +02:00
parent 5cc944f0e4
commit 394874fb20
6 changed files with 17 additions and 4 deletions

View file

@ -207,7 +207,12 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) tp.result {
'I' => self.cmd_async("toggle_inputview"),
else => {},
},
mod.ALT | mod.SHIFT => switch (keynormal) {
'P' => self.cmd("command_palette_menu_down", .{}),
else => {},
},
mod.ALT => switch (keynormal) {
'P' => self.cmd("command_palette_menu_up", .{}),
'L' => self.cmd("toggle_logview", .{}),
'I' => self.cmd("toggle_inputview", .{}),
else => {},