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
Panels should toggle focus between editor and panel just like other views #7540
Current behavior of panels is to toggle visibility when
Selecting them from the View menu
Using key board short cuts
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.
Easy to navigate between editor and panels
Makes consistent across
Removes duplicate behavior: there is a specific command (Ctrl + J) to toggle panel's visibility
-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.
Daniel Imms (@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.
Benjamin Pasero (@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.
Do you think is there any loss of functionality if we make Output panel consistent with other panels?
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.
Greg Van Liew (@gregvanl) Another usecase where user wants to toggle focus between editor and Problems view (or other views in bottom)
While fixing problems or debugging its most common to navigate between editor and views. Currently, you would need to toggle the view twice to get this.
-1 for this proposal - I personally do not think it is adding value for the output and debug panel.
The users are already used to the current behavior and changing that might break their muscle memory.
As Ben pointed out giving the focus to the output does not make much sense also.
If you disagree then we should bring this item up on the next ux meeting.
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).
That would make sense, we have it for the sidebar already:
Isidor Nikolic (@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.
I want to remove workbench.action.terminal.focus in favor of workbench.action.focusPanel now, but I see you removed the command deprecation code in 375bd62Benjamin Pasero (@bpasero)? I would think that this code should stay in for good, with the command mappings being present for at least several versions (I just got a bug of several people experiencing issues upgrading 1.0 to 1.3 for example).
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:
Shift + Ctrl + M to navigate to the first error
Fix the error
Use Shift + Ctrl + M close the errors panel
Use Shift + Ctrl + M open the errors panel + focus
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.
Sandeep Somavarapu (@sandy081) has already voiced these opinions, so this is mostly agreeing with the original proposal.
Reacted by Dave, Kevin Berridge and Antti Holvikari
Activity
sandy081 commentedon Jun 10, 2016
I have already implemented this for Problems view.
sandy081 commentedon Jun 10, 2016
I implemented a base action that toggles the focus just like ToggleViewletAction
https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/browser/panel.ts
Tyriar commentedon Jun 10, 2016
The terminal is planning
toggleandfocuscommands, users are going to want a combined toggle visibility and focus which is what toggle currently is.bpasero commentedon Jun 11, 2016
-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.
yisibl commentedon Jun 12, 2016
In Sublime,
Ctrl + Jused to make multiple lines of text into one line.sandy081 commentedon Jun 13, 2016
Daniel Imms (@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.
Benjamin Pasero (@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.
Do you think is there any loss of functionality if we make Output panel consistent with other panels?
gregvanl commentedon Jun 16, 2016
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.
sandy081 commentedon Jun 17, 2016
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.
sandy081 commentedon Jun 23, 2016
Greg Van Liew (@gregvanl) Another usecase where user wants to toggle focus between editor and Problems view (or other views in bottom)
isidorn commentedon Jun 23, 2016
-1 for this proposal - I personally do not think it is adding value for the output and debug panel.
The users are already used to the current behavior and changing that might break their muscle memory.
As Ben pointed out giving the focus to the output does not make much sense also.
If you disagree then we should bring this item up on the next ux meeting.
sandy081 commentedon Jun 24, 2016
Since this is still under discussion, I reverted Problems views to be consistent with other bottom views.
FrenchBen commentedon Jun 27, 2016
Can we add the
Explorerpanel to this list?CMD + Shift + E- Should toggle the Explorer panel's visibility.3 remaining items
bpasero commentedon Jul 6, 2016
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).
andrew-w-ross commentedon Jul 8, 2016
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.
bpasero commentedon Jul 8, 2016
That would make sense, we have it for the sidebar already:
Isidor Nikolic (@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.
isidorn commentedon Jul 8, 2016
Benjamin Pasero (@bpasero) sure I can add this. While adding this let me try to wrap up on the whole issue.
Did we land on something here Sandeep Somavarapu (@sandy081) ?
panel: add focus panel action
isidorn commentedon Jul 8, 2016
Added the global workbench action to focus into panel so we are consistent with the sidebar
andrew-w-ross commentedon Jul 8, 2016
Isidor Nikolic (@isidorn) That was incredibly fast, thanks.
Tyriar commentedon Jul 8, 2016
I want to remove
workbench.action.terminal.focusin favor ofworkbench.action.focusPanelnow, but I see you removed the command deprecation code in 375bd62 Benjamin Pasero (@bpasero)? I would think that this code should stay in for good, with the command mappings being present for at least several versions (I just got a bug of several people experiencing issues upgrading 1.0 to 1.3 for example).panel: add focus panel action
sandy081 commentedon Jul 14, 2016
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.
pkazmier commentedon Jul 14, 2016
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!
thematthopkins commentedon Jul 21, 2016
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.
Sandeep Somavarapu (@sandy081) has already voiced these opinions, so this is mostly agreeing with the original proposal.