Scoria

The window

Scoria opens one vault window per vault, in a three-part shell: a dock on the left, the open note in the middle, a dock on the right. Both docks can be hidden, which leaves the note alone on screen. Tabs can also be taken out into popout windows of their own.

┌─────────────┬────────────────────────────────┬──────────────┐
│ Files       │ ▸ Note.md  ▸ Other.md          │ Backlinks    │
│ Search      │          the open note         │ Outgoing     │
│ Bookmarks   │   (reading, Live Preview or    │ Tags         │
│  ← left     │          Source mode)          │ Properties   │
│    dock     │                                │ Outline   →  │
├─────────────┴────────────────────────────────┴──────────────┤
│ vault                1 backlink · 412 words, 2310 characters│
└─────────────────────────────────────────────────────────────┘

A ribbon of icon buttons runs down the left edge, with one for each enabled plugin that has one: the quick switcher, the graph, today's daily note and so on. Settings → Interface → Show ribbon hides it.

The left dock

Three tabs:

  • Files — the folder tree of the vault. The tab Scoria opens on.
  • Search — vault-wide search with the full query grammar.
  • Bookmarks — the tree in your vault's bookmarks.json: files, folders, headings, blocks, searches and groups, read and written in Obsidian's bytes.

Ctrl + Shift + F opens Search; file-explorer:open returns to Files and bookmarks:open to Bookmarks. app:toggle-left-sidebar hides and shows the dock. At its foot is the vault's name: click it to switch vault, or choose Manage vaults... to create or open another. With no vault open it reads No vault.

The note

The middle is one note, in one of three modes:

ModeWhat it isSwitch with
Reading viewThe finished note, renderedCtrl + E (markdown:toggle-preview)
Live PreviewEditing, with syntax hidden unless the cursor is in itCtrl + E from reading view
Source modeEditing, with every marker visibleeditor:toggle-source

Which one a note opens in follows your vault's settings: defaultViewMode decides reading view or editing, and livePreview decides which of the two editing modes. See editing a note.

The middle is a tab strip over one or more tab groups. Ctrl + T opens a tab, workspace:split-vertical (Split right) and workspace:split-horizontal (Split down) divide the area into groups, the dividers between groups drag, and a tab drags between groups or onto a group's edge to make a new one. Ctrl + Tab and Ctrl + 1…8 walk the tabs, and editor:focus-left and its three siblings move between groups. The layout is written back to workspace.json in the shape Obsidian writes it, and the next launch opens on it again.

Right-click a tab's header for its menu: Close, Close others, Close tabs after and Close all (the others only when the group has more than one tab, and Close tabs after only when there is a tab to its right), Pin or Unpin, Link with tab... or Unlink tab (after 0.7.0), and Move to new window. On the tab in front the menu goes on with Split right, Split down and Open in new window, then the tab's file rows — Rename, Move, Bookmark, Copy path, Delete and the rest of the file menu, plus Add file property, Find... and Replace... on a note, and Open linked view (after 0.7.0), whose rows open a linked view of the tab's file beside it. The right click does not bring the tab to the front. The view header's More options offers the same split and window rows.

A pinned tab shows a pin where its close button was; click the pin to unpin it. A note opened from a pinned tab — a link followed, a file picked in the quick switcher — opens in a new tab, Ctrl + W unpins it rather than closing it, and Close others and Close all leave it open. Toggle pin in the command palette pins and unpins the tab in front.

Linked tabs

Note

Linking tabs came after 0.7.0.

Link with tab... links a tab with another, as Obsidian does. Choose it and move the pointer: the tab group under it lights up in the accent, and a click there links your tab with the tab that group shows — a click on its tab strip counts too, with any mouse button. A click on your own tab, or anywhere outside the tab groups, ends it with nothing linked; Escape does not. Linking a tab with one that is already linked puts all of them in one link.

From then on the linked tabs show the same file: open a note, a canvas or an image in any of them — a link followed, back or forward, a pick in the switcher — and the others open it too, each on its own history and in its own mode, so one can stay in Reading view while you edit in the other. A pinned tab follows as well, and pinning one linked tab pins them all. An empty tab in a link waits until you open something in it. Linking opens nothing by itself.

A linked tab shows a link icon beside its close button. Point at it and every tab in its link is tinted; click it, or choose Unlink tab on the tab's menu, to take that tab out. A link with one tab left is gone. The link is the leaf's group in workspace.json, so Obsidian and Scoria open the same tabs linked. The local graph uses the same links.

Popout windows

A popout window is a second window on the same vault that holds tabs and nothing else: no ribbon, no docks, no status bar. It is titled like the vault window, after the note in front, and inside it tabs, splits, the dividers and Ctrl + T all work as they do in the main area.

ToDo
Move the current tab into a new windowworkspace:move-to-new-window, or Move to new window on the tab's right-click menu
Open a copy of the current tab in a new windowworkspace:open-in-new-window, or Open in new window on the tab's menu or the view header's More options
Open an empty windowworkspace:new-window
Open the link under the cursor in a new windowCtrl + Alt + Shift + Enter (editor:open-link-in-new-window)
Open a file in a new windowOpen in new window on its right-click menu — in Files, on a Backlinks or Outgoing links row, a bookmark, a Bases row or card, or a link in the editor
Close a windowCtrl + Shift + W (workspace:close-window), the window's own close button, or closing its last tab

Moving the only tab of the vault window leaves an empty tab behind, as Obsidian does. A link to a note that does not exist creates it, as following one does. Ctrl + Shift + W closes the window it is pressed in: in a popout, that popout and its tabs; in the vault window, Scoria itself, with every popout going with it.

Focus follows the desktop. The window you bring forward — by clicking it, with Alt + Tab, however your desktop does it — makes its own most recent tab the active one, so commands, hotkeys and the history act there. The quick switcher, the command palette, the prompts, the right-click menus and notices all come up in the window you raised them from, and a note picked in a popout's switcher opens in that popout.

Tabs drag between windows. A tab dropped on another window's tab strip joins it there, and dropped on the edge of its content splits it, exactly as within one window. A popout whose last tab leaves closes; a tab let go over no window stays where it was.

Popouts come back. When Scoria quits with popouts open, each is written to workspace.json's floating section with its position, size and maximized state, in the shape Obsidian writes it, and both apps reopen them there on the next launch. A recorded position that is on no display any more is centered instead.

Note

On Wayland a dragged tab stays in the window it started in, because a Wayland window is not told where it sits on the screen; reordering and splitting inside the window still work. A popout's recorded zoom is kept in the file but not applied. Popouts have so far been exercised on Linux; the Windows and macOS builds are still to be tried with them.

The right dock

Five tabs, in Obsidian's order. Three are about the open note; Tags and All properties are about the whole vault:

  • Backlinks — notes that link here, and unlinked mentions of this note's name or aliases.
  • Outgoing links — where this note points, resolved and unresolved.
  • Tags — every tag in the vault with its count.
  • All properties — every property key in the vault with its type and count.
  • Outline — this note's headings; click one to scroll to it.

app:toggle-right-sidebar hides and shows the dock. Each tab also has a command of its own (backlink:open, outgoing-links:open, tag-pane:open, properties:open, outline:open), so you can bind a key straight to the pane you want.

The status bar

In the bottom right corner: the latest status message, then the open note's backlinks, words and characters. While you are editing, the cursor's line and column come before the counts, with the number of cursors when there is more than one:

Ln 212, Col 7  ·  1 backlink  ·  412 words, 2310 characters

A canvas or a base shows no counts. Start Scoria with the environment variable SCORIA_DEBUG_STATUS set and the bar also shows how long the editor takes to parse and lay out the note. See performance.

ToDo
Open a noteClick it in Files, or click a link in a note
Find a note by nameCtrl + O — the quick switcher
Run anything by nameCtrl + P — the command palette
Go back / forwardCtrl + Alt + ← / Ctrl + Alt + →
Jump to a headingClick it in Outline, or follow a [[Note#Heading]] link
See the vault's shapeCtrl + G — the graph
Open SettingsCtrl + ,

Clicking a link to a note that does not exist creates it — the same as Obsidian, and the same as pressing Enter in the quick switcher on a name nothing matches. See managing notes.

Each tab has its own back and forward history: a note opened in a tab from the graph, a link, Files or the switcher is added to that tab's.

Keys

Command shortcuts start from Obsidian's defaults, and your vault's hotkeys.json rebinds or unbinds them. Ctrl + Q, which quits, the zoom keys below, which are Obsidian's View menu keys, and the editing keys inside a view or a field are fixed. See hotkeys.

Scoria can run 210 commands, and the command palette offers the ones that apply where you are. Settings' Hotkeys tab also lists named commands that do not do anything yet, so you can see your bindings for them. The full list is in commands and hotkeys.

Zoom and keeping a window on top

Ctrl + = zooms the vault window in, Ctrl + - out and Ctrl + 0 back to 100% (Cmd on macOS), as do the commands Zoom in, Zoom out and Reset zoom. Each step is a half zoom level, a factor of 1.2 for a whole level, from 63% to 173%, the steps Obsidian's take. The whole window zooms — text, icons, docks and the tab strip — and stays sharp: the zoom is applied as the window's pixel density, the way a browser's is. It acts on the vault window whichever window you run it in, and the vault window comes back at the same zoom next time, kept in Scoria's own folder rather than in the vault. A canvas and the graph keep Ctrl + =, Ctrl + - and Ctrl + 0 for their own zoom while they have the keyboard.

Toggle window always on top keeps a popout above every other window, and a second run lets it go. As in Obsidian it is offered only in a popout that is not maximized, and nothing is written. It works on X11, macOS and Windows; Wayland gives a window no way to ask, and there Scoria says so.

Reload app without saving reads the vault, its settings, theme, snippets, hotkeys and core plugins from disk again — what you want after changing .obsidian files by hand or from another app — and puts every tab, split and popout back where it was. As the name says, the open note's unsaved edits are dropped, and so are the carets, scroll positions and each tab's back and forward history; the zoom and the font size stay.

The theme

Choose the base color scheme (dark, light or the system's), the accent color, a theme and CSS snippets in Settings → Appearance. They come from your vault's appearance.json and its themes/ and snippets/ folders, so a vault opens with the choices you made in Obsidian. Scoria uses the custom properties a theme or snippet sets, such as its colors, and ignores its other CSS rules; see what a theme can change.

The interface, text and monospace fonts are chosen there too. After 0.7.0, the font size you set with the slider, the two font size commands or Ctrl + the mouse wheel is kept for the vault in Scoria's own folder, beside the zoom. baseFontSize in appearance.json is the starting size, read only until Scoria has kept one. In 0.7.0 the slider writes baseFontSize.

Note

The default text and interface font is Inter, which comes with Scoria. Scoria cannot pick weights out of a variable font, so a font installed as a single variable file has no bold. Choose one with separate Bold files.

Next

Source: sites/scoria/content/docs/app/window.md