You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add ability to clear recently opened files from open file dialog #3260
As far as I can tell, there is no way to clear the list of recently opened files that appears on the CMD+P window.
My problem: I have excluded node_modules from searching. Sometimes I open a package.json file from inside node_modules by navigating from the explorer.
After that, CMD+P then typing 'package.json' shows all of the package.json files that are in the recently opened list, even though some are from the node_modules directory which is normally excluded from search.
This can be useful behavior, but the user should be able to clear out the recently opened list so that the search exclusion rules can go back to hiding those files.
There should be a clear all recently opened files button/command. It may be worth considering a way to clear specific items with an 'x' on the open file dialog that appears with CMD+P. Or perhaps a special command for clearing recently opened files that match any search exclusion rules.
Sounds similar to #1662, but that one is for clearing recent files from the OSX dock icon.
Reacted by John, André Gomes, Charlie Jonas, Muma, Csaba Illes, Yoann, Ike Saunders, Davi Medeiros, Callum Macdonald, Georgi Serev and 7 more
This is somewhat related to my issue #3215 since every time an unwanted file is opened via debugger - it puts itself into the dropdown list. So almost after any debug session it gets even harder to restore the workspace because the originally opened in that edit view file drops on the bottom of totally cluttered with trash list.
Thanks Benjamin Pasero (@bpasero). The 'Close File' command solves my problem. If this feature gets implemented, it would still make managing the recent list more efficient and intuitive.
It seems odd that clicking to remove files from the 'Working Files' list does not remove the files from the recently used list.
I usually navigate through my files via ctrl + tab and ctrl + shift + tab but control which files I work with in WORKING FILES. Since open files automagically ends up in WORKNG FILES it is nice a UX if I can control my files navigation through WORKNG FILES.
Benjamin Pasero (@bpasero) In case you guys go with my proposed file navigation flow, then recently opened should be renamed to working files.
About the recently opened files feature - I don't have any need for it.
The shortcut is Cmd+K Up and Cmd+K Down (on Windows use the Ctrl key).
IMHO, that's is annoying. Navigate history is much nice - only it should be WORKING FILES.
Not sure what you mean. Do you mean ctrl+k+down or ctrl+p and then ~? Anyway, ctrl+k+down cycles down through the working files but without the nice UI dropdown list that is right in front of my eyes. Instead I have to look to the upper left of the screen which is great deal slower once you get used to use recently opened.
My point is, that working filesis my recent files because each file I open ends up in the working files list. The UX for recently opened files is extremely well done but lack the ease of removing files I don't want to cycle through.
So vscode has two almost identical features, where one is easy to manage (working files) and the other is easy to use (recently opened).
Just to be clear. Don't change the UI. Just keep working files and recently opened in sync. Try it out in a beta. I'm sure it will prove to be a very nice UX
David (@CreepGin) you can use the "Remove from Editor History" command to remove one entry from the list. It will open the picker to select a file to remove. I know this is not the ideal UI but is a workaround for not having "X" in the list.
Reacted by David, mrcrowl, kurtkriegler, Alon Bukai, keremispirli, Brad Barwick, wardw, Kumar Harsh, Yohanna, Max Levy and 17 more
Reacted by Alon Bukai
Reacted by Christopher Schmitz, BlakeMScurr, Kyle Roach and Joshua
As several others have pointed out in issues regarding the Recently Opened list (cmd+p), a config option such as history.exclude may be in order. Or, have the Recently Opened list respect search.exclude.
This is because the Recently Opened list is always prone to containing bad items as time goes on and we accidentally open unwanted files in the editor.
Reacted by Kristen, Joseph Kim, Charlie Jonas, Matthew Kesler, Alan Christensen, EricH and Chez Fre
Activity
Spown commentedon Feb 22, 2016
This is somewhat related to my issue #3215 since every time an unwanted file is opened via debugger - it puts itself into the dropdown list. So almost after any debug session it gets even harder to restore the workspace because the originally opened in that edit view file drops on the bottom of totally cluttered with trash list.
bpasero commentedon Feb 29, 2016
You can remove entries from the list by opening an entry and invoking the "Close File" command (Cmd+K W).
I do agree though that it is nice to have more control over the recent list.
JordanBelford commentedon Feb 29, 2016
Thanks Benjamin Pasero (@bpasero). The 'Close File' command solves my problem. If this feature gets implemented, it would still make managing the recent list more efficient and intuitive.
It seems odd that clicking to remove files from the 'Working Files' list does not remove the files from the recently used list.
dotnetCarpenter commentedon Mar 9, 2016
Jordan Belford (@JordanBelford) I was thinking the same. Benjamin Pasero (@bpasero) How about syncing WORKING FILES and recently opened?
I usually navigate through my files via
ctrl + tabandctrl + shift + tabbut control which files I work with in WORKING FILES. Since open files automagically ends up in WORKNG FILES it is nice a UX if I can control my files navigation through WORKNG FILES.dotnetCarpenter commentedon Mar 9, 2016
Benjamin Pasero (@bpasero) In case you guys go with my proposed file navigation flow, then recently opened should be renamed to working files.
About the recently opened files feature - I don't have any need for it.
dotnetCarpenter commentedon Mar 9, 2016
Benjamin Pasero (@bpasero) just found your answer: http://stackoverflow.com/questions/30813614/keyboard-shortcuts-for-navigating-working-files-in-vscode
Gonna re-map the keyboard to work as I proposed but is sorely missing the UI from the
Navigate history.bpasero commentedon Mar 9, 2016
In our latest release you can quick open working files, you can also have a key binding for it. Use the ~ prefix in quick open to get that list.
dotnetCarpenter commentedon Mar 10, 2016
Not sure what you mean. Do you mean
ctrl+k+downorctrl+pand then~? Anyway,ctrl+k+downcycles down through the working files but without the nice UI dropdown list that is right in front of my eyes. Instead I have to look to the upper left of the screen which is great deal slower once you get used to use recently opened.My point is, that working files is my recent files because each file I open ends up in the working files list. The UX for recently opened files is extremely well done but lack the ease of removing files I don't want to cycle through.
So vscode has two almost identical features, where one is easy to manage (working files) and the other is easy to use (recently opened).
Why not merge the two features?
dotnetCarpenter commentedon Mar 10, 2016
Just to be clear. Don't change the UI. Just keep working files and recently opened in sync. Try it out in a beta. I'm sure it will prove to be a very nice UX
bpasero commentedon Mar 10, 2016
Jon Ege Ronnenberg (@dotnetCarpenter) it is
Ctrl+K Ctrl-Pto open the working files picker.3 remaining items
bpasero commentedon May 23, 2016
For June we plan to provide an action that clears:
CreepGin commentedon Aug 15, 2016
For people who got here searching for how to clear the history (cmd+shift+p):
Though I must admit, it would be nice to be able to remove specific files from the history.
Adding a "X" icon next to each item sounds good to me. This way we don't need to clear the entire history to get just one bad item out of there.
bpasero commentedon Aug 15, 2016
David (@CreepGin) you can use the "Remove from Editor History" command to remove one entry from the list. It will open the picker to select a file to remove. I know this is not the ideal UI but is a workaround for not having "X" in the list.
CreepGin commentedon Aug 19, 2016
Benjamin Pasero (@bpasero) Thanks! That'll do it for now.
As several others have pointed out in issues regarding the Recently Opened list (cmd+p), a config option such as
history.excludemay be in order. Or, have the Recently Opened list respectsearch.exclude.This is because the Recently Opened list is always prone to containing bad items as time goes on and we accidentally open unwanted files in the editor.
dbrodie commentedon Jun 14, 2017
Benjamin Pasero (@bpasero) Sadly that doesn't work for files that don't exist anymore. I had a file that was moved and I couldn't remove the old file.
bpasero commentedon Jun 15, 2017
This command works for any entry, there is no dependency on the file existing on disk or not (there is not even a check).
dbrodie commentedon Aug 2, 2017
Sorry, you are correct, I misunderstood how to use the feature.
Thank you, works great!