File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Startup-Scripts
3
+ description : A guide on how to use startup-scripts.
4
+ ---
5
+
6
+ JS-Engine supports startup-scripts, similar to the CSS-snippets from Core-Obsidian.
7
+
8
+ You can select the script-file you want to use as startup-scripts and JS-Engine will run them for you when never Obsidian starts up.
9
+
10
+ ::: note
11
+ Different from Core-Obsidian, JS-Engine startup-scripts can not be stored inside the ` .obsidian/ ` folder.
12
+ They need to be somewhere inside your vault.
13
+ :::
14
+
15
+ ## Configuring Startup-Scripts
16
+
17
+ You can configure which files you want to have run from JS-Engines settings tab.
18
+
19
+ ## Global Variables
20
+
21
+ JS-Engine runs the scripts in the same context as all other code-blocks.
22
+ So the available global variable are the same and can be found [ here] ( /obsidian-js-engine-plugin-docs/api/classes/api/ ) .
You can’t perform that action at this time.
0 commit comments