Notes/client/src/doc_notes/launchbar_script_launcher.html
2024-05-10 23:16:07 +03: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>