Projects
Versioning and recovery
Ligamen protects your work in three separate ways. While you edit, it writes recovery copies of the project, so that a crash or a power cut costs you minutes and not hours. When you save, it can keep the file that the save replaces. And for the application itself, it keeps earlier builds, so that if an update behaves badly you can go back to the version that worked. This article explains each of them, where the settings are, and what is not covered, so you know when to rely on version control or a synced folder.
Recovery copies#
While the project has unsaved changes, a timer writes a recovery copy of it. The copy is a separate .ligamen file in the settings folder of the editor, next to settings.json, never next to your project, so it cannot be mistaken for the real save. Along with it Ligamen writes a small sidecar with the project name, its path, the time and the version of the editor, which is how a copy of a project that was never saved can still be listed by name. Copies older than 30 days are removed automatically.
Settings → General has an Autosave card. Save a recovery copy while editing turns the timer on, and Every sets the interval in minutes, from 10 seconds up to an hour. The default is 2 minutes. A normal Save always clears the recovery copy of that project, since there is nothing left to recover.
Getting work back#
There are two ways back. If you open a .ligamen file and a recovery copy of it exists that is newer than the file on disk, which usually means that the editor quit before you saved, Ligamen offers to recover that copy instead. Accept, and the project keeps its own path and name, is marked as changed, and the next Save writes it back to the usual place. Decline, and the stale copy is deleted, and Ligamen does not ask again.
The second way is for copies that nothing would bring back by itself, such as an untitled project or one you never opened again. At an interactive start Ligamen lists them in the Recover unsaved work? window. Open loads the selected copy as an unsaved document under its old name and path, Discard deletes it together with its sidecar, and Later keeps everything and asks again at the next start. Whatever you choose for one copy does not affect the others.
Keeping the previous file#
In the same Autosave card, Keep previous version (.bak) on Save makes every Save copy the file it is about to replace next to the project, as <name>.ligamen.bak. It is one step back, not a history: the next save overwrites the earlier .bak. It is useful when a save goes wrong, for example after you deleted bones that you still needed, and you noticed only after you had saved. To use it, rename the .bak file to .ligamen and open it.
For a real history of the project, use a version control system or a synced folder that keeps old versions of files. A .ligamen file is a single file, so both work without any setup.
Kept application versions#
Every time an update is installed, Ligamen keeps a copy of the build that was running. Settings → Updates has Keep previous versions, from 1 to 10 with a default of 3, and the oldest extra copies are removed. The same page decides the update channel and whether the editor checks for updates by itself, at most once a day.
Help → Versions… opens the list. Each row shows the version, the project format that this build reads, the date it was kept and a status: Current, Pinned or Newer. Below the list is a line that says which version is running and how many earlier ones are kept. When nothing was kept yet, the list is empty and the window says so.
Rolling back#
Select an older version and click Roll Back. Ligamen pins that version, which means that updates are still shown but never installed by themselves, and starts it. Your project is not touched, and the window does not quit the running editor, so save your work and close the newer one when you are ready. A version that is not older than the running one cannot be selected.
If the open project uses a newer format than the older build can read, Ligamen warns you before it goes ahead. Read the warning: a project saved by a newer editor may not open in the older one. Unpin clears the pin, and updates install normally again.