> For the complete documentation index, see [llms.txt](https://docs.nimbalyst.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nimbalyst.com/file-management/file-history-and-restore.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
