feat: add flow mode keybinding for save_as (C-S-s)

This commit is contained in:
CJ van den Berg 2024-08-30 20:19:40 +02:00
parent a2674c121e
commit 3ec4f5d429
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -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" },