feat: move terminal settings, look and ssh tools into ssh-terminal plugin

This commit is contained in:
LukeGus committed 2026-09-29 02:38:37 -05:00
1 parent ffa872ebd3
commit d9bba10612
242 files changed
+25071 -7207

No files matched your search

+2 -2
View File
@@ -23,10 +23,10 @@ import { listPanes, mapTabIds } from "./split/split-tree";
* purpose: the shell always keeps one alive as the fallback tab, so it is
* not a meaningful part of an arrangement.
*/
const CORE_CAPTURABLE = new Set(["macros", "ssh-tools"]);
const CORE_CAPTURABLE = new Set(["macros"]);
/** Core types reopened as singletons, with an optional preselected host. */
const CORE_SINGLETON = new Set(["macros", "ssh-tools"]);
const CORE_SINGLETON = new Set(["macros"]);
/** Core tab types that are never part of a saved arrangement. */
const CORE_UNSAVED = new Set([
-16
View File
@@ -6,7 +6,6 @@ import {
Server,
Settings,
User,
Hammer,
} from "lucide-react";
import { lazy, Suspense } from "react";
import { useTranslation } from "react-i18next";
@@ -34,9 +33,6 @@ const MacrosPanel = lazy(() =>
import("@/sidebar/MacrosPanel").then((m) => ({ default: m.MacrosPanel })),
);
const SshToolsPanel = lazy(() =>
import("@/sidebar/SshToolsPanel").then((m) => ({ default: m.SshToolsPanel })),
);
/** Download a likely next tab without starting a connection or mounting UI. */
export function preloadTabSurface(type: TabType): void {
const loader = getTabType(type)?.preload;
@@ -107,8 +103,6 @@ export function tabIcon(type: TabType) {
case "macros":
return <Braces className="size-3.5" />;
case "ssh-tools":
return <Hammer className="size-3.5" />;
case "split-screen":
return <LayoutPanelLeft className="size-3.5" />;
default: {
@@ -221,16 +215,6 @@ export function renderTabContent(tab: Tab, context: TabRenderContext) {
</PanelTabFrame>,
);
case "ssh-tools":
return withTabSuspense(
<PanelTabFrame>
<SshToolsPanel
terminalTabs={panelProps?.terminalTabs ?? []}
activeTabId={panelProps?.targetTerminalTabId ?? ""}
/>
</PanelTabFrame>,
);
case "host-manager":
case "user-profile":
case "admin-settings":