hasu / notdeft

NotDeft note manager for Emacs
https://tero.hasu.is/notdeft/
170 stars 14 forks source link

query for specific directory (no subdir files) #28

Closed dppdppd closed 2 years ago

dppdppd commented 2 years ago

my directory structure is something like this:

reference ├── bookmarks │   ├── 2019 │   ├── 2020 │   ├── 2021 │   └── 2022 ├── annotations │   ├── articles │   └── books ├── attachments

Is it possible to query for files that are in reference/ and not in any subdir?

hasu commented 2 years ago

It should be possible at least by explicitly excluding all the subdirectories:

path:(Reference AND NOT (Bookmarks OR Annotations OR Attachments))

dppdppd commented 2 years ago

Got it. Thanks.