trilium/src/public/app/doc_notes/launchbar_script_launcher.html
2022-12-01 16:22:04 +01:00

10 lines
378 B
HTML

<p>Please define the target script note in the promoted attributes. This script will be executed immediately upon clicking the launchbar icon.</p>
<p>Launchbar displays the title / icon from the shortcut which does not necessarily mirrors those of the target script note.</p>
<h4>Example script</h4>
<pre>
alert("Current note is " + api.getActiveContextNote().title);
</pre>