How do I write a query that filters notes on a field containing a value, and pulls the tasks from under one specific heading?
I have a few hundred notes with metadata in them, and I want to stop maintaining index pages by hand.
Two things I cannot get working with the query plugin:
First, filtering on a field that holds several values. Matching a field exactly works fine, but I want "notes where the project field includes this project", and comparing with equals returns nothing.
Second, collecting tasks. I can list every unfinished task in a folder, which is too much. What I want is the tasks under a particular heading — each of my meeting notes has an "Actions" section and that is the only part I care about.
What is the right shape for these two queries?
@markdown_mateo · 4h ago
Worth saying before you build a lot of this: keep the queries simple enough that the note is still readable without the plugin.
The appeal of plain-text notes is that they are plain text. A vault where the important content is generated by queries is a vault that becomes a directory of empty pages the day the plugin stops being maintained, or the day you want to read your notes on a device that does not run it.
My rule: queries are for views — dashboards, indexes, task roundups — and never for content. The actual information lives written out in the note. Then a query breaking is an inconvenience rather than a loss.
It also makes the export question much less frightening, which matters more than it seems until the day you want to leave.
Reply
Report