Completely refactors sync on save. This should greatly increase battery performance (I hope).
Fixes #100. (don't need to mention). It should 100% now not run during a sync. Doesn't implement a queue though.
More performance as it is relying on Obsidian's file modified event instead of checking the active file every second. Removes the need for an interval loop entirely.
Even more performance (I'm hoping) by getting a list of the config directory files and comparing their modification time to the last synced every 30 seconds. If any file is modified more recently, then it will break out the loop and call a sync. (Reduces having to loop through the whole list since only 1 changed file needs to be found). This should be more performant than the previous method of comparing modification times on the remote. Correct me if I'm wrong.
No longer requires a restart to enable/disable the feature.
Should note that .trash won't be detected by Sync on Save. Will make an issue for this.
Completely refactors sync on save. This should greatly increase battery performance (I hope).
Should note that .trash won't be detected by Sync on Save. Will make an issue for this.
Requires lang pull request.