diff --git a/src/renderer/src/components/right-sidebar/FileExplorer.tsx b/src/renderer/src/components/right-sidebar/FileExplorer.tsx index f59140530..0de598364 100644 --- a/src/renderer/src/components/right-sidebar/FileExplorer.tsx +++ b/src/renderer/src/components/right-sidebar/FileExplorer.tsx @@ -329,6 +329,16 @@ function FileExplorerInner(): React.JSX.Element { setBgMenuPoint({ x: e.clientX, y: e.clientY }) setBgMenuOpen(true) }} + onDoubleClick={(e) => { + if (!worktreePath || inlineInput) { + return + } + const target = e.target as HTMLElement + if (target.closest('[data-slot="context-menu-trigger"]')) { + return + } + startNew('file', worktreePath, 0) + }} > {isLoading && (