trilium/src/public/app/doc_notes/en/launchbar_script_launcher.html
2024-11-26 09:08:39 +08: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>keyboardShortcut</code> - optional, pressing the keyboard shortcut will activate the launcher</li>
</ol>
<h4>Example script</h4>
<pre>
api.showMessage("Current note is " + api.getActiveContextNote().title);
</pre>