mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 01:59:04 +01:00
454 B
454 B
Bulk actions
Execute script
For more complex scenarios, it is possible to type in a JavaScript expression in order to apply the necessary changes.
To apply a suffix (- suffix in this example), to the note title:
note.title = note.title + " - suffix";
To alter attributes of a note in a bulk action, such as setting the #shareAlias label to the title of the note:
note.setLabel("shareAlias", note.title)