refactor: clean-up duplicate commands overlay_toggle_panel/_inputivew

This commit is contained in:
CJ van den Berg 2025-12-01 12:47:11 +01:00
parent f964296051
commit a779c590bd
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 0 additions and 33 deletions

View file

@ -27,7 +27,6 @@
["ctrl+shift+p", "open_command_palette"],
["ctrl+shift+q", "quit_without_saving"],
["ctrl+shift+f", "find_in_files"],
["ctrl+shift+l", "toggle_panel"],
["alt+shift+p", "open_command_palette"],
["alt+n", "goto_next_file_or_diagnostic"],
["alt+p", "goto_prev_file_or_diagnostic"],
@ -410,8 +409,6 @@
["ctrl+shift+p", "palette_menu_down"],
["ctrl+shift+q", "quit_without_saving"],
["ctrl+shift+w", "close_file_without_saving"],
["ctrl+shift+l", "overlay_toggle_panel"],
["ctrl+shift+i", "overlay_toggle_inputview"],
["alt+shift+p", "palette_menu_down"],
["alt+p", "palette_menu_up"],
["alt+l", "toggle_panel"],

View file

@ -405,16 +405,6 @@ const cmds = struct {
}
pub const overlay_insert_bytes_meta: Meta = .{ .arguments = &.{.string} };
pub fn overlay_toggle_panel(self: *Self, _: Ctx) Result {
return self.cmd_async("toggle_panel");
}
pub const overlay_toggle_panel_meta: Meta = .{};
pub fn overlay_toggle_inputview(self: *Self, _: Ctx) Result {
return self.cmd_async("toggle_inputview");
}
pub const overlay_toggle_inputview_meta: Meta = .{};
pub fn overlay_next_widget_style(self: *Self, _: Ctx) Result {
tui.set_next_style(widget_type);
self.do_resize();

View file

@ -598,16 +598,6 @@ pub fn Create(options: type) type {
}
pub const overlay_insert_bytes_meta: Meta = .{ .arguments = &.{.string} };
pub fn overlay_toggle_panel(self: *Self, _: Ctx) Result {
return self.cmd_async("toggle_panel");
}
pub const overlay_toggle_panel_meta: Meta = .{};
pub fn overlay_toggle_inputview(self: *Self, _: Ctx) Result {
return self.cmd_async("toggle_inputview");
}
pub const overlay_toggle_inputview_meta: Meta = .{};
pub fn overlay_next_widget_style(self: *Self, _: Ctx) Result {
tui.set_next_style(widget_type);
const padding = tui.get_widget_style(widget_type).padding;

View file

@ -366,16 +366,6 @@ const cmds = struct {
}
pub const overlay_insert_bytes_meta: Meta = .{ .arguments = &.{.string} };
pub fn overlay_toggle_panel(self: *Self, _: Ctx) Result {
return self.cmd_async("toggle_panel");
}
pub const overlay_toggle_panel_meta: Meta = .{};
pub fn overlay_toggle_inputview(self: *Self, _: Ctx) Result {
return self.cmd_async("toggle_inputview");
}
pub const overlay_toggle_inputview_meta: Meta = .{};
pub fn overlay_next_widget_style(self: *Self, _: Ctx) Result {
tui.set_next_style(widget_type);
self.do_resize();