From 3ec4f5d4294685ba03f25683b965309800f4c726 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Fri, 30 Aug 2024 20:19:40 +0200 Subject: [PATCH] feat: add flow mode keybinding for save_as (C-S-s) --- src/tui/mode/input/flow.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tui/mode/input/flow.zig b/src/tui/mode/input/flow.zig index 442810c..17c5d17 100644 --- a/src/tui/mode/input/flow.zig +++ b/src/tui/mode/input/flow.zig @@ -123,6 +123,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void { else => {}, }, mod.CTRL | mod.SHIFT => switch (keynormal) { + 'S' => self.cmd("save_as", .{}), 'P' => self.cmd("open_command_palette", .{}), 'D' => self.cmd("dupe_down", .{}), 'Z' => self.cmd("redo", .{}), @@ -385,6 +386,7 @@ const hints = tui.KeybindHints.initComptime(.{ .{ "quit_without_saving", "C-S-q" }, .{ "redo", "C-S-z, C-y" }, .{ "references", "S-F12" }, + .{ "save_as", "C-S-s" }, .{ "save_file", "C-s" }, .{ "scroll_view_bottom", "C-l" }, .{ "scroll_view_center", "C-l" },