Searching by multiple heading levels?

What I’m trying to do

I’d like to be able to search for headings by writing partial names of their parent headings. For example I have this file:

# fruits
## bananas
## apples
## berries
# other
## apples

I want to search using phrase fru app and get a result of ## apples heading inside # fruit. Is it possible?

Things I have tried

It may be possible to make a regular expression to do it, but it would be complicated.

As an approximation you could search "# Fruits" "## apples", which will match any note that includes both of those (and unfortunately show previews for each of them separately).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.