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 · 4w ago · 3 replies
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
@plain_text_only · 3w ago · 2 replies
Before building this, consider how much you want to depend on it. Every query is a piece of software that has to keep working, and the plugin ecosystem moves faster than your notes do.
I write the index pages by hand for the handful that matter and let the rest be found by search. It is less clever and it will still work in five years.
Reply
Report
@markdown_mateo · 2w ago
Readable without the plugin is the test. If the note is a query and nothing else, you have written an application, not a note.
Reply
Report