-
Notifications
You must be signed in to change notification settings - Fork 29k
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
Explorer: resolve all folders before filtering #66971
Comments
Thanks for the feature request. In the future no need for such a long explanation - being concise is awesome. fyi @joaomoreno |
@isidorn even in the Explorer sidebar it may be very problematic to attempt to search all folders -- because it would be highly dependent on what any Don't get me wrong -- I would like to see this feature too, but maybe it has to be limited to non-FileSystemProviders -- or a FileSystemProvider would need to express if it can be supported and/or limit the depth? |
Additionally, this feature should be the offspring of a marriage between Explorer and Search, since the latter can provide with file names much much faster than we could ever do in the Explorer model. |
I would use the "Quick Open" functionality to achieve this result.
I also like the explorer with Filter keyboard navigation, but since it gets only the currently visible folders, it is not very useful to me. |
This extension may be helpful: https://marketplace.visualstudio.com/items?itemName=sandipchitale.revealfolder |
I hadn't quite realised how fundamentally broken this is. I was pulling my hair trying to work out why I couldn't locate a file that I added yesterday. Needing to expand the containing folder first means I might as well not have bothered. Could there at least be some indication that a folder contains unresolved nodes? At the moment there is just the note in the January release note - there are probably lots of users who won't find this and it leaves a pretty bad impression. |
Any plans on this feature? I cry when I can't find needed file/directory because it is not expanded 😄️ |
The filtering is basically unusable because of this. Alternative is CTRL+P anywayz. |
Just checking. Is there any update to this open issue since June other than being reported by other users? |
Initially, I wanted to get files filtering feature to filter out all function openAllPackageJson {
local list=$(find . -type d \( -name node_modules -o -name dist \) -prune -o -name package.json -print)
code ${list[*]// /|}
} May be someone else also will find it usefull. |
This feature still feels terrible, but I found an alternative, if searching for directories you can use the extension 'Reveal matching folder in Explorer view', if searching for files you can use crtl+p or cmd + p |
Thats exactly what i was expecting while using filter feature in explorer. Expecting to filter RECURSIVELY that's the main point. |
Don't really get why this clumsy approach still exists and isn't replaced by what's naturally expected: filter everything and show me just the matches. If the Search pane can quickly search through the contents of all files in the project (even if the default exclude is disabled), isn't it comparatively even faster to search just the file names? I shouldn't have to open "untraversed" folders manually. What's the performance issue? Is it still relevant in the latest VS Code? |
@ADTC for real. |
You can use the search feature as a workaround: https://stackoverflow.com/a/77913729/1536921 |
This is something so useful and necessary. I switched from Visual Studio to VSCode, but I run into this problem. I'd honestly rather lose a little performance than have to open all the folders manually to get the search to work. Even having to press CTRL+F to see the search bar is unintuitive. Visual Studio's file explorer does it much better. If we had that same explorer in VSCode, everything would be fine. |
I just found this thread after searching for how to use this handy little search box to search across all the files in my project. I'm blown away that this issue has been open for so long! And I just also found out I can't expand all folders! +1 to this issue, FWIW |
I have a workaround solution.
{
"command": "runCommands",
"key": "cmd+y",
"args": {
"commands": [
"workbench.explorer.fileView.focus",
"list.find"
]
}
},
{
"command": "runCommands",
"key": "cmd+shift+y",
"args": {
"commands": [
"vscode-files-explorer.views.files-explorer-list.focus",
"list.find"
]
}
},
{
"key": "cmd+shift+y",
"command": "workbench.action.closeSidebar",
"when": "sideBarVisible"
}, |
@hakan-akgul I don't quite understand why |
Yes you are right. But it is easy to right click and hide. Also you can unhide directly when you need the file. I will update the comment. Thank you! |
I return with a different paradigm. For a while I'm using rust baseed terminal app broot. Fast, preview support, fuzzy search. Also it filter lines in preview mode... |
still waiting for expand all folders feature 5 years later edit: pretty simple changes edit 2: |
Did this get addressed recently? I'm on 1.94 and find widget searches into collapsed folders. |
@starball5 I think you're referring to this announcement in the article https://code.visualstudio.com/updates/v1_94#_find-in-explorer |
I've just tested on 1.94 and it looks like this is resolved! Thanks for the heads up @starball5 |
Unfortunately for people using extensions that rely on the FileSystemProvider API the 1.94 changes are likely to have broken Explorer Find entirely: |
I work in a VERY large repository and searching recursively through all files takes too much time since version 1.94. Previously, I opened only the folders I needed and searched through them - it was very convenient and the search was carried out instantly. Is it possible to return the previous find logic in explorer in the settings? |
Just implement it as in xCode. PLease. It cannot be hard. You should filter-out EMPTY folders without files after filtering. |
Recently, support for filtering in Explorer by typing parts of a file or folder name was added (#66497). There are two modes:
The default mode simply highlights all matches in currently expanded folders and scrolls to the first found match. Works perfectly, nicely engineered.
By activating the "Filter on Type" mode, the tree gets pruned to only those elements that match the filter. However, this pruning currently removes all folders which had not been expanded at least once before-hand, no matter if they contain a match or not.
In my opinion, the behavior of the Filter on Type mode is counterintuitive as the results shouldn't depend on how the developer has interacted with the tree in advance. At least then there should be some indication on which folders were not considered in the search. In my case, I commonly want to filter on specific file types, and since there is no "Expand All" feature in the Explorer, the current work-around would be to manually expand all folders upfront and then use the new filter feature so that I can be sure that no entries are missing.
I'm assuming this is related to the fact that folder nodes are lazily resolved since they might be remote resources. On the other hand, the normal search functionality seems to have no problem with these scenarios, probably because the expectation is that it's OK to wait a bit until you get the results, whereas here you more or less want it immediately. Maybe a hybrid would be a good solution: do the quick filtering as it is and display that immediately, and in the background start a regular filename search backed by (still experimental) search provider API. Then merge these when the results come in.
@isidorn
The text was updated successfully, but these errors were encountered: