Skip to content

New explorer: allow to filter by path #67988

Closed

Description

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 João Moreno (@joaomoreno)

Activity

  1. added
    feature-request
    file-explorer
    on Feb 6, 2019
  2. hvdklauw commented on Feb 7, 2019

    @hvdklauw

    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.

  3. joaomoreno commented on Feb 7, 2019

    @joaomoreno
    Contributor

    Related to #66971.

  4. cawoodm commented on Mar 22, 2019

    @cawoodm

    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.

  5. isidorn commented on Mar 22, 2019

    @isidorn

    Marc (@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

  6. cawoodm commented on Mar 22, 2019

    @cawoodm

    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.

  7. isidorn commented on Mar 22, 2019

    @isidorn

    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

  8. adarrra commented on May 11, 2019

    @adarrra

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

  9. isidorn commented on May 13, 2019

    @isidorn

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

  10. tgrrr commented on Jun 18, 2019

    @tgrrr

    To disable it:

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

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

  11. abd00s commented on Nov 8, 2019

    @abd00s

    +1 to what Harro van der Klauw (@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

  12. bradonomics commented on Sep 11, 2022

    @bradonomics

    "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"
      }
    
  13. gjsjohnmurray commented on Sep 11, 2022

    @gjsjohnmurray
    Contributor

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

    Brad West (@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 João Moreno (@joaomoreno) will respond even though that issue is closed (but not locked).

  14. yiliang114 commented on Nov 9, 2022

    @yiliang114
    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 - ?

  15. bradonomics commented on Nov 9, 2022

    @bradonomics
  16. anentropic commented on May 22, 2023

    @anentropic
      {
        "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

  17. bpasero commented on Dec 20, 2024

    @bpasero
    ContributorAuthor

    We have this now.

  18. locked and limited conversation to collaborators on Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestfile-explorer

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions