4Source / settings-profiles-obsidian-plugin

This is a plugin for Obsidian (https://obsidian.md). Allows you to create various global settings profiles. You can sync them between different vaults. To keep all your settings in sync, you'll never have to manually adjust them again for every vault you have or create in the future.
https://forum.obsidian.md/t/settings-profiles-plugin-release/76657
MIT License
52 stars 1 forks source link

[FEAT]: Automatic sync #58

Open 1ku1 opened 2 months ago

1ku1 commented 2 months ago

Description of the unfavorable solution

I always have to remember to run the reload/save command when I make config or UI changes. This is cumbersome and dangerous (if I do some things in one open window (vault) and other changes in another window.

I either have to assign one vault to make changes in and save afterwards, or remember to run the reload command to sync settings before making changing in other vaults (changes that I want to be synced to all).

Describe the feature you would like to have

I want to hear your take on this. How can we solve it?

There are multiple choices I can think of:

Additional context

No response

4Source commented 2 months ago
  • Monitor changes made inside .obsidian folder and sync on changes.

Actually this is made if you have enabled UI update and Profile update you should see if there are unsaved changes but at it turns out it stopped working image

The Icon next to Default should change to different icon if there are not saved changes or not loaded changes.

The auto save is easy to implement but the auto load of the settings is a bit more difficult because to load the changes obsidian needs to be reloaded. This is really unsatisfying if this happens by it self but I can add an setting that let you enable a popup that ask you to reload if a setting changes

1ku1 commented 2 months ago

The auto save is easy to implement but the auto load of the settings is a bit more difficult because to load the changes obsidian needs to be reloaded. This is really unsatisfying if this happens by it self but I can add an setting that let you enable a popup that ask you to reload if a setting changes

That would be great. I want to suggest that this popup should only appear if there is a discrepancy between the saved settings and the local vault settings.