michal-h21 / vimwiki-sync

Automaticaly synchronize vimwiki at startup and exit using git
98 stars 25 forks source link

It pushes but doesnt pull #10

Open hennio opened 3 years ago

hennio commented 3 years ago

Hi, thanks for the great work!

I have vimwiki on my linux-machine and on my macbook. To sync I use Gitlab.

When I manually push and pull it works ok, but when I use your plugin, it only pushes.

I start vimwiki within vim: ww

michal-h21 commented 3 years ago

That's strange, as both pushing and pulling use the same mechanism for executing Git. Do you see sync done when you use the :messages command after Vimwiki start?

ramyamounir commented 3 years ago

I have the same problem. When i go to the vimwiki index file with ww or :e ~/notes/index.wiki it doesn't pull, but if I just exit vim and try vim ~/notes/index.wiki it pulls and asks me if I want to load the modified file. It is very strange, any idea why this is happening? Pushing works great though! Thanks!

michal-h21 commented 3 years ago

@ramyamounir thanks for your report, it seems that pulling doesn't work when you open VimWiki file using :e. I've added new auto command, it uses the BufEnter event, and it seems to work also in this case.

ramyamounir commented 3 years ago

@michal-h21 Works great, Thank you for the quick fix!

michal-h21 commented 3 years ago

@ramyamounir it was thanks to your description, as it helped me to find the situation when pulling doesn't work.