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

New explorer: allow to filter by path #67988

Open
bpasero opened this issue Feb 6, 2019 · 15 comments
Open

New explorer: allow to filter by path #67988

bpasero opened this issue Feb 6, 2019 · 15 comments
Assignees
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented Feb 6, 2019

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

@bpasero bpasero added feature-request Request for new features or functionality file-explorer Explorer widget issues labels Feb 6, 2019
@hvdklauw
Copy link

hvdklauw commented Feb 7, 2019

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.

@joaomoreno joaomoreno added this to the Backlog milestone Feb 7, 2019
@joaomoreno
Copy link
Member

joaomoreno commented Feb 7, 2019

Related to #66971.

@cawoodm
Copy link

cawoodm commented Mar 22, 2019

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.

@isidorn
Copy link
Contributor

isidorn commented Mar 22, 2019

@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
#10026

@cawoodm
Copy link

cawoodm commented Mar 22, 2019

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.

@isidorn
Copy link
Contributor

isidorn commented Mar 22, 2019

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

@adarrra
Copy link

adarrra commented May 11, 2019

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

@isidorn
Copy link
Contributor

isidorn commented May 13, 2019

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

@tgrrr
Copy link

tgrrr commented Jun 18, 2019

To disable it:

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

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

@abd00s
Copy link

abd00s commented Nov 8, 2019

+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

@bradonomics
Copy link

bradonomics commented Sep 11, 2022

"workbench.list.automaticKeyboardNavigation": false no longer works. What is the new way to disable this?

Edit: I found that to disable this in version 1.71, you need the keybinding:

  {
    "key": "ctrl+f",
    "command": "-list.find",
    "when": "listFocus && listSupportsFind"
  }

@gjsjohnmurray
Copy link
Contributor

"workbench.list.automaticKeyboardNavigation": false no longer works. What is the new way to disable this?

@bradonomics this doesn't seem to be related to the subject of this issue. I suggest you see #148536 (comment) and add a comment there, where perhaps @joaomoreno will respond even though that issue is closed (but not locked).

@yiliang114
Copy link
Contributor

"workbench.list.automaticKeyboardNavigation": false no longer works. What is the new way to disable this?

Edit: I found that to disable this in version 1.71, you need the keybinding:

  {
    "key": "ctrl+f",
    "command": "-list.find",
    "when": "listFocus && listSupportsFind"
  }

May I ask why this keybinding begins with - ?

@bradonomics
Copy link

The - removes a keybinding rule. You can read more here: https://code.visualstudio.com/docs/getstarted/keybindings#_removing-a-specific-key-binding-rule

@anentropic
Copy link

  {
    "key": "ctrl+f",
    "command": "-list.find",
    "when": "listFocus && listSupportsFind"
  }

adding this to keybindings.json did not disable it for me

but open "Keyboard Shortcuts" and search for list.find and right-click "Remove Keybinding" did work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues
Projects
None yet
Development

No branches or pull requests