Everything I’ve found so far has led me to believe that this feature simply isn’t supported, so I’m
resorting to my last hail mary. Please end my suffering with a definitive devastating blow.
As far as I can tell, the only real way to query for multiple lines of text is to put them into a custom property, which would have worked ine for me, might have even been preferable, if markdown formatting in those wasn’t so wonky.
In a pure Dataview query the headings are not available. But there are some workarounds in some cases. If you are working with list or task items you can access the heading an item belongs to.
Through some hackish extensions of Dataview you might also be able to get the headings of a given note, but it’s kind of sketchy code to do so, and it might be broken in a future version of Dataview.
You can also access some headings through a link referencing a heading. This of course depends on the existence of those heading links.
Within dataviewjs, and other javascript variations, you can access the metadataCache and get access to the headings without having to read the actualn file content of the notes.
I ran into this one too. I’m not sure what problem you’re solving, but for me I pivoted to embedded queries to accomplish the visibility I wanted. Example: I want a single note that references every 1-1 meeting I’ve had with Bob. I start all those meetings with ## Bob 1-1, so instead of Dataview I use:
```query
line:"# Bob"
With a closing ``` as well (but can’t seem to add that).
To extract text you’ll need to use dataviewjs (if the simpler searches as shown before doesn’t do what you want). This again requires coding, and there are multiple examples in this forum on how to use javascript to extract sections from notes, so I’m not going to re-iterate that just now.
However, the better option for extracting a block of information based upon the content of that block, is to make sure the block is actually a list item. Then you’re able to use a lot of variants of normal Dataview queries to search for these items. And opposed to using custom properties, you’ll now have full access to the markdown allowed within a list, which is not as restrictive as properties.
So if this sounds promising, please provide some examples of information you want to extract, and what you would ideally use to locate that tidbit of information. Then we could hopefully help you build some example queries.