-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Panels should toggle focus between editor and panel just like other views #7540
Comments
I have already implemented this for Problems view. |
I implemented a base action that toggles the focus just like ToggleViewletAction |
The terminal is planning |
-1 for doing this for the output because there is really no use case for putting focus into the output panel. I often use Cmd+Shift+U to quickly bring in the output to see for compile errors and then want to dismiss it again. |
In Sublime, |
@Tyriar You are right.. all panels are having that behavior now (toggle display and focus). I think not toggling the display would be better user experience. Switching focus between active editor and panels like Problems, Terminal and Debug would be really helpful. Instead of inventing a new command for this, it would be good to slightly change the existing command to do this. This will also be consistent with views behavior. @bpasero Yah, I do not think of any use case either. But I think this would cause some inconsistency.. To dismiss any panel, user can use Ctrl/Cmd + J. |
I would be very cautious about changing the current keyboard short cut toggling behavior for the panels. Developers get muscle memory (Ctrl+Shift+Y, Ctrl+Shift+U, Ctrl+`) for quickly bringing up and dismissing a panel and they likely won't be happy if it changes. I don't think there is harm in having duplication with Ctrl+J to toggle any active panel. |
That is a valid point. But since we are simplifying views by getting them under single section, it is also important to have consistent behavior. All views:
I think users might like this simplification and consistency and accept the change. |
@gregvanl Another usecase where user wants to toggle focus between editor and Problems view (or other views in bottom)
|
-1 for this proposal - I personally do not think it is adding value for the output and debug panel. As Ben pointed out giving the focus to the output does not make much sense also. |
Since this is still under discussion, I reverted Problems views to be consistent with other bottom views. |
Can we add the |
I suggest we bring this up in tomorrow's ux sync. |
To summarise, as of today:
I think we did this originally for the panel because we wanted it to dismiss very easily. For viewlets the behaviour is afaik very very old, and maybe we did not have a UX discussion on this after all. I think changing the behaviour for views is a questionable idea because all users might be very used to be able to quickly jump between view and editor using the keybindings. For the panels I think we have some room to change the behaviour because they are relatively new. Though I am not sure if our current behaviour is good or bad, so we might still cause issues changing it for some users. At least, I give us +1 to be consistent (all views behave the same, all panels behave the same). |
My 2c but is it possible just to get a focus panel action? Currently the only solution to refocus the panel is to toggle close it and open it again. |
That would make sense, we have it for the sidebar already: @isidorn can we add it as global command? I noticed that this command will actually open the sidebar if it is closed, so it should do the same for panels. |
Added the global workbench action to focus into panel so we are consistent with the sidebar |
@isidorn That was incredibly fast, thanks. |
I want to remove |
Introducing a separate action for focussing the panels brings much closer to our views behavior and its a good step forward. Regarding toggling panels, I do not know how users might react with the change. I think we can close this and probably wait for feedback for the change. |
Personally, I've bound cmd+0 to the new focus panel action. Although I'm a keyboard junkie, I don't need keyboard focus in the explorer as that is a mouse-only part of the screen for me. On the other hand, it was frustrating that I could not get focus in an open terminal window without double ctrl+`. I like the cmd+0 binding as it mirrors the functionality with cmd+1, cmd+2, etc ... In any case, thank you for the new action and an amazing editor! |
I most commonly use the errors panel to jump to the next error. The toggle behavior makes this a little awkward, because I'd:
I could use different shortcuts depending on which panel is active, but that seems awkward. Focus as the default action for panels seems to make sense to me even for output, as I'd usually want to use pgup/pgdn to navigate once it's up. In most cases when I close the panel, focus is already in the panel, so I can hide via the escape key. A keyboard shortcut dedicated to this doesn't seem necessary, though others may disagree. @sandy081 has already voiced these opinions, so this is mostly agreeing with the original proposal. |
Current behavior of panels is to toggle visibility when
Eg: Ctrl + Shift + U toggles visibility of the output panel.
Instead they should be having the same behavior as other views like Explorer, Search, Git, Debug.
They toggle the focus between active editor and themselves.
The text was updated successfully, but these errors were encountered: