I use a lot of snippets (i.e. my theme only has colors and all other changes I do with snippets, so I can easily customize). But debugging gets annoying when you have to individually turn off and on like 30 snippets. So, I created a plugin that creates 4 status bar buttons that do the following (one button for each):
- Toggle snippets: this toggles all active snippets off and then back on when clicked the second time. It saves the active snippets list, so it only enables snippets you had enabled before the toggle off.
- Toggle plugins: this toggles all active plugins off, except THIS PLUGIN (do so manually) and then back on when desired. If you do manually toggle this off, the list of active plugins and the enabled/disabled state is saved, so you only need to manually toggle this particular plugin, rest will work with one click.
- Toggle color theme: this will toggle your custom theme to default and back.
- Toggle light/dark mode: this works like the Theme Picker plugin, from where I customized the logic. Toggle easily between light and dark.
I’m not interested in making this an official plugin and I don’t guarantee it works in every case, but when I was looking for these (especially one that does the snippets), I saw other people wishing for the functionality, so I thought I would share. I will add others that I have this same folder, so that’s why it’s not specific to this plugin, these are all small tweaks so I can get things done the way I like. If someone else finds them useful: great.
Also, if someone else wants to make any of these an official plugin and maintain it: go ahead, I’ll only maintain so far that it works with my specific configuration. I don’t promise that this doesn’t break with some other plugin.
With all the caveats, you can find the plugin here: GitHub - RankkaApina/obsidian-plugins: Personal obsidian plugins