obsidian-another-quick-switcher icon indicating copy to clipboard operation
obsidian-another-quick-switcher copied to clipboard

[Feature Request] Can search within a folder

Open jiamingz42 opened this issue 3 years ago • 5 comments

We can add a new search prefix :f which will search all the folders. Once the user selects a folder, it becomes a normal search but it only searches that folder. If the user hits the left arrow, it will go back to the folder search mode.

NOTE: It may be tricky to handle the case where multiple folders with the same names. Perhaps we'll need to show the whole full folder paths.

If the user already knows the folder's exact path, they could also type (this mimic Obsidian's search syntax)

f:folder-name
f:"folder name"
f:(folder name)

jiamingz42 avatar Jan 31 '22 23:01 jiamingz42

Hi, @jzhang-brex .

I think the feature is a bit complex for the quick switcher. Despite this, it seems handy, so I will keep it open and see the reaction of others.

tadashi-aikawa avatar Feb 01 '22 02:02 tadashi-aikawa

I'm really interested in this feature, especially if there will be an ability to start focused search by clicking on folder in the file explorer menu.

meskill avatar Aug 19 '22 15:08 meskill

@meskill Your suggestion is maybe easy because a search with folder names/ means nearly the same.

tadashi-aikawa avatar Aug 20 '22 06:08 tadashi-aikawa

Hi, @tadashi-aikawa. I've been using the feature you've mentioned with folder names/ for a long time already, but recently I've noticed that search is not working anymore the way I expect. Is there something changed in it recently? For me the search shows only files in subfolders of entered folder and shows the file in that folder only.

image image image image

meskill avatar Sep 17 '23 20:09 meskill

Hi, @meskill :)

I could reproduce it. I have created it as a new issue, https://github.com/tadashi-aikawa/obsidian-another-quick-switcher/issues/204.

tadashi-aikawa avatar Sep 18 '23 04:09 tadashi-aikawa