Divide & Conquer

by pseudometa
5
4
3
2
1
Score: 55/100

Description

Category: Productivity Tools

The Divide & Conquer plugin streamlines the debugging process in Obsidian by enabling bulk management of plugins and CSS snippets. It facilitates efficient problem-solving using the 'bisecting' method, where half of the plugins are disabled at a time to quickly identify potential culprits behind performance issues or bugs. The plugin offers commands to reset, restore, bisect, un-bisect, and re-bisect active plugins or snippets, allowing users to methodically narrow down problems. Additionally, regex-enabled settings help exclude specific plugins or snippets based on keywords, authors, or descriptions, ensuring a more tailored debugging experience.

Reviews

No reviews yet.

Stats

86
stars
8,273
downloads
8
forks
1,553
days
15
days
479
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
26
total issues
8
open issues
18
closed issues
2
commits

README file from

Github

Archival Notice

This plugin is archived, please use the maintained fork by mikedidomizio.

The fork also replaces the plugin in the Obsidian community store.


⚔️ Divide & Conquer

An Obsidian plugin that provides commands for bulk enabling/disabling of plugins and CSS Snippets. This allows you to quickly find which plugins are causing bugs or performance problems. DAC Snippet Demo

How this helps with Debugging

You have a problem with Obsidian and have confirmed that the issue goes away when enabling safe mode. Now, you have to narrow down which plugin misbehaves. The most efficient method for doing so is called "bisecting", meaning that you disable half of the plugins, and depending on whether the issue still occurs or not, you can rule out one half of plugins.

Even though that process is the quickest method of finding the culprit-plugin, it is still quite cumbersome for power users who have 40, 50 or more plugins. Divide & Conquer provides some useful commands for bulk disabling/enabling of plugins, to make the power user's life easier.

Commands Added

For either Plugin/Snippet:

  • Reset - save the current state as the 'original state' (level 1)
  • Restore - return to the original state*
  • Bisect - Disable half of the active items, or if all are active (you're at 'level 0') return to the original state (level 1)
  • Un-Bisect - Undo the last bisection, or enable all plugins if in the original state
  • Re-Bisect - Undo the last bisection, then disable the other half

* After Resetting, DAC won't enable any plugins that you disable manually. Restoring only enables plugins that DAC disabled, and disables any that were already disabled when you last reset

(Note that to be able to fulfill its duty, this plugin will never disable itself. The Hot Reload Plugin will also never be disabled, to avoid interference for developers.)

Settings

The plugin/snippet exclusion is regex enabled, and you can exclude by author or description as well (e.g. 'command palette' to exclude any plugins that modify the command palette) DAC Settings Demo

Installation

The plugin is available via Obsidian's Community Plugin Browser: SettingsCommunity PluginsBrowse → Search for "Divide & Conquer"

Bugs

  • Occasionally, for one reason or another (like updating plugins) a refresh won't be triggered by obsidian and the buttons may dissappear. Clicking on the community plugins tab (or appearance if you're in snippets) triggers the refresh and the buttons reappear. You can also close and reoppen settings.

Credits

Originally created by chrisgrieser aka pseudometa, now maintained by geoffreysflaminglasersword.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.