Skip to content

Provide a picker of opened editors excluding duplicates #128874

@macintacos

Description

@macintacos

TLDR; I would like to have the ability to invoke a command to open a searchable list of all of the open files in a given window of VSCode, de-duplicated, regardless of what "group" they are located in. When "selecting" the file, the file would then open in the current editor group (or the last-used one if you're outside of an editor when you invoke the command) that the file is located in. Consider this an editor-group-agnostic file list picker.

To clarify: this is basically how Vim's buffer-chooser works when in a given split.


Essentially, the problem I'm trying to solve mostly stems from the fact that I do not care for editor tabs at all. I turn off tabs in VSCode, and typically navigate around by just searching for the file I want and opening it in the current editor.

The problem you run into with this approach is that, when trying to search through the list of files that are currently open, VSCode seems to deeply care about where that file is located (i.e. which group it's located in). The first problem that this introduces for me is that it shows the user duplicates of the file that is open in all groups.

All told, this is a minor issue and I would be fine with it, but what ends up happening is that when I have a bunch of split editors open and I put my cursor in the editor window I want the file to open in, if I use the command to search through just the open files in my editor, and that editor happens to be in a different group, VSCode navigates to the file that is already open in the other group and switches my input focus to that group. I find this to be behavior that I really don't want - I always want to open the file that I search for in the editor I'm currently in.

Perhaps if there was an option to always open files in the last editor that had focus, that'd solve my problem, however I would find it really valuable if there were a quick-pick list of all of the files I have open (listed only once, regardless of what group they're in), plus the ability to open that file in the editor I'm currently in. I don't like going to the file, I want the file to come to me (if that makes sense).

Please let me know if you need any further clarification on this. I find that this concept is hard to describe to folks who use tabs all the time when editing.

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityquick-openQuick-open issues (search, commands)workbench-editorsManaging of editor widgets in workbench window

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions