-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
No keyboard friendly way to open multiple files in the current editor group #42573
Comments
I agree we could improve this experience. Assigning to february to investigate then. |
The issue is that the explorer is reacting on selection change events and opneing files then. |
@bpasero fyi I have introduced |
@isidorn I am not sure that is a good idea, we have a generic We should not introduce new commands for the same thing for specific trees/lists, that will just make it very hard for users to get the proper behaviour on other trees/lists. |
@isidorn I am not sure I can follow, maybe we talk next week in person. I thought this was about being able to open multiple files with keyboard? |
@bpasero sorry about that I misunderstood you in the previous comment. Let's take a step back. So a lot of people are depending on selection change to open a file in the explorer. So I could bring back the old behavior, and introduce a command only if multiple files are selected in the explorer. That way I would not break any behavior and you would be able to open multiple at once. |
I think that this is a consequence of the commands we introduced 2 years ago where we adopted every tree to open something on selection if possible. Previously we had ugly I would take a step back and think about what the user would expect: if on Windows you hit Enter on 2 files selected in the windows explorer, both open. Same for macOS if you select 2 files and hit Maybe we should do a similar thing as with Lists where we have an explicit |
Ok. So first let me revert my commit. This is a bit complex subject because in our list and tree we have both focus and selection (I personally never understood the benefit of that). |
@isidorn well focus is (or should) always just one and the item that currently has keyboard focus. Selection can be multiple depending on what the user does. I think the issue stems from the fact that we overload selection and open for the tree. Maybe we can first fix it for the List and then see if that is possible given it distinguishes selection from opening. How is expand/collapse playing any role here? I would not expect a selection to change the expansion state of an item? |
For reasons that are not obvious to me, issue #43676 was folded into this. I'd just like to make a reminder that even though the title of this issue is No keyboard friendly way to open multiple files in the current editor group, there is still the following problem: There is no keyboard friendly way to open A SINGLE FILE in the current editor group IMHO, that problem is much more important. Opening multiple files is a corner case. Opening a single file is something I do multiple times per hour. |
@Mellbourn doesn't |
Mellbourn Totally agree. This is marked as a feature. Nevermind. I see |
@isidorn Yes it does! Awesome! I had not found that command. It wasn't obvious to me that "list.select" means "open selected file". Maybe this can be named more clearly? Anyway, thanks for the solution! |
We are already in endgame, and from Thu I am on vacation -> pushing this to April |
Select multiple files and press |
Testing #41473
Open to Side
, but there is no way to open in the current editor groupWhen
"workbench.editor.enablePreview": false
, I'd have expected pressing Enter to have opened all the selected files in the current editor group.Single click or Enter on a file opens it, so shouldnt the multi-select follow the same?
We sure can drag the files to the current editor group, but thats not keyboard friendly
The text was updated successfully, but these errors were encountered: