I´m new to obsidian and just starting my workflow. I use Obsidian mostly for literature notes and one thing that I´m missing is the possibility to automatically bring all highlights of one color to a Note (which only includes those highlights at the end)
For example: I highlight all research gaps in one color and want them all collected in one new note (with a link so i can find where the highlight came from) so I can easily find all identified research gaps through my hole literature.
My preferred way to higlight using Dataview is shown in the thread below:
The idea is simply to do stuff like [question:: My question on highlighting], and then use CSS to style it like you want, and queries to list them from other places.
With a little bit of help I figured something out that is exactly what I was looking for:
for (let page of dv.pages('"Inbox"')) {
const lists = page.file.lists
if (lists.length === 0) continue
const list = lists.values
.filter(li => !!li.Annotation
&& li.Annotation.contains('hltr-green'))
.map(li => li.Annotation)
if (list.length === 0) continue
dv.header(3, page.file.link)
dv.list(list)
}
Works for different kinds of searches.
I have now three notes with this code-block and changed Highliter Colors, so I have for example all Definitions, all Research gaps and all my open questions in all my Literature (collected in my Inbox) collected in seperate Notes.