All posts

Keep your notes in Git, grep and Spotlight with a Markdown mirror

Devot stores notes in a SQLite database, which is what makes search, history and sync fast. But a folder of plain Markdown files is what every other tool understands. The mirror gives you both.

A folder that keeps itself up to date

Choose a folder in Settings > Mirror and Devot writes every note there as a Markdown file: a folder per notebook, a file per note, images in an attachments folder. From then on, every change you make is written there too.

Put it under Git

Make the mirror folder a repository and commit when you like:

cd ~/Notes
git init
git add -A && git commit -m "Notes"

Now grep, Spotlight, your editor and any agent with file access can read your notes, and Git keeps a history alongside the Revision History Devot keeps itself.

It never fights you

Turn on Bring Back Outside Edits and a file you change in your editor goes back into its note, merged as an edit so history and sync keep working. With it off, or when the note changed in Devot too, Devot never overwrites your file: it renames your copy with "(edited outside Devot)" and writes its own beside it. Files Devot did not write are never touched.

More in the docs: Markdown mirror.