logseq-plugin-git
logseq-plugin-git copied to clipboard
Check for remote repo updates and prompt the user to pull them
I was wonder, whether it would be difficult to implement occasional checks for remote changes and prompting the user to pull them right inside the plugin. I frequently switch machines. To sync my changes, I use a private GitHub repository. The problem occurs when I forget that I have pushed some notes already. I only discover that when I do another push and it fails (often with a merge conflict).
It would be much smoother, if the plugin checked that for me, and occasionally reminded me to perform a pull on the new machine, before adding new notes.
Is that feasible?
That would be really helpful! Is that's what autoCheckSynced option is supposed to enable? If so, it doesn't work for me: when a new commit is added to Github, Logseq doesn't show any update.
this is addressed in https://github.com/haydenull/logseq-plugin-git/pull/39
- plugin toolbar icon now contains 2 collored
- configuration options are not decided yet, for now the status is updated on page navigation and on window visibility change