-
"New Task" launcher button
This documentation is outdated, as it refers to using the deprecated addButtonToToolbar API which will only create widgets for desktop.
Instead, a custom launcher widget can be created using the Launch Bar Widgets documentation.
In this example we are going to extend the functionality of Task Manager showcase (which comes by default with Trilium) by adding a button in the Launch Bar () to create a new task automatically and open it.
Copy-paste the following script:
-
Downloading responses from Google Forms
This tutorial showcases a basic integration with Google Forms, where we are able to download the responses of a form using the “Link to Sheets" functionality.
Note that the link will be publicly accessible to everyone (however the link is in a hard-to-guess format such as https://docs.google.com/spreadsheets/d/e/2PACX-1vTA8NU2_eZFhc8TFadCZPreBfvP7un8IHd6J0SchrLLw3ueGmntNZjwRmsH2ZRcp1pJYDAzMz1FmFaj/pub?output=csv). Make sure you are not accidentally publishing sensitive information.
-
Using promoted attributes to configure scripts
A good use case of promoted attributes is to easily define the various parameters a script might need, for example an input and output note if it's processing data, or a checkbox to define a particular change in behavior for the script.
Instead of asking the user to modify a boolean value in the script, it's much more intuitive to use a checkbox for it as a promoted attribute.
To do so, first define the promoted attribute:
Then use it: