Use case or problem
Currently, obsidian only allow to search for multiple terms within a note. I would like to the ability to do a global search and return the result only if those term are in the same line or under the same heading.
Implementing global search for term A and term B:
- Only return the search result if term A and term B are in the same line/block
- Only return the search result if term A and term B are under the same heading
The search box can have options for filtering/toggle level of search.
Or create new regex operator for “pseudo blocks”
Using regex for return results within block/line: /.*term A.*term B.*|.*term B.*term A.*/