Scoria

Vault files and formats

File kinds

Scoria classifies every file in the vault by extension:

KindExtensions
Note.md
Image.bmp, .png, .jpg, .jpeg, .gif, .svg, .webp, .avif
Audio.mp3, .wav, .m4a, .3gp, .flac, .ogg, .oga, .opus
Video.mp4, .webm, .ogv, .mov, .mkv
PDF.pdf
Canvas.canvas
Base.base
Unknowneverything else

Unknown kinds are hidden in the Files view unless showUnsupportedFiles is on, and there is nothing to open them with either way.

Only notes go into the metadata cache. In 0.7.0 search reads only notes; after 0.7.0 it also reads the text cards of canvases. Files of the other kinds are tracked, so they appear in Files and can be link targets, and the kinds Scoria can show can be embedded.

File names

Obsidian forbids a set of characters in a file name, and Scoria validates the same set:

*  "  \  /  <  >  :  |  ?

A name may also not begin with a dot. Vault-relative paths use / and keep their original case; comparisons between them are case-insensitive.

The .obsidian folder

Every file is optional, every key within it is optional, and keys Scoria does not recognize are carried through untouched.

FileScoria
app.jsonReads and writes — the editor and files settings
appearance.jsonReads and writes — base theme, accent color, fonts, theme and snippets. The 0.7.0 font size slider writes baseFontSize; after 0.7.0 that key is only read, and the size you set is kept in Scoria's own configuration folder
hotkeys.jsonReads and writes — your key bindings, rebindable from the Hotkeys tab
core-plugins.jsonReads and writes — both the modern map and the legacy array shape
community-plugins.jsonReads and writes the list, and reads each plugin's manifest.json
types.jsonReads and writes — the property types
bookmarks.jsonReads and writes — the Bookmarks pane
workspace.jsonReads and writes — the tab-group tree, the panes' leaf state, lastOpenFiles
graph.jsonReads and writes — filters, color groups, display settings, forces
workspaces.jsonReads and writes — saved layouts
backlink.json, canvas.json, daily-notes.json, file-recovery.json, note-composer.json, page-preview.json, templates.json, webviewer.json, zk-prefixer.jsonReads and writes — each plugin's options. Scoria has no Web viewer, and it acts on the canvas options only after 0.7.0
switcher.jsonReads and writes
command-palette.jsonReads — pinned commands
themes/, snippets/Custom properties read from the chosen theme and enabled snippets; their other CSS is dropped (tier 3)
plugins/Manifests read; plugin code not executed

A settings write merges the changed values into the file's own JSON and then writes the file out again, so unknown keys, values that did not change and the file's key order survive. Its whitespace can change. hotkeys.json, bookmarks.json, workspace.json and workspaces.json are written whole instead, because removing an entry has to take it out of the file. Entries Scoria did not touch keep their unknown keys. See settings.

Which app.json keys are read, and which of them actually change behavior, is the table in settings.

graph.json

Read to reproduce your graph, and written back about a third of a second after you change an option. If the file exists, the changes are merged into it; if not, Scoria creates it with Obsidian's keys, in Obsidian's order:

GroupKeys
Filterssearch, showTags, showAttachments, hideUnresolved, showOrphans
Color groupscolorGroups, each {query, color: {a, rgb}}
Display and forceArrows, node size, link thickness, text fade, centre, repel, link force, link distance
Viewscale, close

collapse-* keys round-trip.

JSON Canvas

.canvas files are JSON Canvas 1.0. Scoria implements the format: its fields, z-order by array order, and tab-indented output when writing. A canvas round-trips through Scoria unchanged.

A .canvas opens in a canvas view of its own in the main area: it pans, zooms, selects, moves, resizes, draws edges, colors, groups, copies, pastes and undoes, cards are typed into, and it autosaves through the same writer — the bytes Obsidian writes on an edited save. The menus, controls and commands are Obsidian's. An embed of a canvas inside a note, ![[Board.canvas]], is the canvas's minimap under its name, as in Obsidian, and a click on it opens the canvas; a file card on another canvas draws the same picture.

Bases

.base files are Obsidian's Bases format, YAML. Scoria implements the top-level keys and the recursive filter structure, and round-trips a base file unchanged. A .base opens on its view — table, cards, list or kanban — with Obsidian's toolbar, and a change made there is written back in Obsidian's bytes.

A table cell typed into writes the note the row stands for, not the base. Cells can also be worked as a range, as in Obsidian:

KeysWhat they do
Shift + arrowsGrow the range from the cursor, inside the cursor's group
Shift + clickRun the range from the cursor to the clicked cell
Ctrl + ASelect every cell of the group
Ctrl + CCopy the range as tab-separated text: no header, no trailing newline, a cell holding a tab, a line break or a " in double quotes
Ctrl + VPaste over the range: one value fills it, anything larger lands at its top-left corner
Delete, BackspaceEmpty every cell of the range (key: with no value)
EscapeDrop the range and keep the cursor

A paste of text from elsewhere writes every cell as text, whatever the property's type, as Obsidian does; a paste of the table's own copy keeps the copied types. The name column and formula columns take nothing. Each row is one write to its note, and a note with no frontmatter gets a block. Where Scoria and Obsidian differ here is listed under differences.

What Scoria writes, completely

The whole list:

  1. A note you edited — on autosave, Ctrl + S, navigation, mode change or close. Its byte-order mark and line endings are restored as found.
  2. Notes whose links need rewriting after you rename or move a file, when alwaysUpdateLinks is on or you agree in the Update links prompt. Only the link bytes change. Renaming a heading rewrites the links to it without asking.
  3. Files you create, copy, move or delete, and the notes changed by a command you run. This includes pasted and downloaded attachments, recordings, merged or extracted notes, an inserted block id, frontmatter migration and a restored snapshot. Exports go where you choose.
  4. A .trashinfo record and a moved file, when deleting with trashOption: system on Linux, or a file moved into .trash/ with local.
  5. A canvas you edited — on its own autosave, through the JSON Canvas writer above; a base you changed from its toolbar; and the frontmatter of a note whose cells you typed into, pasted over or emptied in a base's table.
  6. A file under .obsidian/, when you change something that lives there: a Settings control writes into app.json, appearance.json, switcher.json, core-plugins.json, community-plugins.json or a core plugin's own file; a rebinding writes hotkeys.json; a property type writes types.json; a bookmark writes bookmarks.json; the graph's controls write graph.json; and a saved layout writes workspaces.json. How each is written is described above.
  7. .obsidian/workspace.json, on the way out and only if the session changed the layout: the main tree of tab groups, each pane's own leaf state and lastOpenFiles, with every other key carried through.

Scoria puts no cache, index, sidecar or lock file in the vault. Outside it, its configuration folder holds scoria.json (the vault list and settings for this computer), recovery snapshots (file-recovery/), folds (note-fold/), the window zoom (window/) and the custom spelling dictionary. After 0.7.0, window/ also keeps the text size. The socket Scoria uses to hand a file to a window that is already open is outside the vault too.

Not a format: Sync and Publish

Obsidian Sync and Obsidian Publish are services, not file formats, and Scoria has nothing to do with either. A vault synced by Obsidian Sync is still a folder, so Scoria opens it; the syncing is Obsidian's doing and Scoria neither helps nor hinders it.

Next

Source: sites/scoria/content/docs/reference/formats.md