logseq-plugin-git icon indicating copy to clipboard operation
logseq-plugin-git copied to clipboard

Check for remote repo updates and prompt the user to pull them

Open preslavrachev opened this issue 2 years ago • 2 comments

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?

preslavrachev avatar Jul 29 '22 07:07 preslavrachev

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.

goldan avatar Oct 11 '22 04:10 goldan

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

k2s avatar Aug 09 '23 13:08 k2s