Exclude subfolders from `path:` while searching notes


Is it possible to exclude subfolders while using path: to search notes? Saying I want to get notes in /folder only but not notes in /folder/subfolder.

I use the plugin Text Expander to generate MOC(Map of Contents) automatically. And I want to remove notes in subfolders from MOC or the MOC will be too long.

Have you tried just using path:path-you-want -path:path-you-don’t-want

ah, it works. Thx.

Btw, I found another way to meet this need. The regex below will get all notes in folder and exclude notes in folder/subfolder.


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