Open derekthecool opened 1 year ago
Hi @derekthecool,
I cannot reproduce on Linux, will have a look on Windows.
The vimwiki#vars#get_wikilocal
is defined in autoload/vimwiki/vars.vim
.
You can troubleshoot the interesting (wiki local) variable (path) running the command :VimwikiVar path
.
Do you set the configuration variable before loading vimwiki? It seems that your configuration is the default one (~/vimwiki), so vimwiki may not have taken into account your config at loading, which is expected if you configure it too late.
Try putting it at the top of your vimrc
Prior to submitting a new issue make sure to complete these steps:
.vimrc
I'm using neovim so my configuration is in lua. Setup is very basic. There are no issues with this same config running Ubuntu 22.04, and Manjaro.[X] Provide a detailed description of the problem including steps to reproduce the issue. There are two ways this fails.
:VimwikiMakeDiaryNote
And:VimwikiMakeDiaryNote 2
both create a new directory in my wiki root with the pathdiary\2023-03-22.md
.I would expect the first command (without any number arg) to use my first diary named personal and create diary note at the path
personal\diary
. Then I would have expected the second command that uses the number 2 to create a diary entry in the directorywork\diary
.VimwikiMakeDiaryNote 1
. This one is the most messed up and creates the diary file in my home directory~\vimwiki\diary\2023-03-22.wiki
creating a new directory with a seemingly default name of vimwiki and another item of notice is that it uses the.wiki
extension instead of the.md
I from my settings.From looking through the code it seems this function
vimwiki#vars#get_wikilocal
might be the function that is getting the path incorrectly. However, I'm such a vimscript noob that I can't even find where this function is defined. I see it is referenced in 24 different files. Can anyone share where that function is defined?I would love to help create a fix for this, but need a nudge in the right direction.
:VimwikiShowVersion
.