Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Device Specific Plugin Settings #42

Open
Servinjesus1 opened this issue Feb 16, 2024 · 0 comments
Open

[FR] Device Specific Plugin Settings #42

Servinjesus1 opened this issue Feb 16, 2024 · 0 comments

Comments

@Servinjesus1
Copy link

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 Servinjesus1 changed the title [FR] Device Specific Settings [FR] Device Specific Plugin Settings Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant