mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
13 lines
450 B
HTML
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>
|