Is there a way to list the lines that contain a certain tag? I have tags in some notes, knowing which files contain that tag is not that useful toi me, it would be more helpful if I can list the lines that has that actual tag.
For example I might have
I am going to write about running. #write
This might be in a note that has many other irrrelavant lines but I would be interested in listing all the lines that has #write tag
I think dataview can do this, just that my knowledge of it is vert limited.
I’m a fan of the beta (needs to be installed manually or via BRAT) plugin Query Control, which can render Markdown in search results among other things.
Dataview works with metadata (mostly), not really the content of your notes. e.g. having Dataview produce a list of notes where #write shows up is easy; where the tag shows up in the note itself is a different matter. Search and embedded search/queries are great for that.
Thanks for the replies, this works. Is there a way a command line version of this where I can run a query from some kind of command line to create regular outputs and convert them to static pages? So that I can put them in other vaults that won’t have these files to run the query over.