haydenull / logseq-plugin-git

A git plugin for logseq
MIT License
120 stars 24 forks source link

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

Open preslavrachev opened 2 years ago

preslavrachev commented 2 years ago

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?

goldan commented 2 years ago

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.

k2s commented 1 year ago

this is addressed in https://github.com/haydenull/logseq-plugin-git/pull/39