zettel_outline script includes Zettels in draft file that weren't included in outline file
First things first, thanks @ctietze for the script. I'm in the process of adding Structure Notes to my Zettelkasten and your script is perfect for part of the job involved.
However, I've run into the problem described in this post's title. To make sure that I'm understood and to include all potentially important information, I'll elaborate.
I have an outline whose filename is
202204091330 s2 Obsidian.md. It lists links in the same vein as the outline example from your post about the script. This file is in the home folder of my
Ubuntu 21.10. The output of
zettel_outline --version is
zettel_outline 0.1.1 (2016-01-23). Nothing weird appears in the terminal when I run the script:
zettel_outline -f '202204091330 s2 Obsidian.md' -a /home/annabella/Archive/Zettelkasten/ -o draft.md
Everything seems fine at first in the draft. At a closer look, I find the whole content of a Zettel that wasn't linked to, spread 16 times thorough it. Unlike the other Zettels, the
<!-- § --> part doesn't include its unique identifier. I checked my Zettelkasten to see if its unique identifier happened to be that of another Zettel, but it wasn't the case. The Zettels from the outline don't link to this Zettel and this Zettel doesn't link to them.
Any idea of what I could be doing wrong? I'll include any information you need on demand.
It looks like you're new here. If you want to get involved, click one of these buttons!