Browse
{#if open}
Select Folder
(open = false)} class="rounded p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600" aria-label="Close" >
{#if parent}
browse(parent!)} class="rounded p-1 text-gray-500 hover:bg-gray-200 hover:text-gray-700" title="Go up" aria-label="Go to parent directory" >
{/if}
{browsePath}
{#if loading}
{/if}
{#if browseError}
{browseError}
{:else if entries.length === 0 && !loading}
No subdirectories found
{:else}
{#each entries as entry (entry.path)}
browse(entry.path)} ondblclick={() => selectEntry(entry)} title="Click to navigate, double-click to select" >
{entry.name}
{#if entry.isGitRepo}
git
{/if}
{/each}
{/if}
{browsePath}
(open = false)} class="rounded-lg border border-gray-200 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-50" > Cancel
Select This Folder
{/if}