Snippet Toggles

by Markos Narinian
5
4
3
2
1
Score: 50/100

Description

Toggle Obsidian CSS snippets from the command palette instead of going into Settings. One command per snippet plus a quick picker, enable-all and disable-all.

Reviews

No reviews yet.

Stats

0
stars
142
downloads
0
forks
56
days
55
days
55
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
9
commits

Latest Version

2 months ago

Changelog

Renamed the plugin to Snippet Master while preserving the registered internal ID snippet-toggles.

Release assets: main.js and manifest.json.

No functional changes.

README file from

Github

Snippet 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):

  1. Install the BRAT community plugin.
  2. In BRAT settings, choose Add Beta plugin and paste this repo's URL.
  3. Enable Snippet Master under Settings → Community plugins.

Manual:

  1. Download manifest.json and main.js from the latest release (or build from source).
  2. Copy them into <vault>/.obsidian/plugins/snippet-toggles/.
  3. Enable Snippet Master under Settings → Community plugins.

Usage

  1. Open the command palette (Cmd/Ctrl + P).
  2. Run Snippet Master: Toggle snippet… and pick a snippet — or run Toggle snippet: <name> directly.
  3. 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