michal-h21 / vim-zettel

VimWiki addon for managing notes according to Zettelkasten method
MIT License
564 stars 73 forks source link

ZettelInbox indiscriminately adds all zettels to the page #115

Open gddgddg opened 3 years ago

gddgddg commented 3 years ago

Instead of just adding zettels that aren't linked to, all zettels are added with the ZettelInbox command, even ones with bidirectional links. I've just tested this with two different directories in both the wiki and markdown formats and it happens with both. I'm running the command in the inbox/index file, an empty file that serves the purpose of being an inbox so I can (supposedly) work with unlinked zettels and link them.

kuddai commented 2 years ago

Same issue as described above.

kuddai commented 2 years ago

Hm, reading source code (comments were super useful) helped a bit.

It seems that it starts from index file as root of tree. I had two test zettels A and B. A was listed in index. B appeared in :ZettelInbox. Then I added link to B in A, and :ZettelInbox become empty.

michal-h21 commented 2 years ago

@gddgddg Hi, sorry for the late reply. I am slowly going through old issues. The :ZettelInbox command uses internal Vimwiki command that detects files that are not reachable from the index file. You can open the index file using :VimwikiIndex command. All notes should be reachable from this file. I've updated the documentation about this fact, I hope it will be more clear now.