What I’m trying to do
TL;DR: I would like to aggregate all lines of FILE1 that contain #TAG1 as a list in FILE2.
Hi everyone, with Zotero Integration, I get a nice file (e.g. arnaboldi2015-annotations) for every paper where all my annotations have tags based on the color of the annotation in the PDF. As I might need to re-generate these files if I change the PDF annotations, I can’t write comments in obsidian directly into the files, so I create a second file per paper (e.g. arnaboldi2015) and now I would like to have one list per annotation category (meaning per tag) in this second file for a fast reference.
Things I have tried
This is a solution that seems close to what I wish for but unfortunately only works with lists. And from what I gathered there, my request does not seem possible with dataviewjs as there is no way of obtaining the contents of a file.
So far, I have gathered a few pieces but as I am not proficient in JS, I wasn’t able to piece them together:
- Here it is explained how the content of the current file can be read.
- Dataviewjs code that gets me the annotations page that I am looking for looks like this:
dv.pages().file.where((f => f.name.contains(dv.current().file.name) & (f.name != dv.current().file.name)))
Could you please point me at how this file content aggregation could look like?
(I would like to avoid converting annotation files to lists as this would remove quote blocks and also have other limitations for readability)