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

@ -125,6 +125,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) tp.result {
'D' => self.cmd("dupe_down", .{}),
'Z' => self.cmd("redo", .{}),
'Q' => self.cmd("quit_without_saving", .{}),
'W' => self.cmd("close_file_without_saving", .{}),
'R' => self.cmd("restart", .{}),
'F' => self.cmd("enter_find_in_files_mode", .{}),
'L' => self.cmd_async("add_cursor_all_matches"),