# File History and Restore

### Files with Unsaved Changes

Tabs show a dot (•) next to filenames with unsaved changes. The dot disappears after:

* Manual save (Cmd+S)
* Autosave (configurable interval)

### File History (Cmd+Y)

Nimbalyst automatically saves snapshots of your documents, providing version control built into the editor.

Snapshots saved periodically

* Manual snapshot on Cmd+S
* Compressed storage in database
* No external tools needed

<div align="left"><figure><img src="/files/fO0sJGHOkPyM5BDykSsU" alt="" width="218"><figcaption></figcaption></figure></div>

#### Viewing History

<figure><img src="/files/bv0t0VbvdHN66e3x0tko" alt=""><figcaption></figcaption></figure>

* Cmd+Y opens history panel
* View > Document History
* List of all snapshots
* Timestamps for each version
* Preview snapshot content
* Restore history
* Current version becomes new snapshot. History preserved. Can undo restoration if needed.

#### Comparing snapshots

Just clicking on a snapshot will compare it to the previous checkpoint

Click on one snapshot and then command-click on the other to compare it to a different snapshot

<figure><img src="/files/Hb4hR8iuVpdJw1N1VeLC" alt=""><figcaption></figcaption></figure>

* Study the differences then choose the snapshot you desire.

#### **Deleting Snapshots:**

* Select snapshot and then Click delete icon

### Restoring History

* Select a snapshot and you can restore that version

Stored in PGLite database at `~/Library/Application Support/@Nimbalyst/electron/pglite-db/`<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nimbalyst.com/file-management/file-history-and-restore.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
