refactor: clean-up duplicate commands overlay_toggle_panel/_inputivew
This commit is contained in:
parent
f964296051
commit
a779c590bd
4 changed files with 0 additions and 33 deletions
|
|
@ -27,7 +27,6 @@
|
||||||
["ctrl+shift+p", "open_command_palette"],
|
["ctrl+shift+p", "open_command_palette"],
|
||||||
["ctrl+shift+q", "quit_without_saving"],
|
["ctrl+shift+q", "quit_without_saving"],
|
||||||
["ctrl+shift+f", "find_in_files"],
|
["ctrl+shift+f", "find_in_files"],
|
||||||
["ctrl+shift+l", "toggle_panel"],
|
|
||||||
["alt+shift+p", "open_command_palette"],
|
["alt+shift+p", "open_command_palette"],
|
||||||
["alt+n", "goto_next_file_or_diagnostic"],
|
["alt+n", "goto_next_file_or_diagnostic"],
|
||||||
["alt+p", "goto_prev_file_or_diagnostic"],
|
["alt+p", "goto_prev_file_or_diagnostic"],
|
||||||
|
|
@ -410,8 +409,6 @@
|
||||||
["ctrl+shift+p", "palette_menu_down"],
|
["ctrl+shift+p", "palette_menu_down"],
|
||||||
["ctrl+shift+q", "quit_without_saving"],
|
["ctrl+shift+q", "quit_without_saving"],
|
||||||
["ctrl+shift+w", "close_file_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+shift+p", "palette_menu_down"],
|
||||||
["alt+p", "palette_menu_up"],
|
["alt+p", "palette_menu_up"],
|
||||||
["alt+l", "toggle_panel"],
|
["alt+l", "toggle_panel"],
|
||||||
|
|
|
||||||
|
|
@ -405,16 +405,6 @@ const cmds = struct {
|
||||||
}
|
}
|
||||||
pub const overlay_insert_bytes_meta: Meta = .{ .arguments = &.{.string} };
|
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 {
|
pub fn overlay_next_widget_style(self: *Self, _: Ctx) Result {
|
||||||
tui.set_next_style(widget_type);
|
tui.set_next_style(widget_type);
|
||||||
self.do_resize();
|
self.do_resize();
|
||||||
|
|
|
||||||
|
|
@ -598,16 +598,6 @@ pub fn Create(options: type) type {
|
||||||
}
|
}
|
||||||
pub const overlay_insert_bytes_meta: Meta = .{ .arguments = &.{.string} };
|
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 {
|
pub fn overlay_next_widget_style(self: *Self, _: Ctx) Result {
|
||||||
tui.set_next_style(widget_type);
|
tui.set_next_style(widget_type);
|
||||||
const padding = tui.get_widget_style(widget_type).padding;
|
const padding = tui.get_widget_style(widget_type).padding;
|
||||||
|
|
|
||||||
|
|
@ -366,16 +366,6 @@ const cmds = struct {
|
||||||
}
|
}
|
||||||
pub const overlay_insert_bytes_meta: Meta = .{ .arguments = &.{.string} };
|
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 {
|
pub fn overlay_next_widget_style(self: *Self, _: Ctx) Result {
|
||||||
tui.set_next_style(widget_type);
|
tui.set_next_style(widget_type);
|
||||||
self.do_resize();
|
self.do_resize();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue