Skip to content

Tell Leafbind where your writing lives

A workspace folder is a folder that holds your projects, at any depth. Register it once and Leafbind finds every project inside it, now and later. Most authors need only one.

Choose Add workspace folder…, either on the start screen or in the File menu, and pick the folder.

Leafbind looks through it for projects. A project is any folder with a project.md file in it; every project Leafbind creates has one. Folders with a series.md or universe.md group projects into a series or a larger universe, and show up as such.

A few kinds of folder are not searched: folders named wiki, folders whose names start with a dot, shortcuts and links to other folders, and anything more than twelve levels down.

After you add a workspace folder, Leafbind copies its projects to your computer, so you can keep writing when a network drive or a synced folder is unavailable. The status bar shows progress, for example Preparing your projects for offline use. Not now pauses it.

A large folder takes a while, and the copy takes disk space on this computer.

Projects you don’t keep on this computer

Section titled “Projects you don’t keep on this computer”

To save disk space, you can stop keeping a project on this computer. In Go to project…, each project has a mark beside its padlock: a drive with a green ✓ means it is kept on this device and opens without the drive; an orange cloud means it needs the drive to open.

Click the drive to stop keeping a project here. Leafbind asks first and says how much space it frees; if the project is open, it closes. The mark is greyed out while anything hasn’t reached the project folder yet, and its tooltip says why. Nothing in the project folder is touched.

Every time you open a project you don’t keep here, the whole project is copied to this computer again, and removed when you close it. So this suits projects you seldom open.

Click the cloud to keep a copy here again. Leafbind asks first, says about how much space the copy takes, and makes it straight away.

While its drive is away, a project you don’t keep here can’t be opened. It is shown faded with ⊘ on its folder, in Go to project… and on the start screen, and clicking it says why. If its drive went away while it was open and some of your work hadn’t reached the folder, it still opens from the copy that is left until the folder has everything.

You always write into the copy on this computer: your words land there a moment after you stop typing, and at the latest every few seconds. Nothing is ever waiting on a drive to be safe.

The project folder itself — the one in your workspace, which Dropbox, OneDrive or Google Drive sync — is written:

  • about ten seconds after you stop typing;
  • about once a minute while you keep writing without a break;
  • at once when you save, switch scenes, close the project or quit;
  • at once for anything structural: a new scene, a rename, a move, a deletion, a change to the reading order.

The pause is deliberate. In a synced folder every write is an upload, so writing a scene on every keystroke would send the same file up hundreds of times in a morning. Waiting costs nothing, because your words are already safe on this computer.

The status bar tells you where things stand. When documents are waiting for the folder it says how many, for example 3 waiting · will sync within a minute, and a ring beside your project’s path fills up as the wait grows. Click the count to see which documents. A corkboard in its own window shows the same at its bottom edge. Before you close a laptop and carry on elsewhere, glance at it: once it is quiet, the folder has everything, and your sync app can take it from there in its own time.

When the folder can’t be reached or a save fails, see When a save fails, or a scene changed elsewhere. When a scene was changed both here and elsewhere, see When a scene changed in two places.

Press Ctrl+Shift+P, or choose File → Go to project…, or Go to project… on the start screen.

At the top, under Recent, are the projects you last worked in, newest first, with the one before this already selected. So Ctrl+Shift+P then Enter takes you back to the project you were just in, and doing it again brings you back.

Below that is every project in your workspace folders. The list goes workspace folder → universe → series → project. Type to search by title or series code. Enter opens the one highlighted.

The project you have open is marked CURRENT. A workspace folder that can’t be reached right now is marked with an orange ⚠, here and on the start screen, and loses it by itself when its drive is back.

Every time the list opens, Leafbind looks through your workspace folders again, so projects you added, moved or renamed since show up by themselves. If you change something in a workspace folder while the list is open, press F5, or click F5 rescan at the bottom of the list, to look again.

Each workspace folder in the list has:

  • New project (the folder with a plus), to create a project there;
  • ✕, to stop using that workspace folder. Leafbind asks first, and says how many projects go with it and which recent projects it will forget, along with the scene and cursor position each one reopens at. Nothing on disk is touched, and you can add the folder again at any time.
  • ▲ ▼, to move the workspace folder up or down in the list. Leafbind remembers your order; nothing on disk moves.

Everything here happens on the rows of Go to project, and the list updates at once.

  • Make a series or a universe. On a workspace folder, the books-with-a-plus icon makes a new series and the planet-with-a-plus a new universe; on a universe, the books-with-a-plus makes a series inside it. Give it a name, and a series an optional short code such as SE. The folder it will be created in is shown as you type. A series shows its code in front of its name.
  • Move a project. On a project, the folder-with-an-arrow icon opens Move to…. Pick a workspace folder, universe or series. Before anything moves, the dialog says where the project will be, how it will be listed, which values it starts or stops inheriting, and, in a series, where it falls in the reading order (▲ and ▼ move it one place). A project you are working in moves too: it is closed and reopened at its new place, on the same scene. A locked project can’t be moved, and its icon says why.
  • Number a series. On a series, the numbered-list icon lists its projects in their current order. Put them in reading order with ▲ and ▼, then confirm, and each gets its place as its number. Only numbers that change are written; a locked project keeps its own. Once every project in the series has a number, the icon is greyed out.
  • Delete an empty series. On a series with no projects, 🗑 deletes its folder after asking. If anything is still in the folder, Leafbind shows what and offers Show in Explorer instead. It only ever deletes an empty series.

Moving a project out of a series keeps its reading order on file, in case it goes back. The series stays, empty, until you delete it.

To see a universe with two series in it before you build your own, create the sample universe, The River Villages, from Tutorials… in the ? menu.

File → Open project folder… (Ctrl+O), or Open project folder… on the start screen, opens a single project without registering a workspace folder. Choose the project’s own folder, the one containing project.md.

A project opened this way is listed under Other recent projects, not under any workspace folder.

If a project is no longer where Leafbind last saw it, the list marks it ⚠️ missing. Choose it for two options: Rescan its workspace folder to find it again, or Dismiss from the list. Dismissing only clears the entry; if the folder comes back, a later scan finds it again.

If a whole workspace folder cannot be reached, it is marked ⚠ unreachable. If you moved it, choose Find it… and point Leafbind at the new location. It is recognised as the same workspace, not added as a second one.