Markdown Mirror keeps one shelf in a folder on your computer. Each note is a Markdown file there, and each file is the file itself. A change in the app reaches the folder, and a change in the folder reaches the shelf, so the same notes are open to Obsidian, VS Code, git and any other program. It runs in the Windows app and the Mac app.
Turn it on for a shelf
Each shelf has its own switch, and every switch starts off.
- Open the shelf switcher at the top of the shelf panel and choose Shelf settings.
- Turn on Markdown mirror.
Settings › Markdown mirror lists every shelf with the same switch, and under each one a line saying what its folder is doing.
On Windows
The shelf's folder is %USERPROFILE%\ConceptSpace\ followed by the shelf's name. In File Explorer, ConceptSpace appears as a cloud drive.
While any shelf is on, the app starts when you sign in to Windows and keeps an icon in the system tray. Closing the window hides it. The folder and the shelf stay in step only while the app is running.
On a Mac
The first time you turn a switch on, macOS asks for one more step, shown under the switch as One more step in macOS.
- Choose Open System Settings. It opens at File Providers.
- Turn on Concept Space, then choose Done.
- Back in the app, choose Continue.
The panel then says the shelf's folder is in Finder, shows its path, and offers Show in Finder. Concept Space appears under Locations in Finder's sidebar, and each shelf that is on has its own folder inside it. It is an ordinary folder for any program.
While any shelf is on, Concept Space keeps an icon in the menu bar. Closing the window, or quitting the app with ⌘Q, closes only the window: the folder and the shelf stay in step. Quit Concept Space in the menu bar icon's menu stops that too, until you open the app again. Edits you make in the folder meanwhile wait, and are taken in at the next open.
Bring an existing folder of notes in
Turning the switch on always makes a new folder for the shelf. A folder you already have joins the shelf in one of two ways.
- Move it in. Turn the switch on, then move or copy your notes, with their folders, into the shelf's folder. Every
.mdand.txtfile becomes a note, every other file becomes a file in the shelf, and links between the notes that arrive together are kept. A vault of hundreds of notes is in the shelf a few seconds later, and its files are left exactly as you wrote them. - Upload it as a zip. Zip the folder and use Upload on the shelf-name row, or New shelf › From a zip in the shelf switcher. A zip made by Export shelf also carries what a folder cannot: see the next section.
What the folder holds, and what it does not
The folder holds your writing: every note, with its properties as front matter, and every file.
It does not hold the things the app builds around the writing: a library's property definitions, its views, arrangements, bookmarks and version history. Those stay in the shelf. To take them with you, use Export shelf: the zip carries the libraries, views and arrangements, and uploading it brings them back.
Two kinds of value are also left out of a note's file, because the app works them out: a formula's result and a rollup's. A library's ID is written, and a change to it in the file is undone.
In a library note's file, each of the library's properties is written under a field name: the property's name in lower case, with an underscore in place of each space or mark. The property Date Started is date_started in the file, and that is the name a Dataview query or another tool reads. A note's own properties, the ones no library defines, keep the names you gave them, capitals and spaces included.
Edit notes in any program
Every note is on disk in full, as a .md or .txt file. Open it in Obsidian, VS Code, Notepad, TextEdit or any other editor. When you save, your edit is merged into the note, so a change made in the app or on another device meanwhile is kept too. Typing in the same note in the app and in an editor at once keeps both.
A new .md or .txt file becomes a new note, and any other new file becomes a file in the shelf. A new folder becomes a folder in the shelf. Renaming or moving a file renames or moves its note.
The folder keeps what you wrote the way you wrote it:
- Links. A link you write as
[[Note]],[[Folder/Note]]or[[Note#Heading]]stays as you wrote it while it names the same note. The app writes a link as its full path,[[Folder/Note]]. When a note is renamed or moved, the links to it are written again with the new name. - Two notes with one name.
[[Plan]]means the note named Plan in the same folder. With no Plan in that folder and two elsewhere, the link names neither, and the app shows it as broken until you write the folder:[[Projects/Plan]]. - Front matter. Your properties stay in the order you put them, with your comments. A value you did not change keeps the form you gave it, such as a list on one line.
- Line endings. A file saved with Windows line endings is the same note. Nothing is rewritten for it.
Writing in an editor that saves as you type is one version of the note, as writing in the app is. A pause of five minutes begins the next.
Use it with Obsidian
Choose Open folder as vault in Obsidian and pick the shelf's folder. Obsidian's own folder, .obsidian, stays on this computer and is never part of the shelf, so your plugins, themes and workspace are untouched.
- Renaming a note in Obsidian renames it in the shelf. Obsidian asks whether to update the links to it; either answer works, and the links end up naming the renamed note.
- Deleting a note in Obsidian moves it to the shelf's trash. With Obsidian's Deleted files setting on Move to Obsidian trash, the file Obsidian moves to
.trashis the trashed note's own file. - Properties you edit in Obsidian's Properties view change the note's properties. In a library, a key spelled as the library's field name (
date_started) is that property, and any other key is a property of that note alone. Obsidian gives each one its own type: text, number, checkbox, date or list. - Pasted images and other attachments become files in the shelf, and their embeds draw in the app.
- Canvas files are kept as files. The paths inside a canvas are not updated when a note is renamed in the app.
Use it with git
Run git init in the shelf's folder. The repository's own folder, .git, stays on this computer and is never part of the shelf.
- Add a line
.trash/to.gitignore, so the shelf's trash stays out of the repository. - A branch switch, a stash or a checkout of an older version changes the notes in the shelf, as any edit does. A note a branch does not have goes to the shelf's trash, and comes back when you switch to a branch that has it.
- Git's line-ending conversion changes nothing in the shelf.
.gitignore, like every name beginning with a dot, stays on this computer. A second computer with the same shelf needs its own.
What stays out of the shelf
Some things in the folder are never taken into the shelf. They stay where they are, on this computer only.
- Anything whose name begins with a dot, such as
.git,.obsidianor.gitignore, and anything Windows or macOS marks as hidden. The one exception is.trash, which is the shelf's trash. - Folders that programs make and fill:
node_modules,bower_componentsand__pycache__, and any folder a tool has marked as its cache or its Python environment. The line under the shelf's switch names the folders it has left out. - Lock, temporary and backup files, such as Word's
~$Report.docx,draft.tmpand an editor'snote.md~.
Everything else is taken in. A site generator's output folder, such as public or dist, has an ordinary name and becomes part of the shelf, so keep build tools and their output outside the shelf's folder.
Files download when opened
The folder lists every file in the shelf. A file's contents download the first time something opens it, and then they stay on disk. With no connection, a file that has not downloaded yet cannot be opened. A program that reads every file, such as git add or a backup, downloads every file.
On Windows, Storage Sense can free cloud files that have not been opened for a while, leaving their names in the folder. Each cloud folder has its own setting: in Windows Settings → System → Storage → Storage Sense, under Locally available cloud content, Concept Space is listed by itself, apart from OneDrive. It frees a file not opened for 30 days unless you choose 1, 14 or 60 days or Never, and only when Storage Sense runs, which by default is when the disk is low on space. A freed file downloads again the next time it is opened. Notes are never freed.
The trash folder
.trash at the top of the shelf's folder holds the notes and folders in the shelf's trash. Its files are read-only, and deleting or renaming them there is refused. Obsidian shows nothing from it.
To restore a note trashed by itself, move its file out of .trash into a folder of the shelf. A note in a trashed folder comes back with its folder, restored in the app. Moving a file into .trash moves its note to the trash.
When a file is not taken in
The line under the shelf's switch says when the folder holds something the shelf has not taken, and names it.
- Changes the app cannot read. A note saved in an encoding other than UTF-8, or with front matter that is not valid YAML, stays as it is on disk, and the note in the app stays as it was. Fix the file in the folder and it is taken in.
- Too large to add. A file past the size your plan allows stays in the folder only.
Turn it off
Turn off the shelf's switch. A warning says what happens, and Remove confirms it.
The shelf keeps every note and file, and the folder's copies of them are deleted.
- On Windows, the folder is removed. Anything only the folder held, such as
.git,.obsidian, files the app could not read and folders it left out, goes to the Recycle Bin in one folder named for the shelf. If something is too big for the Recycle Bin, the warning names it, since it would be deleted for good. - On a Mac, nothing goes to the Trash. Anything only the folder held stays where it is and no longer syncs; the line under the shelf's switch gives the folder's path. When the last shelf is turned off, Concept Space leaves Finder's sidebar and the menu bar icon goes.
Turning the switch on again makes a new folder.