There have been many requests for the abililty to search within a folder, and the answer is always the same: → you can, just start your query with “path: xxx”.
Yes, you can. And I use that all the time. BUT it is much simpler sometimes to just right-click on a folder and select “search here”. It could still open the same search functionality but maybe it could auto write-in the “path” for us.
There are many scenarios where starting a search with “path” isn’t as easy as people make it out to be. So I’m submitting this as a feature request, and hopefully I will not be told that the feature already exists, because it doesn’t, really. There is a way to search within folders, but not this way, which would be very useful in many circumstances.
I know that you can search and use the Path: command to search a particular folder. I would love to be able to quickly search a folder with a right-click command. It would be quicker and easier than trying to drill down to the right folder with the Path: command.
I have a really simple plugin for this if anyone’s interested: search-from-directory It’s probably too small to add it to the Obsidian plugin gallery but maybe enough people are interested.
ADD IT! That’s a useful feature that people should have easy access to. There are already small plugins in the directory (for example Prominent Starred Files).
I would really like to have a “Search in Folder” menu item.
For instance, right click on a folder1 and click ‘search in folder’.
It automatically jumps to search options and creates a path to folder1.
I made an account and was planning to request the same thing, but I just happen to see you posted it first. This would make searching so much easier. Instead of putting path and navigating to the path, then search, a simple right click on the folder and select it to search should jump you to the search bar with the path already there.
I’m glad that other people are interested in this feature as well
I was thinking of making a similar post in Plugin Ideas.
Then I found a plugin thanks to this thread and Liam Cain.
Unfortunately the plugin is only available on github.
I’ve never tried to manually install mods from github before.
But to make it work, here’s what I did:
-Download as Zip.
-Right click on the downloaded file. Extract here.
-Copy this folder to your vault \ .obsidian \ plugins.
-Open a plugins folder in file explorer “search-from-directory-main”.
-Copy the file “main” from the “dist” folder to the main directory “search-from-directory-main”. Otherwise the plugin won’t be activated.
-Open the file main.js with a text editor and remove this part “tag:task/todo”, save a file.
This is something the author added for his own use.
The end result will look like this (path:"${i}" )
instead of (path:"${i}" tag:task/todo)
-Enable the plugin in the settings