{ search = ''; if (open) void refreshRecentFolders(); }} >
{#if directory}
{folderName(directory)}
{/if}
selectDirectory('')} >
{$i18n.t('No folder')}
{#if !directory}
{/if}
{#if options.length > 0}
{$i18n.t('Recently Used')}
{#if historyError}
{historyError}
{/if}
{#each options as path} {@const selected = !!directory && normalize(directory) === path}
selectDirectory(path)} >
{folderName(path)}
{#if selected}
{/if}
{/each}
{/if}
{ show = false; showPicker = true; }} >
{$i18n.t('Open Folder')}
{#if showPicker}
{$i18n.t('Choose working directory')}
(showPicker = false)} >
{/if}