Example: Event trackerΒΆ

See trilium-alchemy/example/event-tracker for a fully featured showcase of both declarative and imperative approaches. An installation script is provided.

This provides a complete example of using declarative notes to design a note tree for event tracking with Trilium.

First, clone the repo and navigate to it:

git clone https://github.com/mm21/trilium-alchemy.git
cd trilium-alchemy/example/event-tracker

Then run its __main__.py to install it:

python -m event_tracker 

A note must be designated with label #eventTrackerRoot to be the hierarchy root. Alternatively, you can pass --root to install it to your root note.

Warning

Any existing children of the destination note will be deleted, so you should install it into an empty subtree. To be safe, if the installation script detects existing children it requires that you pass --clobber to delete them.

This example is recommended to be installed in a non-production Trilium instance as it creates many notes, including a theme.