2022-12-22 19:02:41 +01:00
|
|
|
<p>Script launcher can execute a script (code note) connected via <code>~script</code> relation.</p>
|
2022-08-08 23:13:31 +02:00
|
|
|
|
2022-12-22 19:02:41 +01:00
|
|
|
<ol>
|
|
|
|
<li><code>script</code> - relation to the script note which should be executed upon launcher activation</li>
|
2023-05-15 10:12:43 -04:00
|
|
|
<li><code>keyboardShortcut</code> - optional, pressing the keyboard shortcut will activate the launcher</li>
|
2022-12-22 19:02:41 +01:00
|
|
|
</ol>
|
2022-11-27 23:43:25 +01:00
|
|
|
|
|
|
|
<h4>Example script</h4>
|
|
|
|
|
|
|
|
<pre>
|
2023-01-05 15:23:22 +01:00
|
|
|
api.showMessage("Current note is " + api.getActiveContextNote().title);
|
2022-11-27 23:43:25 +01:00
|
|
|
</pre>
|