Add a new search operator for exact folder paths

Use case or problem

I have two folders, Tasks/ (in my vault root), and “Archived notes/Archived Tasks”. If I search path:Tasks, Tasks/ or /Tasks/ it shows results from both when I only want results from the former. It says in the documentation, the path operator “Find[s] text in file path.” It looks like it means it the string is found anywhere in the file path, so it can’t be used to search within specific folders if other folders have that same string anywhere in their paths.

Proposed solution

Add a new search operator called filepath: to search within folders with exact paths in the vault.

Current workaround (optional)

I don’t have any workarounds but I’d like to hear them if you have any.

1 Like