Logo Trilium Rocks!

Events

Global Events#

This attribute is called #run and it can have any of the following values:

  • backendStartup - executes on backend upon startup.
  • hourly - executes once an hour on backend.
  • daily - executes once a day on backend.

Entity Events#

These events are triggered by certain relations to other notes. Meaning that the script is triggered only if the note has this script attached to it through relations (or it can inherit it).

  • runOnNoteCreation - executes when note is created on backend.
  • runOnNoteTitleChange - executes when note title is changed (includes note creation as well).
  • runOnNoteContentChange - executes when note content is changed (includes note creation as well).
  • runOnNoteChange - executes when note is changed (includes note creation as well).
  • runOnNoteDeletion - executes when note is being deleted.
  • runOnBranchCreation - executes when a branch is created. Branch is a link between parent note and child note and is created e.g. when cloning or moving note.
  • runOnBranchDeletion - executes when a branch is delete. Branch is a link between parent note and child note and is deleted e.g. when moving note (old branch/link is deleted).
  • runOnChildNoteCreation - executes when new note is created under this note.
  • runOnAttributeCreation - executes when new attribute is created under this note.
  • runOnAttributeChange - executes when attribute is changed under this note.