Revert "feat: add Open File Manager to tab right-click menu (#1046)" (#1050)

This reverts commit 0712fdd731.
This commit is contained in:
ZacharyZcR
2026-07-14 01:36:12 +08:00
committed by GitHub
parent 0712fdd731
commit 38e128bd16
2 changed files with 0 additions and 21 deletions
-4
View File
@@ -1713,10 +1713,6 @@ export function AppShell({
onAddToSplit={addTabToSplit} onAddToSplit={addTabToSplit}
onRemoveFromSplit={removeTabFromSplit} onRemoveFromSplit={removeTabFromSplit}
onRenameTab={renameTab} onRenameTab={renameTab}
onOpenFileManager={(tabId) => {
const targetTab = tabs.find((t) => t.id === tabId);
if (targetTab?.host) openTab(targetTab.host, "files");
}}
isAppFullscreen={isAppFullscreen} isAppFullscreen={isAppFullscreen}
onToggleAppFullscreen={toggleAppFullscreen} onToggleAppFullscreen={toggleAppFullscreen}
/> />
-17
View File
@@ -18,7 +18,6 @@ import {
Pencil, Pencil,
Maximize2, Maximize2,
Minimize2, Minimize2,
FolderOpen,
} from "lucide-react"; } from "lucide-react";
import { tabIcon } from "@/shell/tabUtils"; import { tabIcon } from "@/shell/tabUtils";
import { isElectron } from "@/lib/electron"; import { isElectron } from "@/lib/electron";
@@ -41,7 +40,6 @@ export function TabBar({
onAddToSplit, onAddToSplit,
onRemoveFromSplit, onRemoveFromSplit,
onRenameTab, onRenameTab,
onOpenFileManager,
isAppFullscreen, isAppFullscreen,
onToggleAppFullscreen, onToggleAppFullscreen,
}: { }: {
@@ -58,7 +56,6 @@ export function TabBar({
onAddToSplit: (tabId: string) => void; onAddToSplit: (tabId: string) => void;
onRemoveFromSplit: (tabId: string) => void; onRemoveFromSplit: (tabId: string) => void;
onRenameTab?: (tabId: string, newLabel: string) => void; onRenameTab?: (tabId: string, newLabel: string) => void;
onOpenFileManager?: (tabId: string) => void;
isAppFullscreen: boolean; isAppFullscreen: boolean;
onToggleAppFullscreen: () => void; onToggleAppFullscreen: () => void;
}) { }) {
@@ -530,20 +527,6 @@ export function TabBar({
{t("nav.refreshTab")} {t("nav.refreshTab")}
</button> </button>
)} )}
{ctxTab.type === "terminal" &&
ctxTab.host &&
onOpenFileManager && (
<button
className="flex items-center gap-2 w-full px-3 py-1.5 text-xs text-left hover:bg-accent hover:text-accent-foreground"
onClick={() => {
onOpenFileManager(contextTabId);
setContextTabId(null);
}}
>
<FolderOpen className="size-3" />
{t("nav.openFileManager")}
</button>
)}
<button <button
className="flex items-center gap-2 w-full px-3 py-1.5 text-xs text-left hover:bg-accent hover:text-accent-foreground" className="flex items-center gap-2 w-full px-3 py-1.5 text-xs text-left hover:bg-accent hover:text-accent-foreground"
onClick={() => { onClick={() => {