When a save fails, or a scene changed elsewhere
Leafbind never throws words away to settle a problem. When it can’t write a file, or two versions of a scene disagree, it keeps both and tells you. Where a choice is needed, it waits for you to make it.
When the project folder is out of reach
Section titled “When the project folder is out of reach”If the drive or synced folder your project lives in goes away (an unplugged disk, a network share that dropped, a laptop off the network), keep writing. You always write into Leafbind’s copy on this computer (see When your project folder is written), and your words go across by themselves once the folder is back.
Restructuring works too: create, rename, move and delete scenes and folders as usual, empty folders and the pictures in a folder included. The folder catches up in the order you made the changes. A scene you deleted is removed from the folder only if it is still the one you deleted: if another computer has meanwhile made a new scene with the same name, that scene stays. Dictionary words, series and universe settings, the bin and your writing statistics go across the same way.
The status bar shows the problem. The project’s path turns orange with ▲ and a short reason, such as T: isn’t reachable, T: isn’t answering or Not where it was, followed by when the folder was last compared. saved locally confirms that your words are safe on this computer. See what’s waiting lists the documents waiting to go across. Save a copy… writes the project’s local copy out to a folder you choose, if you need it somewhere else now.
The top of the window says it too. The small folder before the project’s name has a green dot while the folder can be reached, and an orange slash through it while it can’t; hover over it for the reason, or click it to see what’s waiting. The window’s title in the taskbar reads (offline) after the project’s name. In the focus modes both are hidden with everything else.
If the folder is there but won’t take your changes (it is read-only, or another program holds a file), the status bar says Sync failed. Leafbind keeps trying by itself, showing Trying again now… and then Sync failed again. A window saying Leafbind couldn’t access the folder opens once, not on every attempt, and again only if a later save went through and then failed once more. Your words are safe in the copy on this computer meanwhile.
A project you don’t keep on this computer can’t be opened while its folder is away: see Projects you don’t keep on this computer.
When the folder comes back, Leafbind compares and catches up, with nothing to press. If it was gone for more than an hour, typing pauses while Catching up with your project folder is shown, and resumes by itself.
When a save fails
Section titled “When a save fails”If a file can’t be written and your words can’t go into the local copy either, a notice above the text says Leafbind can’t write this scene right now. It gives the likely reason: the file may be read-only or held by another program, it may have been moved or deleted outside Leafbind, or its drive may have gone away. The next line says where your words are:
- in a rescue copy on this computer, so they survive closing Leafbind; or
- in Leafbind’s local copy, from which they reach the folder by themselves.
The notice goes away as soon as a save goes through, and the rescue copy is deleted then.
Leafbind tries the save again by itself: after 10 seconds, then less often, up to a minute apart, and at once when you come back to the window or press Ctrl+S. Once the drive is back or the file can be written again, the notice clears without you typing anything.
If it is only Leafbind’s own copy of the scene on this computer that refuses, your words go straight to the project folder instead, and the notice says so. They are safe there, but until that copy can be written again, the scene can’t be worked on with the folder away.
In a focus mode the notice is a card at the top of the screen, and you can keep typing under it.
If the notice is red and says Couldn’t save this scene, and the spare copy failed too, copy your text out of the window now.
Rescue copies are plain Markdown files, kept on this computer and never in the project folder. On Windows they are in %LOCALAPPDATA%\com.leafbind.desktop\rescue\.
Rescued words when Leafbind starts
Section titled “Rescued words when Leafbind starts”If Leafbind closed while a rescue copy still differed from its scene, the next start shows Your words are safe — one scene needs a decision. For each scene:
- Compare with the document shows the two side by side.
- Save them into the scene writes the rescued words into the scene.
- Carry on writing with these words puts them back in the editor while the file still can’t be written. They reach the file by themselves once it can.
- Show the rescue file shows where the copy is.
- Discard the rescue copy deletes it, after showing what would be lost.
A rescue copy that the scene already contains is removed without asking. One that only adds to the open scene is loaded back into the editor by itself.
When a scene changed outside Leafbind while it was open
Section titled “When a scene changed outside Leafbind while it was open”If something else rewrites a scene while you have it open, such as another program or your sync app bringing in a change, Leafbind doesn’t drop it into the editor while you are writing. ✎ beside the document’s path in the status bar shows that outside changes are held, and ✎⇣ that one is waiting. Ten seconds after you stop typing, Leafbind looks again:
-
If everything you typed is saved, the new version appears in the editor. That’s how a scene open on two computers follows the other one.
-
If some of your words aren’t in the file yet, Leafbind won’t save over the newer version or throw yours away. The scene is locked for writing, the comparison This scene changed outside Leafbind opens by itself, and the taskbar flashes. Choose one:
-
Save what’s in the editor: your text replaces the version on disk. The version on disk stays in the scene’s history.
-
Load what’s on disk: the version on disk replaces the text in the editor. The editor’s text is kept in a rescue copy, but Leafbind won’t offer it again; to get it back, open the file in the rescue folder above.
When a scene was edited here and on another device
Section titled “When a scene was edited here and on another device”When a scene changed on this computer and in the project folder, differently, Leafbind keeps both and asks you, in the window One thing is waiting for you. Whichever version you keep, the other is saved in the scene’s history. How it happens, how to choose, how to combine both versions by hand, and how to avoid it all have a page of their own: When a scene changed in two places.
Reading the comparison
Section titled “Reading the comparison”The comparison shows the two versions side by side. Paragraphs both versions share span the full width. A paragraph that differs is shown in two columns, with the words only one side has marked in yellow, and a paragraph only one side has shows not here on the other. Long unchanged stretches fold away behind Show … more unchanged paragraphs. Differences in the scene’s properties appear as a table. The button under each column keeps that column’s version.
When the words are the same. Two versions can differ in spacing alone: a doubled space, an extra blank line at the end, different line endings. A reader wouldn’t notice, but the files are different, and Leafbind says exactly how. It shows The words are the same. These are the differences… and lists each place, with spaces shown as ·, line breaks as ↵ and tabs as →. Only when the two match exactly does it say These two are the same, character for character.