Vscode: New explorer: allow to filter by path

Created on 6 Feb 2019  路  10Comments  路  Source: microsoft/vscode

This would be an amazing feature to have: allow to type a path (relative) which makes the file explorer narrow down by exactly that path, e.g.:

image

Maybe trees should be allowed to opt into this behaviour which is, when you type a / or \ as part of the filter, it also respects the resource path of the element if it has any.

//cc @joaomoreno

feature-request file-explorer

Most helpful comment

@adarrra use this setting please "workbench.list.keyboardNavigation": "simple"

All 10 comments

Yes !

And might I add the request to allow wildcards?

In python modules can be a file actions.py or a folder with files actions/__init__.py actions/someaction.py

being able to filter on actions* and have all three show up would be awesome.

Related to #66971.

I've seen this feature requested multiple times, closed as duplicates of other issues not quite the same, promised and, apparently delivered. Nevertheless, in the latest VSCode you can't filter the explorer. What's the status with this?

Just to be clear: I want to filter the explorer tree (by filename, path) not run a search.

@cawoodm You can filter by filename, just start typing in the explorer.
You can not fitler by full path that is what this feature request is about
https://github.com/Microsoft/vscode/issues/10026

OK, thanks. That's a quirky feature - not at all what I want. I'd like to place a feature request for a simple search box which filters by path and hides (not highlights) whatever doesn't match the filter (e.g. *.js to show only JavaScript files). Does such a feature request exist? I surfed through a dozen or so similar and found nothing matching.

Just click on the filter box in the widget that shows up. That will hide what does not match.
Also you can use this seeting
"workbench.list.keyboardNavigation": "filter"

filter

guys please help 馃檹馃檹, how to disable this sidebar filter? Can't find solution anywhere. It interfere with usual shortcuts as 'a' - add file etc.

@adarrra use this setting please "workbench.list.keyboardNavigation": "simple"

To disable it:

as of vscode 1.33.1 the option is a bool "workbench.list.automaticKeyboardNavigation": false

https://superuser.com/a/1436710/361250

+1 to what @hvdklauw is describing. Has there been any traction on this? or is there another feature request I could follow along for progress? To reiterate the filtering I am picturing, the filter would search the entire file path and not just the visible name. Filtering on action would produce:

actions/
   first.rb
   second.rb
   third.rb

Said differently, the results of the filter would display

  1. matching files
  2. matching folders
  3. contents of matching folders (_even if the visible name does't match_)

thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vsccarl picture vsccarl  路  3Comments

mrkiley picture mrkiley  路  3Comments

omidgolparvar picture omidgolparvar  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

lukehoban picture lukehoban  路  3Comments