obsidian-text-expand icon indicating copy to clipboard operation
obsidian-text-expand copied to clipboard

How do I collect blocks matching search

Open ksdavidc opened this issue 2 years ago • 2 comments

I have files with structure file 1:

## a
### sub1
## b 
### sub 1
...

file 2:

## a
### sub1
## b 
### sub 1
...

and I want to collate all the a.sub1 blocks

## sub1 (from ## a file 1)
## sub1 (from ## a file 2)
  ... and so on for b, c, d...

I feel like this should be possible, but I can't quite figure out how....

Thanks in advance for any assistance...

ksdavidc avatar Sep 14 '23 21:09 ksdavidc

Alternately, it would be nice if I could collect specific paragraphs, flagged by a tag or dataview field

[[dataviewField:: name1]]
desired  paragraph 1

more paragraphs


[[dataviewField:: name2]]
paragraph2

more paragraphs to ignore


[[dataviewField:: name1]]
desired  paragraph 3

more paragraphs to ignore

giving result

desired  paragraph 1
desired paragraph 3

(note that paragraph 2 is not collected)

ksdavidc avatar Sep 14 '23 22:09 ksdavidc

I was able to figure this out using the query control (not official) plugin. I am still curious if this is possible here...but at least I did find a solution...

ksdavidc avatar Sep 16 '23 01:09 ksdavidc