## When another program changes the file

A file you have open can change behind your back: you saved it in Excel too, a script added rows, or it synced from another computer. Trusty CSV notices, and asks; it never replaces your text on its own.

- **With nothing unsaved in the tab**: **Load New Version** shows the file as it is now. **Keep This Version** leaves the tab as it is; the tab then counts as unsaved, since it differs from the file.
- **With unsaved changes**: **Keep My Changes** is the default. **Load New Version** puts the file’s text in their place.

To see what changed before choosing, click **Compare**: the differences are marked in the tab, and the [Changes panel](/content/help/files/comparing/index.html) asks the same question at its foot.

Loading a new version is one step to undo with `Ctrl` + `Z``⌘`  `Z`, and only what changed is replaced: when a program only added rows at the end, the cursor and the view stay where they were. Both versions are also kept in **Previous Versions** (below).

Only the tab you are looking at asks. A tab in the background asks when you show it. Once you keep a version away, you aren’t asked about that version again.

If you save a file that changed on disk since you opened it, you are asked first: **Save Over It** (the version on disk is kept in Previous Versions), **Load New Version**, or **Cancel**.

If the file is deleted or moved, the tab keeps its text and shows it as unsaved, with a message. Saving writes the file again where it was.

In the browser, Trusty CSV can check a file only while the page may read it: after a reload, Chrome asks for permission again first. The desktop app always can.

## Previous versions

File › Previous Versions… lists the versions Trusty CSV has kept of the file of the tab, newest first. A version is kept:

- each time you save, as it was saved;
- before your first save over a file, the file as it was;
- when another program changes the file, and, if you load that version, the text the tab had.

Choose one to open it in a new tab, or click its **Compare** button to [compare it](/content/help/files/comparing/index.html) with the tab. A version opened in a tab has no file of its own, so it can’t write over anything: copy from it what you need, or save it with File › Save As….

The newest 30 versions of each file are kept, for 30 days, in 512 MB at most for all files together; the newest version of a file is always kept. Files of more than 256 MB have no previous versions.

## Tabs closed without saving

**Don’t Save**, when you close a tab with unsaved changes, doesn’t throw them away for good. File › Recover Unsaved Changes… lists the tabs you closed without saving, newest first; choose one to open its text in a new tab.

File › Revert File, which reloads the file and drops the tab’s unsaved changes, keeps them in Previous Versions too, and can be undone.

All of this stays on your computer: see [Privacy and storage](/content/help/reference/privacy-and-storage/index.html).
