You are right, of course. It is right here:
That seems like a humble way of saying that Mdnotes is better because it has access to everything in the zotero database But I do agree that using the citations plugin still has its place for quickly referring to books and articles that are in zotero (and which you may not even have read yet).
So I think for it to work well with mdnotes, I should make sure that it produces notes whose file names are identical with the metadata notes created by mdnotes, right? - It obviously depends on what exactly you want to achieve, but I agree with your approach of keeping your own notes (in obsidian) separate from the literature metadata and annotations so as to be able to update those without losing your notes (in obsidian). So letβs stick with that approach for now.
As I think about it, I actually see two ways of integrating citations and mdnotes.
- One is the one that came to mind first (above): use the same file name for the metadata-note in both citations and mdnotes. You can refer to that file even when it doesnβt exist yet or you can let citations create a preliminary version which will be overwritten once you export annotations via mdnotes.
βββββββββββ βββββββββ
βcitationsβ βmdnotesβ
ββββββ¬βββββ βββ¬ββββββ
β β
writes (over)writes
β β
βββΌβββββββββββββββΌββββββββββββββββββ
β main note-file (incl. metadata) β
βββ¬βββββββββββββββββββββββββββββββββ
β
links to
β
β ββββ-ββββββββββββββ
ββββΊannotations file1β
β ββββ-ββββββββββββββ
β
β βββββββ-βββββββββββ
ββββΊannotations file2β
ββββββββ-ββββββββββ
- The second one is perhaps better, but adds some complexity. Instead of letting both plugins write the same main-note-file, which then links to the annotation files, we could add another level in the note hierarchy: citations would then create the main-note file which links to the mdnotes metadata file as well as all the annotation files. Only mdnotes overwrites these. And thanks to your ingenious idea to create the block reference id by hashing the annotation, all links and transclusions will still work after mdnotes updates the annotations (as long as annotations are not changes but only added).
βββββββββββ ββββββ βββββββββββ
βcitationsβ βuserβ β mdnotes β
ββββββ¬βββββ βββ¬βββ βββ¬ββββββ¬ββ
β β β β
creates edits writes writes
β β β β
βββΌβββββββββββΌββββββ β β
β main note-file β β β
βββ¬βββββββββββββββββ β β
β β β
links to/transcludes β β
β β β
β ββββββββββββββΌββββ β
ββββββββΊ metadata file β β
β ββββββββββββββββββ β
β β
β ββββββββββββββββββββΌββ
ββββββββΊ annotation files β
ββββββββββββββββββββββ
In fact, with that (second) approach you donβt even have to split the metadata and annotation files and just write them into a single file, depending on preference.
What I like about approach 2 is that it has a dedicated space for my own post-reading reflections in the main note-file. Integrating the annotations i make in the pdf during reading with more elaborate reflections in obsidian after (and sometimes already during) reading has been a major headache for me. It looks like this could be a solution.
Does this make any sense? (I havenβt tried it in practice yetβ¦)
BTW: the diagrams show the files for a single article/book in zotero.