Keep selected notes always expanded in the Trilium note tree.
Trilium collapses note trees when you restart or navigate away. This addon lets you pin specific notes open permanently with the Always Expanded checkbox in the right pane header. Whenever the branch structure changes, all marked notes are automatically re-expanded.
- A right-pane panel titled Always Expanded shows a checkbox in its header for the current note
- Checking it adds the configured label (default
#alwaysExpanded) to the note; unchecking removes it - On startup, a
runOnBranchChangerelation is set on the root note pointing to a backend script - That backend script finds every note carrying the configured label and ensures all its parent branches are expanded
The addon's settings (in the Trilium Addon Manager detail page) expose one option:
- Label Name — the note label used to mark a note as always expanded (default
alwaysExpanded). Both the header checkbox and the backend pin script read this same setting, so changing it keeps them in sync.
Import expanded@beatlink.zip via Trilium Addon Manager or manually via the Trilium import dialog.
- Navigate to any note you want to keep expanded
- Open the right pane and check the box in the Always Expanded panel header
- The note's branch will stay expanded after restarts and navigation