What I’m trying to do
Hi! I’m trying to use dataview to list lines tagged with #idea with a link to the note at the end. The query I wrote (I found here in the forums) is not scanning my entire vault and therefore I only see a partial list of items tagged with #idea.
I use Obsidian Sync.
Here’s the query:
list without id
L.text + " " + link(L.path + "#" + meta(L.header).subpath,"(link)")
flatten file.lists as L
where contains(L.tags, "#idea")
Any help is greatly appreciated!
Could you give some examples of lines it misses?
The query you present is specifically made for matching on bullet points, or lines within lists. So a random line in a paragraph tagged with #idea wouldn’t be caught, for example.
And what does the
L.header refer to, does every item in your list have a header field?
Thanks for helping here! You’re right, I was expecting the query to pick any lines with the particular tag, but now I see that it works when the tag is part of a list or a bullet point.
I had just copied the query from another post and tinkered with it without really knowing what I was doing , I have now removed the reference to L.header since it’s not applicable to the way I take notes.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.