Closed akademic closed 3 years ago
Thanks for the report. I've added code that tests if the opened file is placed in a directory known to Vimwiki. Does it fix your issue?
Thanks for fast reaction. But this fix does not work for me.
What I did:
mkdir /tmp/test && cd /tmp/test && git init .
touch README.md && git add . & git commit -m 'initial commit'
vim README.md
, edit and savegit log
shows new autocommit messagesAh, it seems that Vimwiki creates temporary wiki in this case and adds it to the list of wiki paths, so the new code still thinks that it is normal Vimwiki directory. I've added test for temporary wikis, I hope it fixes this issue.
Now it works perfectly. Thanx!
Hi. I have setup vim-zettel and vimwiki-sync. And it works.
But after a while I realized that I have autocommits in my working project. Not in zettelkasten directory.
After some investigation I have realized that function
vimwiki#vars#get_wikilocal('path')
always returns$HOME/vimwiki
path.This path is from
default_wiki_settings
variable in vimwiki plugin. And this path does not exist.So when vimwiki-sync does
pushd
it does nothing and makes commit in current directory. Which is directory of my project.Also I have realized that
git_action
executes on every save of every file I am editing.Environment: I have Linux Debian 5.9.11-1 and VIM 8.2