This commit is contained in:
Kelvin Amoaba 2026-04-21 10:44:25 +00:00 committed by GitHub
commit 6be1f213f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -313,6 +313,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 && (
<div className="flex items-center justify-center h-full text-[11px] text-muted-foreground">