Scoria

Editing a note

Scoria has one editor with two faces. Both are the same buffer and the same parser; they differ in how much of the Markdown they show you.

ModeMarkersSwitch with
Live PreviewHidden, unless the cursor or selection touches the constructeditor:toggle-source
Source modeAll visible, alwayseditor:toggle-source

Ctrl + E (markdown:toggle-preview) switches between editing and reading view. Which editing mode you get is your vault's livePreview setting; which of editing or reading a note opens in is defaultViewMode.

Typing a task at the end of a note in Live Preview, two square brackets opening the completion popup which narrows as letters are typed, the accepted link written, find highlighting a word, then Split right and a second note opened beside the first.
Live Preview: a task typed at the end of a note, [[ opening the completion popup and the accepted row writing the link, find highlighting every hit, then Split right and a second note beside the first.

Live Preview

The rule is Obsidian's: a construct renders unless your cursor is in it, and then it shows its source so you can edit it.

  • Headings are scaled by level; the # markers appear when you enter the line.
  • Wikilinks show their alias, or their target when they have no alias. Markdown links show their text.
  • Tasks render as checkboxes, and a click toggles one.
  • Quotes show a bar per level.
  • Comments (%%…%%) and block ids (^id) are hidden.
  • Inline math is typeset in place, on the line's baseline; the source and its dollar signs return while the cursor is inside it (see tables, code and math).
  • Emphasis, strong, strike and highlight drop their delimiters.

Block widgets

A callout, a math block, a Mermaid diagram, a block of HTML Scoria can draw, or a paragraph that is nothing but an embed is rendered in place of its source lines, as reading view draws it — so an embedded note appears inline while you write around it. Its source returns when your cursor enters the block. A top-level table stays a grid, and you type in its cells; the properties block is a table you edit too.

Links inside an embed widget are clickable, and follow.

In Live Preview, a click on a rendered link follows it. In Source mode, Ctrl + click does — a plain click puts the cursor there, which is what you want when the markers are showing.

From the keyboard, with the cursor in a link: Alt + Enter follows it, Ctrl + Enter opens it in a new tab, Ctrl + Alt + Enter to the right, and Ctrl + Alt + Shift + Enter in a new popout window. A right click on a link offers the same three as Open in new tab, Open to the right and Open in new window. A new tab opens right after the current one; with Always focus new tabs off (Settings, Files and links) it opens behind it and you stay in the note.

Source mode

Every character of the file, with syntax highlighting and nothing hidden. This is the mode for fixing a mangled table, seeing exactly where a stray %% is, or editing a note whose formatting is itself the subject.

Decorations come from the parser, recomputed on a background thread after each edit — one parse in flight and one queued — and swapped in when ready. Typing never waits for the parser, which is why a very large note still types smoothly.

Soft wrap and the readable line length

Lines wrap at the view width, capped at the readable line length and centred, the way Obsidian does with readableLineLength on.

The scroll position is a line plus a pixel offset into that line, rather than an absolute pixel count. That is what makes a 50,000-line note cheap: wrapped-row heights are only ever measured near the viewport, so no full layout pass is needed to know where you are. Page Up, Page Down, revealing the cursor and clamping at the end of the note all walk rows from that anchor.

Selection and movement

Extend a selectionShift with any movement key, or drag
Select a wordDouble-click
Select a lineTriple-click
Select everythingCtrl + A
Move or delete by wordCtrl + ← / →, Ctrl + Backspace / Delete
Copy, cut, pasteCtrl + C, Ctrl + X, Ctrl + V — cut and copy take the whole line when nothing is selected

Smart lists

With smartIndentList on (the default), pressing Enter continues what the line started:

  • Its quote markers (>, > >).
  • Its bullet, or the next number in an ordered list — and the siblings after it renumber.
  • An empty checkbox, after a task item.

Shift + Enter is always a plain newline, whatever the line started. An empty item is cleared rather than continued; an empty nested item outdents instead. Tab and Shift + Tab indent and outdent list items, using a tab or tabSize spaces depending on useTab, and any ordered items this unsettles renumber: an item follows its previous sibling at its own depth, and one with no previous sibling restarts at 1.

Auto-pairing

autoPairBrackets brings a closer along with (, [, {, " and '; autoPairMarkdown does the same for the backtick, * and _. Typing the closer where one is already waiting steps over it instead of doubling it, a Backspace between a fresh pair takes both away, and with text selected the pair wraps the selection — ~, =, $ and % only ever wrap. Both toggles default to on, and changing one in Settings takes effect on the next keystroke without reopening the note.

Every rule here is one that was observed against Obsidian. The characters and positions the probe left open are deliberately inert: pairing writes bytes you did not type, so a guessed rule would leave a stray ) in your prose and the vault would keep it.

Autocompletion

[[ and ![[ offer the vault's files, their aliases, their headings and their block references; # offers its tags. The list narrows as you type and the rows carry the file's folder, so two notes with the same name are told apart.

Typing two square brackets in Live Preview opens a completion popup listing matching notes.
The popup as [[ opens it, listing the vault's notes, images and diagrams before a letter narrows it.

Three keys accept a row, and the difference between them is the point:

KeyWhat it writes
EnterThe whole link, cursor after it
TabThe same link with the cursor left inside the brackets, so a #heading can follow
Shift + EnterThe query as you typed it, ignoring the highlighted row

↑ and ↓ — or Ctrl + N and Ctrl + P — move through the list, and Escape closes it. The link itself is written in your vault's own style: newLinkFormat decides how much of the path appears, and useMarkdownLinks decides whether you get [[wiki]] or [markdown](…).

Slash commands

With the Slash commands core plugin on (Settings → Core plugins; it is off in a new vault, and it has no settings of its own), typing / at the start of a line or after a space opens a list of commands under it: the same commands the command palette offers there, pinned ones first, then the ones you ran recently, then the rest by name. Typing after the / narrows the list the way the palette's query does; a space, or a query nothing matches, closes it. It opens in code blocks, tables and frontmatter too, but not after a letter, so and/or and https:// are left alone.

Enter or a click takes the / and what you typed after it out of the note and runs the command there — /table then Enter inserts a table where the / was — and one Ctrl + Z puts the /table back. ↑ and ↓ wrap round the list, Escape closes it and leaves the text, Tab does nothing, and Shift + Enter is an ordinary new line.

The right-click menu

A right click in the text places the cursor (or keeps a selection you clicked inside) and opens Obsidian's menu: Add link and Add external link; with a selection, Search for "…" and Extract current selection...; then Format, Paragraph and Insert, each a submenu of the editing commands of the same names — Bold to Clear formatting, with Highlight's six colours under it; the three lists, Heading 1 to 6, Body and Quote; Footnote, Table, Callout, Horizontal rule, Code block, Math block and New base — and the clipboard rows. Paragraph ticks the line's heading level, or Body; Format ticks Bold, Italic or Code when the cursor is inside one. On a link the file's own rows wrap these, and Format makes way. The three submenus came after 0.7.0.

Show context menu under cursor (editor:context-menu) opens the same menu at the cursor; near the bottom or the right of the window it opens upward or leftward (after 0.7.0), as Obsidian's does.

Spellcheck

With Spellcheck on (Settings → Editor, on by default, or Toggle spellcheck in the command palette) a misspelled word gets a red wavy underline in both Live Preview and Source mode, as you type: a word you are still typing waits until the space after it. Code, URLs, tags, math, the frontmatter, block ids and footnote references are never checked; link text, the inside of a [[wikilink]], raw HTML, comments, callouts and table cells are, as in Obsidian. Words break where Obsidian's checker breaks them: digits and capitals exempt nothing (v2, MISPELED), hyphens and underscores split a word, and foo.bar or rock'n'roll pass when every part is a word.

Right-click a squiggled word for up to three corrections (or "No suggestions...") and Add to dictionary. Picking a correction replaces the word, and one Ctrl + Z puts it back. Added words live in Custom Dictionary.txt in Scoria's configuration folder (~/.config/scoria on Linux), outside every vault — the same file, in the same bytes, that Obsidian keeps in its own data folder, so you can copy yours across. The cog beside the Spellcheck toggle lists them, with a × to take one out.

English (United States) is built in. Spellcheck languages adds others from the Hunspell dictionaries your system already has (/usr/share/hunspell and the like on Linux, ~/Library/Spelling on macOS, %APPDATA%\Microsoft\Spelling on Windows), or from a pair of .aff and .dic files you drop into dictionaries/ in Scoria's configuration folder. A word is right when any chosen language knows it.

Multiple cursors

To add a cursor
Above or beloweditor:add-cursor-above, editor:add-cursor-below
At every match of a searchFind all — Alt + Enter in the find panel
AnywhereAlt + click (again on an existing cursor removes it)

Typing, deleting, Enter, Tab, cut, copy and paste all apply at every cursor as a single undo step. Copy joins the cursors' selections with newlines; paste gives one line to each cursor when the counts match, and otherwise pastes the whole clipboard at each. Movement moves every cursor, and selections that come to overlap merge. Escape, or a plain click, keeps only the primary cursor.

Pasting and dropping

Ctrl + V in Live Preview or Source mode takes the best of what the clipboard holds:

On the clipboardWhat the paste writes
Files a file manager copiedeach file copied into the attachment folder under its own name, and embedded, a blank line between two: ![[photo.png]]
An image (a screenshot, a browser's Copy image)the image saved as Pasted image 20261115195041.png, named after the time to the second, and embedded
Rich text from a web page or a documentthe text as Markdown: headings, bold and italic, links, images, lists, tables, code and quotes; scripts and styles are left out
Plain textthe text as it is

Ctrl + Shift + V, and Paste as plain text in the right-click menu, always paste the plain text. Turn off Settings → Editor → Convert pasted HTML to Markdown (autoConvertHtml) for every paste to do the same.

Files dragged in from a file manager drop where you let go of them: each is copied in and embedded at that point, the caret after them. A file that is already in the vault is not copied; its embed goes in at the caret instead. A name that is taken gets the next number, photo 1.png. One Ctrl + Z takes a paste or a drop back as a whole; the saved files stay.

On Linux, files and rich text are read with the desktop's own clipboard tools, wl-paste (wl-clipboard) under Wayland and xclip under X11; without them a paste is the plain text or the image.

Undo

Undo and redo group the way CodeMirror's do: consecutive typing, or consecutive deleting, within half a second of itself is one step. A Replace all is one step however many matches it changed, and so is an edit made at twenty cursors at once.

Saving

Scoria saves the note you are editing, and only that note — and a note you are editing in a page preview popover, on the same rules.

Saves on
IdleTwo seconds after your last keystroke
Ctrl + Seditor:save-file
NavigationWhen another note opens
Mode changeWhen you switch to reading view (which then rebuilds from the saved text)
CloseWhen the window closes

What a save writes. The buffer holds \n internally. The file's byte-order mark and its line endings are remembered when it was loaded and restored when it is written, so a note that was CRLF-with-a-BOM is written back CRLF-with-a-BOM, and a save changes nothing but the bytes you actually edited.

When the file changes underneath you. If the note on disk is what Scoria itself last wrote, the watcher's reload is skipped. If the note changed underneath an unedited buffer, it reloads and keeps your cursor. If you have unsaved edits, they are left alone — Scoria will not throw away your typing to take the disk's version.

Vim mode

Settings → Editor → Vim key bindings (vimMode in app.json) turns on Vim's keys in the editor. A note opens in normal mode with a block cursor; i, a, I, A, o, O and the change commands enter insert mode, where typing is exactly the editor's own (auto-pairing, the suggestion popup, table cells), and Escape or Ctrl-[ leaves it.

What is there:

  • Motions: h j k l and the arrows, w W b B e E ge gE, 0 ^ $ _, gg G and {count}G, f F t T ; ,, %, { }, + -, |, Ctrl-D Ctrl-U Ctrl-F Ctrl-B, with counts.
  • Operators: d c y > < gu gU g~, over a motion, a text object or doubled (dd, 3cc, >>), and x X D C s S Y r J ~ p P.
  • Text objects: iw aw iW aW, i" a" (and ', `), i( a( (and [, {, <, b, B), ip ap.
  • Visual modes: v and V, with every motion, object and operator, o, and p to replace. A selection made with the mouse is a visual one.
  • Search: / and ? (regular expressions, case-insensitive until the pattern has a capital), n N, * #. : takes a line number, :$ goes to the last line and :noh clears the search.
  • Registers: the unnamed one, "a–"z, "0, "_, and "+/"* for the system clipboard. As in Obsidian, a plain yank does not touch the clipboard.
  • Undo and repeat: u, Ctrl-R, and .; a command and the text typed after it are one undo step.
  • Folds and scrolling: za, zM, zR, zz.

The clipboard and undo chords (Ctrl+C, X, V, Z, A) and every workspace hotkey keep working in normal mode.

Not there: visual block mode, macros, marks, : commands other than those, replace mode (R), and a .obsidian.vimrc. j and k move by line, not by wrapped row.

Line numbers, guides and direction

Line numbers (Settings → Editor, or Toggle line numbers in the palette) put a gutter at the start of the text column: one number per line, a wrapped line numbered once, a table, embed or math block by its first line, and the properties block not at all. The text moves over to make room.

Indentation guides draw a faint line down each level of indentation, in lists, under an item's continuation and in code blocks. With the caret on a list item, the guide that runs down that item's children is drawn brighter. The reading view draws one down each nested list.

A line written in Hebrew or Arabic runs right to left: it is right-aligned, its list marker and quote bar move to the right, and on it the Left arrow moves forward and Right back. That follows each line's first letter, as Obsidian does; the Right-to-left setting moves the gutter to the right and decides the direction of a blank first line.

Next

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