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

Navigate through explorer by typing start of file/folder name #10026

Closed
MarkPieszak opened this issue Aug 1, 2016 · 136 comments
Closed

Navigate through explorer by typing start of file/folder name #10026

MarkPieszak opened this issue Aug 1, 2016 · 136 comments
Assignees
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues feature-request Request for new features or functionality file-explorer Explorer widget issues verification-needed Verification of issue is requested verified Verification succeeded

Comments

@MarkPieszak
Copy link

MarkPieszak commented Aug 1, 2016

  • VSCode Version: Any
  • OS Version: Any

Feature Proposal
When opening a folder containing hundreds of items (for example: node_modules) There is no easy way to get to a child folder/file without scrolling around.

Would it be possible to allow the file viewer to navigate down to let's say the first file of the next letter keypressed?

node_modules (folder is highlighted)
    ( letter L is hit )
    ---- automatically scrolls down within node_modules to folders beginning with "L"
       +++ Folders shown:
       +  Lodash / etc

Just an idea, would help navigating large filesystems a bit easier.

@Tyriar Tyriar added feature-request Request for new features or functionality workbench file-explorer Explorer widget issues labels Aug 1, 2016
@Tyriar
Copy link
Member

Tyriar commented Aug 1, 2016

I'd also love to have this, anything that makes it easier to navigate the explorer using only the keyboard would be awesome.

This is how Ubuntu handles it in its "Files" program:

Type 's' and you get a filter box that pops up at the bottom of the file explorer:

image

At this point down and up only allow navigation between files starting with an 's'. Pressing escape will clear the filter and allow free navigation again.

I believe Windows on the other hand maintains a search string and keeps a timeout for when the search expires. As such, typing "sr" in quick succession will focus the src directory, pressing "c" before the timeout expires will keep focus on src, if it's after the timeout expires then CONTRIBUTING.md will be focused. up/down are not restricted on Windows.

@MarkPieszak
Copy link
Author

Oh well that'd be an even better implementation! If it narrowed down and only showed folders/files with the letter(s) you typed that'd be incredible. 👍

@bpasero
Copy link
Member

bpasero commented Aug 6, 2016

Related: #9373

@bpasero bpasero added this to the Backlog milestone Aug 6, 2016
@Tyriar
Copy link
Member

Tyriar commented Aug 8, 2016

Haha, of course I already reported this in #4763 😛

@dougrosenfeld
Copy link

This is a great request. We too are working with thousands of files in hundreds of folders on multiple network shares. Finding and navigating with a mouse and scrolling through a large folder structure to find the file and manually selecting the file is burdensome - especially when the Explorer jumps around when clicking on a file in the Open Editors pane.

We kindly request that finding files in the Explorer be easier. The standard Windows Explorer is a good example.

For example, provide a box where you can start typing in the file name and the folders/files displayed in the Explorer are limited to names that match - even if the folders are "closed". Please support wild cards. This search needs to be very fast.

Another example, a simple goto file would be helpful.

Another example, allow typing in the Explorer to jump to a file. But don't limit it to the current folder.

@ConstantineK
Copy link

Agreed with @dougrosenfeld, as soon as I opened my first folder in the Explorer menu I intuitively looked for the bar that I could click to filter the items within the window, mainly because it is available in many code editors.

I have had multiple people ask me this same question when I introduced Code to them, and when working with larger directories with many files this would simplify the mental overhead of dealing with all of the folders.

@Tyriar
Copy link
Member

Tyriar commented Dec 6, 2016

It would make sense to tackle this when we look at adding multi-select in #1023

@bpasero bpasero changed the title Feature Proposal: Allow to navigate to specific file/folder by Letter when folder selected Allow to filter explorer by typing names Jan 16, 2017
@bpasero
Copy link
Member

bpasero commented Jan 16, 2017

Updated this summary: this feature asks for filtering the explorer while typing whereas #10839 would cover the request of selecting the next element in the tree that matches a specific key that was pressed.

@thekalinga
Copy link

@bpasero Is there a plan on which release this will be included in (feb/march/e.t.c)?

@bpasero
Copy link
Member

bpasero commented Feb 3, 2017

Backlog means it is not planned for any iteration.

@thekalinga
Copy link

Wanted to check if the item is in the potential items that you might consider in this/next release?

@bpasero
Copy link
Member

bpasero commented Feb 3, 2017

I think it is.

@gulshan
Copy link

gulshan commented Feb 5, 2017

Isn't ctrl+p and ctrl+e kind of doing this already?

@Tyriar
Copy link
Member

Tyriar commented Feb 5, 2017

@gulshan my main need:

  1. Open ./node_modules/, which is excluded by default
  2. Click on the explorer and start typing the name

Right now you need to scroll down and find it, which can be a pain with hundreds of modules.

@isidorn
Copy link
Contributor

isidorn commented Dec 14, 2018

I am already working on this #65008
Assigning this to January milestone, so if everything goes as planned should be available in the next 2 months, or as soon as we merge that PR in insiders version.

No financial inducment needed, I enjoy my Saturdays more than money.

@isidorn isidorn modified the milestones: On Deck, January 2019 Dec 14, 2018
@RMPR
Copy link

RMPR commented Dec 16, 2018 via email

@wAISw
Copy link

wAISw commented Dec 17, 2018

maybe exist any plugin for it?

@BalintFarkas
Copy link

Cool, looking forward to this!

@isidorn
Copy link
Contributor

isidorn commented Jan 14, 2019

Navigating through file explorer by typing file/folder names will be available in tomorrow's vscode insiders.
The filtering as described in this comment #10026 (comment) we will treat as a seperate feature request and that will proabably come in the next milestone (February).
Here's a pointer to that one #66497

@rozzzly
Copy link

rozzzly commented Jan 17, 2019

hallelujah ❤️🙏 my faith has been restored!

@letmaik
Copy link
Member

letmaik commented Jan 22, 2019

@isidorn The Enable Filter on Type toggle only seems to work on folders that had been expanded at least once before-hand. Probably this is a bug? I would expect that it shows me all matches from all folders, and ideally with some way to expand everything, currently there's only Collapse All.
EDIT: Created a new issue: #66971.

@isidorn
Copy link
Contributor

isidorn commented Jan 23, 2019

@letmaik nope not a bug, this is a feature which we might do in the future. To resolve all folders up front when user starts filtering.
Please file a feature request and ping me on it. Thanks

@sandy081
Copy link
Member

@isidorn Is not this covered in test plan item - #67274 where it asked to test simple filtering which is this feature?

@sandy081 sandy081 added the verified Verification succeeded label Jan 30, 2019
@isidorn
Copy link
Contributor

isidorn commented Jan 30, 2019

@sandy081 yes it is, I appologize was not aware that Joao will create that test plan item.

@andyl
Copy link

andyl commented Jan 31, 2019

I download today's insiders and gave this feature a try. I found that I can search for individual directory names only if they are open. Could not do a fuzzy-search for a directory in a path: eg "test/models/membership/"... Could not search for a directory that is closed. Is there a way to do these things? (I'm using 1.31.0-insider Date 2019-01-30)

@potatoqualitee
Copy link

ditto @andyl - i found a newly opened issue regarding that problem here: #66971

@jaykilleen
Copy link

For now (not an insider) I have added some empty files to my directories like .s-specs, .s-views, .s-controllers. .gitignored them and now using Ctrl+P. This is ok for directories that I am frequently switching to and it is only a reasonably sized rails app (like 50 controllers etc).

@AntonPuko
Copy link

Hey guys, I understand that its a cool feature for many people, but is there a way to disable it? :) I couldn't find one :(

@TimvdHorst
Copy link

@AntonPuko add the next line to your VSCode settings.json:
"workbench.list.keyboardNavigation": "simple"

@vsizov
Copy link

vsizov commented Feb 14, 2019

I think that most of the people expected this feature to work differently.
When you start typing, you filter your folders/files in the root of the project. Then you hit "Enter" and you can now type again to filter folder/files in the selected directory. This is how it works in vim and some other editors.

Why not fuzzy finder? For example, you're looking for some particular file in application/database/migrations/.... Using fuzzy finder you would need to type all the pass application/database/migrations/ and then type something specific for you need. It's too annoying. While with the proposed search you would just type: ap[Enter]d[Enter]m[Enter] and then symbols specific to your need.

I was poking around of what you did here and I didn't find any use case for me or any other developer. Sorry.

Whatever you think about this comment, thank you for the best editor in the word.

@SetTrend
Copy link

SetTrend commented Feb 14, 2019

Actually, I expected the feature to work like Visual Studio 201x, Windows 10 and other Microsoft products:

No filter, just navigating the tree incrementally by typing, opening folders using using the RIGHT ARROW key, closing them using the LEFT ARROW key, and moving the focus item up/down by hitting the UP ARROW/DOWN ARROW key.

@dragonwolf83
Copy link

@SetTrend is correct. Filtering and Navigating are 2 different user stories with the expectation that both are usable without switching modes.

Navigating use case is about typing letters in the tree to focus the first item that matches. If an item is a child in a collapsed node, it would not be navigable until its parent is expanded. This is close to how Simple mode works, but it seems to not allow multiple letters which is how it works in Windows Explorer.

Highlighting breaks the navigation workflow by only navigating between matches. That should be a different key to jump to next match, much like search does.

Filtering really needs a search box which then searches for filename matches and optionally content matches. Issue #6697 is in the right direction for search. It just needs to be separated out from this navigation feature.

@Corps-Yan
Copy link

Update VSCODE to lateset version.
It has resolved.

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues feature-request Request for new features or functionality file-explorer Explorer widget issues verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests