{#each $pluginEditors as pane (pane.key)} {@const bounds = pluginBounds[pane.key]}
{ if ($pluginView?.key !== pane.key) selectPluginEditor(pane); }} onpointerdown={() => { if ($pluginView?.key !== pane.key) selectPluginEditor(pane); }}> {#if split && bounds} tab.id === pane.key)} /> {/if}
{/each}
1}> {#each documentViews as pane (pane.id)}
onFocusPane(pane.id)} onfocusin={() => onFocusPane(pane.id)}> {#if pane.buffer?.diskError} {:else if pane.buffer?.diskContents != null}
{$t("View disk version")}
{pane.buffer.diskContents}
{/if} 1 ? () => onCloseSplit(pane.id) : undefined} {hasWorkspace} {onOpenWorkspace} {onNewFile} {onNewNote} {onQuickOpen} {onOpenBrowser} {browserOpening} buffer={pane.buffer} chrome={pane.buffer?.chromeOverride ?? pane.buffer?.chrome ?? "Writing"} reading={pane.reading} split={pane.split} focusLine={activePane === pane.id ? focusLine : null} {onChange} onInsertImage={file => onInsertImage(file, pane.buffer)} {onRenameTitle} tableActions={tableActions(pane)} linkActions={linkActions(pane)} onView={view => onView(pane, view)} onSplit={next => onSplitView(pane, next)} onCursor={(line, column) => onCursor(pane, line, column)} onOpenLink={(kind, target) => onOpenLink(pane, kind, target)} />
{/each}