README file from
GithubSnippet Master
Toggle Obsidian CSS snippets from the command palette — no more digging through Settings → Appearance.
Commands
| Command | What it does |
|---|---|
Toggle snippet… |
Fuzzy picker over all snippets (✓ = enabled). Select one to toggle it. |
Toggle snippet: <name> |
Dedicated command per snippet — assign a hotkey to the ones you flip often. |
Enable all snippets |
Turn every snippet on. |
Disable all snippets |
Turn every snippet off. |
Reload snippet list |
Rescan .obsidian/snippets/ after adding or removing files. |
The per-snippet commands stay in sync automatically when snippet files are created, deleted, or renamed.
Installation
Via BRAT (recommended for now):
- Install the BRAT community plugin.
- In BRAT settings, choose Add Beta plugin and paste this repo's URL.
- Enable Snippet Master under Settings → Community plugins.
Manual:
- Download
manifest.jsonandmain.jsfrom the latest release (or build from source). - Copy them into
<vault>/.obsidian/plugins/snippet-toggles/. - Enable Snippet Master under Settings → Community plugins.
Usage
- Open the command palette (
Cmd/Ctrl + P). - Run
Snippet Master: Toggle snippet…and pick a snippet — or runToggle snippet: <name>directly. - Optional: go to Settings → Hotkeys and bind your most-used
Toggle snippet: <name>commands to hotkeys.
Development
npm install
npm run dev # watch build
npm run build # typecheck + production build
License
MIT