Open uwolf opened 11 months ago
Thanks for the report and for the proposed fix. It seems to work. I've modified it a bit, as the wiki_nr
should be passed to zettel#vimwiki#create
as a parameter.
Thanks you. There is still an Issue with ZettelGenerateLinks though. It generates Links to the main wiki dir, not the rel_path. So whenever i click those links, it opens empty files, not the notes. But did not have the time to dig deeper into the code yet. I think this plugin is much more usefull, when ZettelNew can be called whereever you are.
Relative paths are painful in general. The support for them is a work in progress.
When ZettelNew is called from outside a wiki, the note file is created without a file extension, at least in my very basic setup:
I don't know much about vimscript, so no pull request, but for a quick fix, I added the file extension from the wiki config in autoload/zettel/vimwiki.vim in function zettel#vimwiki#create