Skip to content

Commit

Permalink
Merge pull request #120 from SiriusXT/main
Browse files Browse the repository at this point in the history
Note Revision Snapshots Limit
  • Loading branch information
Alumniminium authored Oct 21, 2024
2 parents ac40b4d + 63f348a commit 08f8b64
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions Wiki/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Labels are also searchable, enhancing note retrieval.
### Common Labels for Advanced Configuration

- **`disableVersioning`**: Disables automatic versioning, ideal for large, unimportant notes like script libraries
- **`versioningLimit`**: Used to limit the number of revisions for a single note
- **`calendarRoot`**: Marks the note as the root for [day notes](day-notes.md). Only one note should carry this label
- **`archived`**: Hides notes from default search results and dialogs
- **`excludeFromExport`**: Excludes notes and their subtrees from export operations
Expand Down
Binary file modified Wiki/images/note-revisions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion Wiki/note-revisions.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# Note revisions
# Note revisions
Trilium supports seamless versioning of notes by storing snapshots ("revisions") of notes at regular intervals.

## Note Revisions Snapshot Interval
Time interval of taking note snapshot is configurable in the Options -> Other dialog. This provides a tradeoff between more revisions and more data to store.

To turn off note versioning for a particular note (or subtree), add `disableVersioning` [label](attributes.md) to the note.

## Note Revision Snapshots Limit
The limit on the number of note snapshots can be configured in the Options -> Other dialog.
The note revision snapshot number limit refers to the maximum number of revisions that can be saved for each note. Where -1 means no limit, 0 means delete all revisions. You can set the maximum revisions for a single note through the `versioningLimit=X` label.

The note limit will not take effect immediately; it will only apply when the note is modified.

You can click the **Erase excess revision snapshots now** button to apply the changes immediately.

Note revisions can be accessed through the button on the right of ribbon toolbar.

![](images/note-revisions.png)

0 comments on commit 08f8b64

Please sign in to comment.