{#if !buffer || buffer.kind === "empty"}
{#if onCloseSplit}
{/if}
{#if hasWorkspace}
{$t("New file")}
{commandShortcut("new-file")}
{#if onNewNote}
{$t("New note")}
{/if}
{$t("Find file")}
{commandShortcut("quick-open")}
{/if}
{$t("Open folder")}
{commandShortcut("open-workspace")}
{#if onOpenBrowser}
{browserOpening ? $t("Opening browser…") : $t("Open browser")}
{/if}
{:else}
{folder}
{#if lineInfo}
Ln {selectedLine} · {lineDate(lineInfo.date)}
{/if}
{#if onCloseSplit}
{/if} {#if !isImage}
onView?.(next)} onSplit={next => onSplit?.(next)} />{/if}
{#if readingFind}
{/if}
{#if isImage && buffer.imageUrl}
{:else}
{#key buffer.id}
{ selectedLine = line; onCursor?.(line, column); }} focusTitle={titleFocusId === buffer.id} onTitleFocused={() => { titleFocusId = null; }} /> {/key}
{#if readOnly || splitView} {#key buffer.id}
{/key} {/if} {/if}
{/if}