{ if (hasDirty) { event.preventDefault(); event.returnValue = ""; } }} /> {#if preferences} preferences = null} />{/if} {#if quickOpen && workspace} void openFile(entry)} onClose={() => quickOpen = false} />{/if}
0} class:left-open={leftOpen} class:right-open={rightOpen} role="application" aria-label="RuneStone workbench" style:--left="{leftWidth}px" style:--right="{rightWidth}px" style:--bottom="{bottomHeight}px" onpointermove={onPointerMove} onpointerup={() => (dragging = null)} onpointerleave={() => (dragging = null)} >
selectLeft("files")} /> selectLeft("search")} /> selectLeft("bookmarks")} /> {#each sidebarNavigation as item (`${item.owner}:${item.id}`)} openPluginView(item.owner, item.id)} /> {/each}
void closeTabs(path, scope)} onPin={pinWorkingTab} fileActions={workingTabFileActions} tabActions={workingTabActions} onMove={moveWorkingTab} onDetach={(tab) => { void detachTab(tab); }} tabDragData={workingTabDragData} onDropTab={(data, index) => void receiveTab(data, index)} /> {#if desktop}
{/if}
{#each $pluginNavigation.filter(item => item.toolbar) as item (item.owner + ":" + item.id)} openPluginView(item.owner, item.id)} /> {/each} void save()} /> {#if terminalEnabled}{/if} (rightOpen = !rightOpen)} /> {#if desktop} error = message} />{/if}
{#if leftOpen} {/if}
{#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 activeSplit && bounds} tab.id === pane.key)} activePath={activeTabPath} onSelect={selectWorkingTab} onClose={closeTab} onMove={moveWorkingTab} onPin={pinWorkingTab} onCloseTabs={(path, scope) => void closeTabs(path, scope)} fileActions={workingTabFileActions} tabActions={workingTabActions} tabDragData={workingTabDragData} onDropTab={(data, index) => void receiveTab(data, index)} /> {/if}
{/each}
{#if buffer?.diskError} {:else if buffer?.diskContents != null}
View disk version
{buffer.diskContents}
{/if} void chooseWorkspace()} onNewFile={() => void newFile()} onNewNote={(event) => { void newNote(event); }} onQuickOpen={() => quickOpen = true} onOpenBrowser={browserContribution?.newTab ? () => void openBrowser() : undefined} {browserOpening} {buffer} chrome={view} {reading} {focusLine} {onChange} onInsertImage={insertImage} onRenameTitle={renameNoteTitle} tableActions={{ onSearch: searchSelection, onExtract: extractSelection }} onToggleReading={() => (reading = !reading)} onToggleChrome={toggleChrome} onOpenLink={(kind, target) => void openLink(kind, target)} />
{#if terminalContribution && terminalStarted}
{#if workspace} {#key workspace.root} terminalMaximized = !terminalMaximized} activeFile={buffer?.kind === "text" && !reading} onRunFile={terminalFile} getSelection={() => selectedEditorText(buffer?.id)} onConfigureTasks={configureTasks} /> {/key} {:else}

Open a workspace to start the terminal.

{/if}
{/if}
{#if rightOpen} {/if}
{error ?? status} {#if workspace} {workspace.watch_mode} watch {/if} {isIde ? "IDE" : "Writer"}