diff --git a/src/tui/mode/input/flow.zig b/src/tui/mode/input/flow.zig index a22f8aa..b67e4d2 100644 --- a/src/tui/mode/input/flow.zig +++ b/src/tui/mode/input/flow.zig @@ -153,6 +153,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void { 'F' => self.cmd("move_word_right", .{}), 'S' => self.cmd("filter", command.fmt(.{"sort"})), 'V' => self.cmd("paste", .{}), + 'X' => self.cmd("open_command_palette", .{}), key.LEFT => self.cmd("jump_back", .{}), key.RIGHT => self.cmd("jump_forward", .{}), key.UP => self.cmd("pull_up", .{}), @@ -379,7 +380,7 @@ const hints = tui.KeybindHints.initComptime(.{ .{ "move_up", "up" }, .{ "move_word_left", "C-left, A-b" }, .{ "move_word_right", "C-right, A-f" }, - .{ "open_command_palette", "C-S-p, S-A-p" }, + .{ "open_command_palette", "C-S-p, S-A-p, A-x" }, .{ "open_file", "C-o" }, .{ "open_recent", "C-e" }, .{ "open_recent_project", "C-r" }, diff --git a/src/tui/mode/input/home.zig b/src/tui/mode/input/home.zig index 004d531..0926064 100644 --- a/src/tui/mode/input/home.zig +++ b/src/tui/mode/input/home.zig @@ -87,6 +87,7 @@ fn mapPress(self: *Self, keypress: u32, modifiers: u32) tp.result { 'P' => self.cmd("goto_prev_file_or_diagnostic", .{}), 'L' => self.cmd("toggle_panel", .{}), 'I' => self.cmd("toggle_inputview", .{}), + 'X' => self.cmd("open_command_palette", .{}), key.LEFT => self.cmd("jump_back", .{}), key.RIGHT => self.cmd("jump_forward", .{}), else => {}, @@ -160,7 +161,7 @@ const hints = tui.KeybindHints.initComptime(.{ .{ "open_file", "o, C-o" }, .{ "open_recent", "e, C-e" }, .{ "open_recent_project", "r, C-r" }, - .{ "open_command_palette", "p, C-S-p, S-A-p" }, + .{ "open_command_palette", "p, C-S-p, S-A-p, A-x" }, .{ "home_menu_activate", "enter" }, .{ "home_menu_down", "down" }, .{ "home_menu_up", "up" },