From e6db0ce970d5e1485d8b85cc5dde92debbddb4b4 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 19 Aug 2024 20:36:09 +0200 Subject: [PATCH] feat: add repeat keys for all palettes --- src/tui/mode/overlay/palette.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tui/mode/overlay/palette.zig b/src/tui/mode/overlay/palette.zig index 2457ac3..3418dc2 100644 --- a/src/tui/mode/overlay/palette.zig +++ b/src/tui/mode/overlay/palette.zig @@ -230,6 +230,8 @@ pub fn Create(options: type) type { 'W' => self.cmd("close_file", .{}), 'P' => self.cmd("palette_menu_up", .{}), 'N' => self.cmd("palette_menu_down", .{}), + 'T' => self.cmd("palette_menu_down", .{}), // select theme repeat key + 'R' => self.cmd("palette_menu_down", .{}), // open recent project repeat key 'V' => self.cmd("system_paste", .{}), 'C' => self.cmd("palette_menu_cancel", .{}), 'G' => self.cmd("palette_menu_cancel", .{}), @@ -243,7 +245,7 @@ pub fn Create(options: type) type { else => {}, }, mod.CTRL | mod.SHIFT => switch (keynormal) { - 'P' => self.cmd("palette_menu_down", .{}), + 'P' => self.cmd("palette_menu_down", .{}), // command palette repeat key 'Q' => self.cmd("quit_without_saving", .{}), 'W' => self.cmd("close_file_without_saving", .{}), 'R' => self.cmd("restart", .{}),