1
0
silverbullet/website/🔌 Core/Plug Management.md

12 lines
895 B
Markdown
Raw Normal View History

2023-08-29 19:17:29 +00:00
Plug management using the [[PLUGS]] file is also implemented in the [[🔌 Editor]] plug.
2022-11-25 15:01:05 +00:00
The optional [[PLUGS]] file is only processed when running the {[Plugs: Update]} command, in which case it will fetch all the listed plugs and copy them into the (hidden) `_plug/` folder in the users space. SilverBullet loads these files on boot (or on demand after running the {[Plugs: Update]} command).
2022-11-25 15:01:05 +00:00
You can also use the {[Plugs: Add]} to add a plug, which will automatically create a [[PLUGS]] if it does not yet exist.
2023-08-29 19:17:29 +00:00
The [[🔌 Editor]] plug has support for the following URI prefixes for plugs:
2022-11-25 15:01:05 +00:00
* `https:` loading plugs via HTTPS, e.g. `[https://](https://raw.githubusercontent.com/silverbulletmd/silverbullet-github/main/github.plug.json)`
* `github:org/repo/file.plug.json` internally rewritten to a `https` url as above.
* `ghr:org/repo/version` to fetch a plug from a Github release