various code and queries, not sure if this is dataview if there is no YAML
What I’m trying to do
I’ve been using dataview to make a list of all conversations w/ a person (each conversation is a note w/ YAML). But sometimes I just make a daily note where I may mention a person’s name (as a page link, not a tag). eg. [[Doe, John]].
What if I’m trying to make a list of all daily notes where a person is mentioned, or even better, all notes (globally or just in the daily notes folder) where a person is mentioned AND a tag exists on that page for a particular topic?
No clue where to start on this one or even if it’s possible, but would be very helpful to narrow down my notes. Is this just a search paramater? Can it be a list like in dataview? Can I view these in a graph as well?
Hey! I decided to give this a try, and I think I have a solution for you. I made two notes which both link to [[Doe, John]] and contain the tag “testing”, then put this data query in a new note:
Hey and thanks! I tried that and didn’t work, but maybe I’m not writing the info right… do i need the 3 ``` marks? When I copy/pasted what you have, it also said plaintext… what is the exact syntax?
One more question, sorry, seems my list has no apparent order. what if I want to sort alphabetically? SORT ??? DESC what is the title field? or can I do it also by note date?
I wasn’t quite sure how to sort alphabetically, so I did some research and testing. Looks like adding SORT file.name ASC to your query will do the trick! For sorting by date, SORT file.ctime ASC seems to work. This overview of query types and this overview of data commands can help you customize further!