Search only in some folder

Use case or problem

Folders are natural tools for namespacing/delimiting the context for articles.
The use case is to filter search results to include only files that are contained in some folder.

Proposed solution

Option A

Provide a context menu option when right-clicking on a folder to search in this folder.

Option B

Provide a special search keyword-option to specify a containing folder filter

full-text search query in:"containing folder name"

1 Like

Whats wrong with “path:folder”?

изображение

2 Likes

didn’t know about it. Thank you!

@Ellanxis

As indicated path performs the subquery on the FULL FILE PATH which includes file names. If you have a file(s) that share some similarity in their titles to the desired restricted folder, they’re going to show up in the search. I’ll attach a screenshot to make this crystal clear.

CleanShot 2022-03-30 at 15.07.02

It’s a bit surprising, but there doesn’t appear to be any way to restrict your search to a single folder. I don’t know how it’s possible that I’m seemingly the first person to realize this limitation. I’ve started working around it by autotagging my notes with delimited parts of folder/subfolders. It’s a bit of a hack but it works.

2022_03_31 02-37-14
2022_03_31 02-37-19

1 Like

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