With Pro, the app keeps versions of your text files on this device: as you save, and each time you compile. You can see what changed since any of them and go back. The history never leaves the device: it is not sent to the compile server and is left out of device backups.
When a version is kept
- Saved: as you write. Saves within five minutes of the last kept version of a file are folded into one.
- Compiled: every text file of the project, at each compile.
- Opened: when you open the project.
- Changed outside the app: when a file changes outside the app (for example in the Files app or iCloud Drive).
- Restored: when you restore a version.
A version that is the same as the last one is not kept again. The history covers the files the editor opens (.tex, .bib, .sty, .cls and the like) up to 4 MB each; figures and PDFs are not kept.
See a file's history
- Open the history of a file:
- Tools › History of This File, or touch and hold the file in the files part.
- History of This File under the list of files, for the selected file.
- The list shows each version with its time and why it was kept.
- Choose one to see What changed from this version to the file now.
Restore a version
Press Restore This Version. What the file holds now is kept in the history first, so you can go back to it later.
An open file is changed as an edit, so ⌘Z can undo it too.
Settings
In Settings › Version History:
- Keep Version History: on by default. Turned off, no new versions are kept; the old ones stay until their time is up.
- Keep For: 7, 30 (the default) or 90 days.
- Size Limit: 100 MB, 500 MB (the default) or 2 GB, for all projects together. Past the time or the size, the oldest versions go first.
- Space Used, and Delete All History, which cannot be undone and leaves your files as they are.
Plans
Keeping new versions is a Pro feature (the trial counts). Versions already kept can be seen and restored on any plan.
Deleting a project in the app deletes its history too. Removing a folder opened in place keeps its history for 30 days. In a Git project, the history still covers what you have not synced yet.