feat(terminal): add close_terminal command

This commit is contained in:
CJ van den Berg 2026-02-27 16:05:40 +01:00
parent fc78e8cf02
commit 57aae0d45c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1014,7 +1014,13 @@ const cmds = struct {
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 {
if (self.file_list_type == .find_in_files)