From 3e34271059a65b2040b95783eb8fdeaae3c83eff Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Sun, 30 Jun 2024 22:47:07 +0200 Subject: [PATCH] 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. --- src/tui/mode/input/flow.zig | 2 -- src/tui/mode/input/vim/insert.zig | 1 - src/tui/mode/input/vim/normal.zig | 2 -- src/tui/mode/input/vim/visual.zig | 2 -- 4 files changed, 7 deletions(-) diff --git a/src/tui/mode/input/flow.zig b/src/tui/mode/input/flow.zig index b4a2316..3b52946 100644 --- a/src/tui/mode/input/flow.zig +++ b/src/tui/mode/input/flow.zig @@ -126,7 +126,6 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void { '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"), 'I' => self.cmd_async("toggle_inspector_view"), @@ -374,7 +373,6 @@ const hints = tui.KeybindHints.initComptime(.{ .{ "quit", "C-q" }, .{ "quit_without_saving", "C-S-q" }, .{ "redo", "C-S-z, C-y" }, - .{ "restart", "C-S-r" }, .{ "save_file", "C-s" }, .{ "scroll_view_bottom", "C-l" }, .{ "scroll_view_center", "C-l" }, diff --git a/src/tui/mode/input/vim/insert.zig b/src/tui/mode/input/vim/insert.zig index b8ed540..629a1a0 100644 --- a/src/tui/mode/input/vim/insert.zig +++ b/src/tui/mode/input/vim/insert.zig @@ -131,7 +131,6 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void { '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"), 'I' => self.cmd_async("toggle_inspector_view"), diff --git a/src/tui/mode/input/vim/normal.zig b/src/tui/mode/input/vim/normal.zig index e4377b5..4ba9deb 100644 --- a/src/tui/mode/input/vim/normal.zig +++ b/src/tui/mode/input/vim/normal.zig @@ -136,7 +136,6 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void { '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"), 'I' => self.cmd_async("toggle_inspector_view"), @@ -565,7 +564,6 @@ const hints = tui.KeybindHints.initComptime(.{ .{ "quit", "C-q" }, .{ "quit_without_saving", "C-S-q" }, .{ "redo", "C-S-z, C-y" }, - .{ "restart", "C-S-r" }, .{ "save_file", "C-s" }, .{ "scroll_view_bottom", "C-l, z z" }, .{ "scroll_view_center", "C-l, z z" }, diff --git a/src/tui/mode/input/vim/visual.zig b/src/tui/mode/input/vim/visual.zig index b5a0667..1f2b662 100644 --- a/src/tui/mode/input/vim/visual.zig +++ b/src/tui/mode/input/vim/visual.zig @@ -136,7 +136,6 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void { '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"), 'I' => self.cmd_async("toggle_inspector_view"), @@ -525,7 +524,6 @@ const hints = tui.KeybindHints.initComptime(.{ .{ "quit", "C-q" }, .{ "quit_without_saving", "C-S-q" }, .{ "redo", "C-S-z, C-y" }, - .{ "restart", "C-S-r" }, .{ "save_file", "C-s" }, .{ "scroll_view_bottom", "C-l, z z" }, .{ "scroll_view_center", "C-l, z z" },