fix: unbind restart command
It's too dangerous to have on a key bind by default and can be called via the palette now anyway.
This commit is contained in:
		
							parent
							
								
									cdffedca2b
								
							
						
					
					
						commit
						3e34271059
					
				
					 4 changed files with 0 additions and 7 deletions
				
			
		| 
						 | 
					@ -126,7 +126,6 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void {
 | 
				
			||||||
            'Z' => self.cmd("redo", .{}),
 | 
					            'Z' => self.cmd("redo", .{}),
 | 
				
			||||||
            'Q' => self.cmd("quit_without_saving", .{}),
 | 
					            'Q' => self.cmd("quit_without_saving", .{}),
 | 
				
			||||||
            'W' => self.cmd("close_file_without_saving", .{}),
 | 
					            'W' => self.cmd("close_file_without_saving", .{}),
 | 
				
			||||||
            'R' => self.cmd("restart", .{}),
 | 
					 | 
				
			||||||
            'F' => self.cmd("enter_find_in_files_mode", .{}),
 | 
					            'F' => self.cmd("enter_find_in_files_mode", .{}),
 | 
				
			||||||
            'L' => self.cmd_async("add_cursor_all_matches"),
 | 
					            'L' => self.cmd_async("add_cursor_all_matches"),
 | 
				
			||||||
            'I' => self.cmd_async("toggle_inspector_view"),
 | 
					            'I' => self.cmd_async("toggle_inspector_view"),
 | 
				
			||||||
| 
						 | 
					@ -374,7 +373,6 @@ const hints = tui.KeybindHints.initComptime(.{
 | 
				
			||||||
    .{ "quit", "C-q" },
 | 
					    .{ "quit", "C-q" },
 | 
				
			||||||
    .{ "quit_without_saving", "C-S-q" },
 | 
					    .{ "quit_without_saving", "C-S-q" },
 | 
				
			||||||
    .{ "redo", "C-S-z, C-y" },
 | 
					    .{ "redo", "C-S-z, C-y" },
 | 
				
			||||||
    .{ "restart", "C-S-r" },
 | 
					 | 
				
			||||||
    .{ "save_file", "C-s" },
 | 
					    .{ "save_file", "C-s" },
 | 
				
			||||||
    .{ "scroll_view_bottom", "C-l" },
 | 
					    .{ "scroll_view_bottom", "C-l" },
 | 
				
			||||||
    .{ "scroll_view_center", "C-l" },
 | 
					    .{ "scroll_view_center", "C-l" },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -131,7 +131,6 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void {
 | 
				
			||||||
            'Z' => self.cmd("redo", .{}),
 | 
					            'Z' => self.cmd("redo", .{}),
 | 
				
			||||||
            'Q' => self.cmd("quit_without_saving", .{}),
 | 
					            'Q' => self.cmd("quit_without_saving", .{}),
 | 
				
			||||||
            'W' => self.cmd("close_file_without_saving", .{}),
 | 
					            'W' => self.cmd("close_file_without_saving", .{}),
 | 
				
			||||||
            'R' => self.cmd("restart", .{}),
 | 
					 | 
				
			||||||
            'F' => self.cmd("enter_find_in_files_mode", .{}),
 | 
					            'F' => self.cmd("enter_find_in_files_mode", .{}),
 | 
				
			||||||
            'L' => self.cmd_async("add_cursor_all_matches"),
 | 
					            'L' => self.cmd_async("add_cursor_all_matches"),
 | 
				
			||||||
            'I' => self.cmd_async("toggle_inspector_view"),
 | 
					            'I' => self.cmd_async("toggle_inspector_view"),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -136,7 +136,6 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void {
 | 
				
			||||||
            'Z' => self.cmd("redo", .{}),
 | 
					            'Z' => self.cmd("redo", .{}),
 | 
				
			||||||
            'Q' => self.cmd("quit_without_saving", .{}),
 | 
					            'Q' => self.cmd("quit_without_saving", .{}),
 | 
				
			||||||
            'W' => self.cmd("close_file_without_saving", .{}),
 | 
					            'W' => self.cmd("close_file_without_saving", .{}),
 | 
				
			||||||
            'R' => self.cmd("restart", .{}),
 | 
					 | 
				
			||||||
            'F' => self.cmd("enter_find_in_files_mode", .{}),
 | 
					            'F' => self.cmd("enter_find_in_files_mode", .{}),
 | 
				
			||||||
            'L' => self.cmd_async("add_cursor_all_matches"),
 | 
					            'L' => self.cmd_async("add_cursor_all_matches"),
 | 
				
			||||||
            'I' => self.cmd_async("toggle_inspector_view"),
 | 
					            'I' => self.cmd_async("toggle_inspector_view"),
 | 
				
			||||||
| 
						 | 
					@ -565,7 +564,6 @@ const hints = tui.KeybindHints.initComptime(.{
 | 
				
			||||||
    .{ "quit", "C-q" },
 | 
					    .{ "quit", "C-q" },
 | 
				
			||||||
    .{ "quit_without_saving", "C-S-q" },
 | 
					    .{ "quit_without_saving", "C-S-q" },
 | 
				
			||||||
    .{ "redo", "C-S-z, C-y" },
 | 
					    .{ "redo", "C-S-z, C-y" },
 | 
				
			||||||
    .{ "restart", "C-S-r" },
 | 
					 | 
				
			||||||
    .{ "save_file", "C-s" },
 | 
					    .{ "save_file", "C-s" },
 | 
				
			||||||
    .{ "scroll_view_bottom", "C-l, z z" },
 | 
					    .{ "scroll_view_bottom", "C-l, z z" },
 | 
				
			||||||
    .{ "scroll_view_center", "C-l, z z" },
 | 
					    .{ "scroll_view_center", "C-l, z z" },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -136,7 +136,6 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void {
 | 
				
			||||||
            'Z' => self.cmd("redo", .{}),
 | 
					            'Z' => self.cmd("redo", .{}),
 | 
				
			||||||
            'Q' => self.cmd("quit_without_saving", .{}),
 | 
					            'Q' => self.cmd("quit_without_saving", .{}),
 | 
				
			||||||
            'W' => self.cmd("close_file_without_saving", .{}),
 | 
					            'W' => self.cmd("close_file_without_saving", .{}),
 | 
				
			||||||
            'R' => self.cmd("restart", .{}),
 | 
					 | 
				
			||||||
            'F' => self.cmd("enter_find_in_files_mode", .{}),
 | 
					            'F' => self.cmd("enter_find_in_files_mode", .{}),
 | 
				
			||||||
            'L' => self.cmd_async("add_cursor_all_matches"),
 | 
					            'L' => self.cmd_async("add_cursor_all_matches"),
 | 
				
			||||||
            'I' => self.cmd_async("toggle_inspector_view"),
 | 
					            'I' => self.cmd_async("toggle_inspector_view"),
 | 
				
			||||||
| 
						 | 
					@ -525,7 +524,6 @@ const hints = tui.KeybindHints.initComptime(.{
 | 
				
			||||||
    .{ "quit", "C-q" },
 | 
					    .{ "quit", "C-q" },
 | 
				
			||||||
    .{ "quit_without_saving", "C-S-q" },
 | 
					    .{ "quit_without_saving", "C-S-q" },
 | 
				
			||||||
    .{ "redo", "C-S-z, C-y" },
 | 
					    .{ "redo", "C-S-z, C-y" },
 | 
				
			||||||
    .{ "restart", "C-S-r" },
 | 
					 | 
				
			||||||
    .{ "save_file", "C-s" },
 | 
					    .{ "save_file", "C-s" },
 | 
				
			||||||
    .{ "scroll_view_bottom", "C-l, z z" },
 | 
					    .{ "scroll_view_bottom", "C-l, z z" },
 | 
				
			||||||
    .{ "scroll_view_center", "C-l, z z" },
 | 
					    .{ "scroll_view_center", "C-l, z z" },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue