michal-h21 / vim-zettel

VimWiki addon for managing notes according to Zettelkasten method
MIT License
555 stars 72 forks source link

Fix link generation when wiki extension has multiple dots #149

Closed MartyLake closed 3 months ago

MartyLake commented 3 months ago

When using extension containing multiple dots, for example .wiki.txt, generated links would be faulty links by ending with piece of the extension, for example .wiki, then vimwiki would try to go to a file that ends with .wiki.wiki.txt instead.

This patch solves the issue by removing the exact suffix of the extension instead of using the root filename modifier.

michal-h21 commented 3 months ago

Thanks!