mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08: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)