Skip to content

Add ability to clear recently opened files from open file dialog #3260

Closed

Description

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.

screen shot 2016-02-22 at 11 46 37 am

Sounds similar to #1662, but that one is for clearing recent files from the OSX dock icon.

Activity

  1. Spown commented on Feb 22, 2016

    @Spown

    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.

  2. bpasero commented on Feb 29, 2016

    @bpasero
    Contributor

    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.

  3. added
    feature-request
    on Feb 29, 2016
  4. JordanBelford commented on Feb 29, 2016

    @JordanBelford
    Author

    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.

  5. dotnetCarpenter commented on Mar 9, 2016

    @dotnetCarpenter

    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 + 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.

  6. dotnetCarpenter commented on Mar 9, 2016

    @dotnetCarpenter

    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.

  7. dotnetCarpenter commented on Mar 9, 2016

    @dotnetCarpenter

    Benjamin Pasero (@bpasero) just found your answer: http://stackoverflow.com/questions/30813614/keyboard-shortcuts-for-navigating-working-files-in-vscode

    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.

    Gonna re-map the keyboard to work as I proposed but is sorely missing the UI from the Navigate history.

  8. bpasero commented on Mar 9, 2016

    @bpasero
    Contributor

    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.

  9. dotnetCarpenter commented on Mar 10, 2016

    @dotnetCarpenter

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

  10. dotnetCarpenter commented on Mar 10, 2016

    @dotnetCarpenter

    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

  11. bpasero commented on Mar 10, 2016

    @bpasero
    Contributor

    Jon Ege Ronnenberg (@dotnetCarpenter) it is Ctrl+K Ctrl-P to open the working files picker.

  12. 3 remaining items

  13. bpasero commented on May 23, 2016

    @bpasero
    Contributor

    For June we plan to provide an action that clears:

    • the editor navigation history (Cmd+P)
    • the history of recently closed tabs
    • the forward/backward history
  14. added
    *duplicate
    on Jun 27, 2016
  15. CreepGin commented on Aug 15, 2016

    @CreepGin

    For people who got here searching for how to clear the history (cmd+shift+p):

    image

    Though I must admit, it would be nice to be able to remove specific files from the history.

    image

    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.

  16. bpasero commented on Aug 15, 2016

    @bpasero
    Contributor

    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.

    image

  17. CreepGin commented on Aug 19, 2016

    @CreepGin

    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.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.

  18. dbrodie commented on Jun 14, 2017

    @dbrodie

    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.

  19. bpasero commented on Jun 15, 2017

    @bpasero
    Contributor

    This command works for any entry, there is no dependency on the file existing on disk or not (there is not even a check).

  20. dbrodie commented on Aug 2, 2017

    @dbrodie

    Sorry, you are correct, I misunderstood how to use the feature.
    Thank you, works great!

  21. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatefeature-requestfile-explorerworkbench-tabs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions