feat(terminal): add close_terminal command
This commit is contained in:
parent
fc78e8cf02
commit
57aae0d45c
1 changed files with 7 additions and 1 deletions
|
|
@ -1014,7 +1014,13 @@ const cmds = struct {
|
||||||
vt.focus();
|
vt.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub const focus_terminal_meta: Meta = .{ .description = "Terminal" };
|
pub const focus_terminal_meta: Meta = .{ .description = "Open terminal" };
|
||||||
|
|
||||||
|
pub fn close_terminal(self: *Self, _: Ctx) Result {
|
||||||
|
if (self.get_panel_view(terminal_view)) |_|
|
||||||
|
try self.toggle_panel_view(terminal_view, .disable);
|
||||||
|
}
|
||||||
|
pub const close_terminal_meta: Meta = .{ .description = "Close terminal" };
|
||||||
|
|
||||||
pub fn close_find_in_files_results(self: *Self, _: Ctx) Result {
|
pub fn close_find_in_files_results(self: *Self, _: Ctx) Result {
|
||||||
if (self.file_list_type == .find_in_files)
|
if (self.file_list_type == .find_in_files)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue