Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow quick open to filter on folder names by typing folder name after the file #30404

Closed
andyvanosdale opened this issue Jul 11, 2017 · 9 comments
Assignees
Labels
feature-request Request for new features or functionality on-testplan quick-pick Quick-pick widget issues search Search widget and operation issues
Milestone

Comments

@andyvanosdale
Copy link

Quick Open (using Command P) is a great tool. However, if you are in a framework like Rails, you'll often have files that are named the same across many different folders, particularly for views. You may have 10s or 100s of index.html.haml or index.json.jbuilder files. Being able to narrow down the file is practically impossible with VSCode without the ability to also narrow down the folder, which provides a more descriptive name.

It would be great to have Quick Open use the filter to search the names of folders to help narrow down the list and find the file quickly.

@bpasero
Copy link
Member

bpasero commented Jul 12, 2017

@enozero you can type the folder name (before the file name) and it should narrow down, does that not work for you?

@bpasero bpasero added the info-needed Issue requires more information from poster label Jul 12, 2017
@bpasero bpasero added this to the Backlog milestone Jul 12, 2017
@andyvanosdale
Copy link
Author

Ah... interesting. I hadn't ever thought to try the folder before the filename in the quick open tool. My mind automatically thinks of the file name then to narrow down the search from there once I see that the search has too many listings and that I can just keep typing to narrow down the search. Is there a way to allow searching the folder names after the file name? If not, that would be a fantastic addition.

@bpasero bpasero changed the title Allow quick open to filter on folder names Allow quick open to filter on folder names by typing folder name after the file Jul 12, 2017
@ImJeevesh
Copy link

I think it is the filter for files and folders in explorer pane kinda like we have it in Xcode's project navigator.

screen shot 2017-08-03 at 12 37 39 pm

@bpasero bpasero added feature-request Request for new features or functionality and removed info-needed Issue requires more information from poster labels Sep 28, 2017
@bpasero bpasero removed their assignment Sep 28, 2017
@bpasero bpasero added quick-pick Quick-pick widget issues search Search widget and operation issues and removed workbench labels Nov 16, 2017
@bpasero bpasero removed this from the Backlog milestone Nov 18, 2017
@mrmachine
Copy link

What about treating : as a special character that begins to apply an additional fuzzy filter against the existing results for any additional characters? so you type inhtm then you see that there are 100 index.html.haml files and you realise you need to filter on directory as well. You could then type :foo to filter the existing results and push foo/index.html.haml to the top of the result list?

You can probably achieve the same thing now by jumping the cursor back to the beginning of the quick open input field, but this might be a bit quicker to type (and you could then even apply further filters again).

@zpdDG4gta8XKpMCd
Copy link

miss this feature so bad

@imyellow
Copy link

xcode files filter is very useful, it will show some files always listed in sidebar, but in vscode must Command P everytime when i want to open some files
image

@wahello
Copy link

wahello commented May 2, 2019

This feature definitely super useful. But, I bet this features will be added after ten years.

@danielo515
Copy link

I think that directories should be treated as first-class citizens on the quick open. As the requester of this feature, first I think on the file name, then on the folder name. Having to add the folder as a prefix is not practical, and it is not even fuzzy, you need to make a perfect match. Emacs has this feature and it is just wonderful.
To give you an example, to narrow down to a file on core/api/assignments/edit.js I want to be able to write edt assapi

@bpasero
Copy link
Member

bpasero commented Mar 27, 2020

Pushed a change so that quick open now runs a search over each segment of the input that is separated by space. This allows to further narrow down the results based on additional values. These additional values can either match on the label or description part and their scores will add up for each match:

Kapture 2020-03-27 at 11 23 48

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality on-testplan quick-pick Quick-pick widget issues search Search widget and operation issues
Projects
None yet
Development

No branches or pull requests

8 participants