feat: add close_file_without_saving command and keybinding (C-S-w)

This commit is contained in:
CJ van den Berg 2024-04-17 18:08:11 +02:00
parent 438d64268e
commit dfdbb47367
6 changed files with 19 additions and 1 deletions

View file

@ -232,6 +232,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) tp.result {
},
nc.mod.CTRL | nc.mod.SHIFT => switch (keynormal) {
'Q' => self.cmd("quit_without_saving", .{}),
'W' => self.cmd("close_file_without_saving", .{}),
'R' => self.cmd("restart", .{}),
'L' => self.cmd_async("toggle_logview"),
'I' => self.cmd_async("toggle_inputview"),