Divide and Conquer

by mikedidomizio
5
4
3
2
1
Score: 37/100

Description

Commands for bulk enabling/disabling of plugins. Useful for debugging when you have many plugins.

Reviews

No reviews yet.

Stats

stars
9,962
downloads
0
forks
61
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Divide and Conquer

Total Downloads Latest Release Obsidian Plugin Audit Changelog

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:

  • Enable All - enable every plugin/snippet
  • Bisect Start - begin the bisect process by enabling one half and disabling the other
  • Bisect Yes - issue is still present with the currently enabled half; keep narrowing this side
  • Bisect No - issue is not present with the currently enabled half; eliminate that side and keep narrowing the remaining candidates

When only one possibility remains, DAC shows: The plugin possibly causing issues is: ... (or CSS snippet in snippet mode), then shows Start again.

(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".

Development

Please refer to the Contributing Guide if you want to contribute to the project or set up a development environment.

Bugs

  • Occasionally, for one reason or another (like updating plugins) a refresh won't be triggered by obsidian and the buttons may disappear. 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