Contents

Saving and recovery

This page is about the Mac app. In VS Code, saving and file history are VS Code's own.

How Olive saves

Olive saves a note by itself about two seconds after you stop typing, and keeps a draft of your edits on this Mac even sooner, so nothing is lost if the app quits before the file is written. ⌘S, or Save now in the note's … menu, saves straight away. To save only when you ask, uncheck Auto-save in the same menu.

While Olive saves by itself, the note's header says nothing about saving. It shows one of these only when you need to act, and clicking it does what its last word says:

Shown

Meaning

● Unsaved — Save

Your edits are not written to the file yet — because Auto-save is off, or because Olive could not keep a copy of them on this Mac. Click it, or press ⌘S, to write them

● Auto-save failed — Retry

Olive could not write the file. Your edits are kept on this Mac; click it, or press ⌘S, to try again

● 1 block cannot be saved — Save…

See Blocks Olive cannot write back

⚠ Changed externally — Resolve

See When a file changes outside Olive

In the Mac app, a note with Auto-save off and unsaved edits shows — Edited after its name instead of ● Unsaved — Save. Whenever edits are waiting that auto-save will not write, the window's close button shows a dot, as in other Mac apps.

If Olive quits with unsaved edits, they come back the next time you open the note.

When a file changes outside Olive

Another editor, a sync service or Git may change a note while it is open.

The same window appears when iCloud Drive leaves two versions of a note, such as Note 2.md beside Note.md.

Notes in iCloud Drive

Notes that iCloud Drive has not downloaded to this Mac are downloaded when you open them. If one cannot be downloaded — while offline, for example — Olive shows the last copy it read, marked read-only.

File recovery

Olive keeps a copy of each note before it is overwritten: the last five versions, on this Mac only. Choose File recovery… from the note's … menu to see them, with the differences from what you have now. Recover this version puts that version in the editor, and it is saved like any other edit — within a couple of seconds while Auto-save is on.

Versions taken before an outside change was merged, or from a conflicting copy, are labelled as such.

Blocks Olive cannot write back

Very rarely, Olive cannot write a block back exactly as it was written. It then stops saving that note automatically, so nothing changes without you knowing, and the header shows 1 block cannot be saved. Press ⌘S to see the block as it is now and as it would be saved, and choose Save changed version or Cancel. Copy details copies a description you can attach to a bug report.


Back to the contents.