Run scripts in Obsidian. Desktop only.
Install Scropt from Community plugins, or copy main.js and manifest.json into <vault>/.obsidian/plugins/scropt/ and enable it in Settings → Community plugins.
A run button appears in the top-right corner of every bash block. Click it to run the command; click again to stop it. Stop terminates the command and its child processes. Output appears below the block.
```bash
words=("to" "kto" "tutaj" "jest" "synem" "kogo?")
i=0
for word in "${words[@]}"; do
printf "%*s%s\n" "$((i * 2))" "" "$word"
((i++))
sleep 0.3
done
```
make build # builds the plugin
make deploy VAULT=/path/to/vault # copies the built plugin to `VAULT/.obsidian/plugins/scropt/`
Scropt executes arbitrary shell commands taken from your notes. There is no confirmation dialog and no sandbox. Only run commands you understand and trust. Commands run with Obsidian's permissions.
This repository is the source of truth and is mirrored to GitHub using Codeberg's push mirror. GitHub releases are used for Obsidian distribution.
MIT. See LICENSE.
Bundles ansi-regex, MIT © Sindre Sorhus, and tree-kill, MIT © Peter Krumins.