michal-h21 / vim-zettel

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

fix incorrect path comparison #138

Closed ferdinandyb closed 11 months ago

ferdinandyb commented 11 months ago

Currently, when checking whether we are in the wiki or not the comparison will only return true if we are in the root of the wiki, since the comparison is exact folder to folder. Check instead if the path of the wiki is contained in the path of the current file. Move the comments to the appropriate path of the conditional.

michal-h21 commented 11 months ago

Thanks!