michal-h21 / vim-zettel

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

Generate outline of child notes #28

Open michal-h21 opened 4 years ago

michal-h21 commented 4 years ago

It would be nice if it was possible to generate outline of child notes of the current note. Possible caveat: when the note has backlink to the parent note, it is not possible to differentiate it from child notes. This may lead to outline that contain the whole Zettelkasten, which is not really desirable.

ghost commented 4 years ago

Idea of just a programming-beginner: Maybe it works with an external script, which saves the grabed data to a (tmp)-json-file and checks if links/ backlinks/ notes-text are doubled. And when you do that with more than one parent-note at the end of the whole outline process it checks the generated outline-file and dedupe.

abers commented 4 years ago

One, limited, way to check if a link is parent or child would be via the date of creation metadata. If, a note is created earlier than another it is safe to assume parentage. The obvious limit being that in some cases a person might only later discover a few zettels can be grouped under a larger parent zettel.

michal-h21 commented 4 years ago

The idea with creation date sounds good, this shouldn't be that hard to implement.