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
Keyboard shortcut for exclusively showing "Source" and "Console" panes #5498
While working with RStudio, one would frequently need to work with a pane structure including only "Source" and "Console" panes. That will be used, for example, when sourcing different parts of the source file step by step and examining the outputs of each step in the console.
Because of the frequent use of the above pane structure, I think it would be helpful to have a keyboard shortcut that always forces the pane structure to follow this structure regardless of the currently displayed pane structure.
Reacted by Kendon Bell, Maciej Motyka, Clay Morrow, Fran Barton and Rasmus Hertzum
@hzarkoob Thank you for the suggestion. Are you looking for something that combines "Zoom Source" (CTRL-SHIFT-1) and "Zoom Console" (CTRL-SHIFT-2) , into something like "Zoom Source and Console"?
A side note. One can get the above pane structure if they manually hide the two panes on the left side (I assume we are working with the default pane structure) and keep only the Source and Console panes. Then, if they keep pressing CTRL-SHIFT-1 (or CTRL-SHIFT-2), the pane structure keeps alternating between "Source only" (or "Console only") and "Source and Console together." This is a good thing and already works in many situations. But it still will be very helpful to have a keyboard shortcut that helps to display the suggested pane structure (as you mentioned, it can be called "Zoom Source and Console") regardless of the current pane structure and the pane structure immediately before it.
Reacted by Ron Blum, Maciej Motyka, Fran Barton and Rasmus Hertzum
Yes, please! I'm also constantly closing the right-hand side panels by dragging the divider. It's (almost) the only thing that forces me to use a mouse when working in Rstudio. Many people don't like or have trouble using a mouse.
Reacted by Clay Morrow, Fran Barton and Rasmus Hertzum
I would like to suggest that, in the same way CTRL-SHIFT-1 toggles between "move focus to source" and "return focus to previous layout" (as @hzarkoob points out), it would be useful if CTRL-SHIFT-ALT-0 would toggle between "show all panes" (as it currently does) and "return focus to previous layout" (source and console, for example).
Activity
ronblum commentedon Oct 3, 2019
@hzarkoob Thank you for the suggestion. Are you looking for something that combines "Zoom Source" (CTRL-SHIFT-1) and "Zoom Console" (CTRL-SHIFT-2) , into something like "Zoom Source and Console"?
hzarkoob commentedon Oct 3, 2019
@ronblum That is right!
A side note. One can get the above pane structure if they manually hide the two panes on the left side (I assume we are working with the default pane structure) and keep only the Source and Console panes. Then, if they keep pressing CTRL-SHIFT-1 (or CTRL-SHIFT-2), the pane structure keeps alternating between "Source only" (or "Console only") and "Source and Console together." This is a good thing and already works in many situations. But it still will be very helpful to have a keyboard shortcut that helps to display the suggested pane structure (as you mentioned, it can be called "Zoom Source and Console") regardless of the current pane structure and the pane structure immediately before it.
ronblum commentedon Oct 3, 2019
@hzarkoob Clever workaround!
maciejmotyka commentedon Dec 10, 2019
Yes, please! I'm also constantly closing the right-hand side panels by dragging the divider. It's (almost) the only thing that forces me to use a mouse when working in Rstudio. Many people don't like or have trouble using a mouse.
morrowcj commentedon Jan 22, 2020
I would like to suggest that, in the same way CTRL-SHIFT-1 toggles between "move focus to source" and "return focus to previous layout" (as @hzarkoob points out), it would be useful if CTRL-SHIFT-ALT-0 would toggle between "show all panes" (as it currently does) and "return focus to previous layout" (source and console, for example).
stale commentedon Feb 5, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
jmcphers commentedon Feb 10, 2021
Good news, this is now part of RStudio!
morrowcj commentedon Feb 10, 2021
Wow, this is great! Thanks for the update. I'll check it out.