obsidian-plugin-groups icon indicating copy to clipboard operation
obsidian-plugin-groups copied to clipboard

[FR] Device Specific Plugin Settings

Open Servinjesus1 opened this issue 1 year ago • 0 comments

Love this plugin! It's essentially a Better Plugin Manager adding load order and device support.

Given that, it might be an awesome solution to the problem of intra-device settings incompatibility, i.e. plugins you need different settings for different devices. Think like git, pandoc, etc, which need different paths, and style settings which may differ from Mac to Windows or Laptop to Desktop, etc.

What if for every device, we had the ability to select what settings were unique and this plugin patched each settings.json as it loaded the plugin on a certain device. I imagine it would be hard to implement a ui that mimics any other plugin's settings ui, so instead maybe users could select settings by some handle, i.e. plugin.category.subcategory.setting, and whatever type .setting is, this plugin just knows to save the current version of that setting and patch it in next time that plugin loads on that device. (Maybe implement something like fuzzy matching that searches for the title of each setting/section/category as well as the actual .setting selector which is shown in dark gray to the right of the actual setting title in the search list). Then, users can update a plugin setting on their device and select an 'update' button for that setting in this plugin to save any changes (maybe the button turns red if this plugin senses a difference, IDK). Granted, I'm assuming how Obsidian works is plugin settings files are read on initialization, maybe there's a hook you can implement to capture it and then patch it before the plugin actually gets it like you've done with the actual loading of the plugin. I'm no expert in plugins, though.

My current solution to this is to have completely separate .obsidian directories for each device, which is cumbersome to maintain and means the not-so-small .obsidian directory is 99.9% duplicated for every device of mine. This would be an incredible improvement over that!

Servinjesus1 avatar Feb 16 '24 20:02 Servinjesus1