trilium/src/public/app/doc_notes/launchbar_script_launcher.html
2023-01-05 15:23:22 +01:00

13 lines
450 B
HTML

<p>Script launcher can execute a script (code note) connected via <code>~script</code> relation.</p>
<ol>
<li><code>script</code> - relation to the script note which should be executed upon launcher activation</li>
<li><code>keyboardLauncher</code> - optional, pressing the keyboard launcher will activate the launcher</li>
</ol>
<h4>Example script</h4>
<pre>
api.showMessage("Current note is " + api.getActiveContextNote().title);
</pre>