Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Commit 6b63c0e

Browse files
committed
Note Revision Snapshots Limit
1 parent ac40b4d commit 6b63c0e

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Wiki/attributes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Labels are also searchable, enhancing note retrieval.
2222
### Common Labels for Advanced Configuration
2323

2424
- **`disableVersioning`**: Disables automatic versioning, ideal for large, unimportant notes like script libraries
25+
- **`versioningLimit`**: Used to limit the number of individual notes.
2526
- **`calendarRoot`**: Marks the note as the root for [day notes](day-notes.md). Only one note should carry this label
2627
- **`archived`**: Hides notes from default search results and dialogs
2728
- **`excludeFromExport`**: Excludes notes and their subtrees from export operations

Wiki/images/note-revisions.png

29 KB
Loading

Wiki/note-revisions.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
# Note revisions
1+
# Note revisions
22
Trilium supports seamless versioning of notes by storing snapshots ("revisions") of notes at regular intervals.
33

4+
## Note Revisions Snapshot Interval
45
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.
56

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

9+
## Note Revision Snapshots Limit
10+
The limit on the number of note snapshots can be configured in the Options -> Other dialog.
11+
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.
12+
13+
The note limit will not take effect immediately; it will only apply when the note is modified.
14+
15+
You can click the **Erase excess revision snapshots now** button to apply the changes immediately.
16+
817
Note revisions can be accessed through the button on the right of ribbon toolbar.
918

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

0 commit comments

Comments
 (0)