Skip to content

Keep the documents you're working with to hand

A working set is a short list of documents you want within reach, from any of your projects: the scenes of the arc you’re drafting, the earlier chapters it has to agree with, the characters and places it involves. The documents stay where they are. A set only points at them, so deleting a set loses nothing.

There are two kinds:

  • A writing set (the pen) holds what you are writing now. Its documents open for editing wherever they live.
  • A reference set (the eye) holds what you consult while writing. A document from another project opens read-only, so the book you’re writing stays open.

Open the Working sets tab above the tree and click Writing set or Reference set. Click a set’s name to rename it. A set is a small file kept in your workspace folder, in working-sets/, so it syncs and travels with your work.

Use the bookmark button on a row in the tree, the wiki, the project switcher or quick-open (Ctrl+P). It lists your sets with a tick beside each one that holds the document; tick as many as you like. You can also add a whole project, and clicking it in the set opens that project.

Every search fills a set called Search results, with a dashed frame, above your own sets. It isn’t saved anywhere and the next search replaces it; Save as working set… turns it into an ordinary set.

Click it:

  • In a writing set, it opens for editing. If it belongs to another project, Leafbind switches to that project first, so your edits land in its own files and history.
  • In a reference set, it opens read-only in the Reference tab of the bottom panel, below what you’re writing, wherever it comes from. Your scene stays in the editor, and the cursor stays where it was.

The Reference tab shows up to three documents side by side. Opening a fourth closes the oldest, and opening one that is already there opens no second copy. Each has its own ✕. The tab belongs to the project: switch to another and it shows that project’s documents, and when you come back, or restart, yours are there again. A document that can’t be read then, because its project has moved or its drive is offline, keeps its place and says so until you close it.

Nothing in the tab can be changed. To edit a document, select Edit: one from the open project opens in the editor. One from another project shows Edit in … instead, which moves it to your writing set and opens it there, in its own project.

The bottom panel shows and hides with Ctrl+J, and View lists its tabs. A name in the text, or in Stats at the cursor, can open its wiki entry in the tab too: see Go to an entry, or look it up.

Click the window button next to the New buttons to open the reference window: your sets down one side and the document you pick beside them, read-only. Put it on a second screen or beside the editor. While it’s open, documents from your reference sets open there instead of in the Reference tab. A row’s own window button sends that document there, and Open beside moves a document from the Reference tab into it. In the reference window, Open in the editor opens a document of the current project for editing in the main window.

  • Fold a set with the arrow before its name. Folding applies in both windows and is remembered.
  • Reorder by dragging a row by the grip that appears at its left, or with Alt+Up and Alt+Down.
  • Move a document to another set by dragging it there, or with the → button and a set from the list.
  • Take a document out of a set with ✕. The document itself is untouched.
  • Delete a set with the bin on its heading. Leafbind asks first, and the documents it lists are untouched.

A dimmed row marked not available belongs to a project that isn’t in a registered workspace folder right now, or whose drive isn’t connected. It stays in the set and comes back when the project does. not found means its project was read and the document is no longer in it; take it out of the set with ✕.