feat: merge host editor terminal tabs into one owned by ssh-terminal

This commit is contained in:
LukeGus committed 2026-09-27 14:03:02 -05:00
1 parent fff373d5bd
commit c7fd900732
10 files changed
+162 -986

No files matched your search

+11 -1
View File
@@ -1,5 +1,5 @@
import { lazy, Suspense, type ComponentType } from "react";
import { History, Laptop, Terminal } from "lucide-react";
import { History, Laptop, SquareTerminal, Terminal } from "lucide-react";
import type {
PanelProps,
StandaloneViewProps,
@@ -21,6 +21,7 @@ import { TerminalView } from "./TerminalView";
import { HistoryPanel } from "./history/HistoryPanel";
import { TouchInputSettings } from "./settings/TouchInputSettings";
import { ImageStorageTest } from "./settings/ImageStorageTest";
import { HostTerminalSection } from "./settings/HostTerminalSection";
import { resetTouchInputSettingsCache } from "./terminal/touch-input-settings-store";
import { hostSetting } from "./terminal-api";
@@ -94,6 +95,15 @@ export function activate(app: TermixApp): void {
!!host.enableSsh && hostSetting(host, "enableTerminal", true),
});
app.registerHostEditorSection({
id: "terminal",
group: "ssh",
titleKey: "hosts.tabTerminal",
icon: SquareTerminal,
order: 10,
component: HostTerminalSection,
});
if (isElectron()) {
app.registerTab("local-terminal", LocalTerminalTab, {
icon: Laptop,