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
Allow users to hide the jarring unthemed menu bar. Nearly every editor out there has this option, RStudio should too. As an example, VS Code allows for convenient unhiding by pressing "Alt" key.
How it would look in RStudio:
Before:
After:
My personal version information:
RStudio Edition : Desktop
RStudio Version : 1.4.1103
R Version : 4.0.3
OS Version : Linux Mint 20
Reacted by Salim B, Taimur Shah, Gosha Syunyaev, xuestrange, Matthew W. Thomas, mmc00, Sox, Tim Yang, mbak, Hans Van Calster and 6 more
@ronblum Added it to original issue request. Also this request is tangentially related to #3243 (that issues refers to Windows only, my proposition is crossplatform).
add a checkbox to Global Options / General / Other: "Hide menu bar until Alt-key pressed"
default should be unchecked (menu always visible, current behaviour)
the value of this setting is used to set the autoHideMenuBar flag when constructing the main-window, and it can also be modified at runtime via win.setMenuBarVisibility()
It seemed to work for me but it didn't work for Gary. The branch is probably quite stale now. I'll target this for next release to see if there's time to figure out what's going on.
Gary has updated the branch and doesn't see the problem anymore. I've added it to the next release.
I need to address the menu appearing in secondary windows (e.g. popped-out editors) when you tap Alt. We don't want to show the menubar on secondary windows!
Make the menu appear. Clicking the mouse makes the menu disappear
That is by design and is the built-in behaviour of Electron. Visual Studio code does the same (I only tested on Windows, with the menubar set to "Toggle").
Make the menu appear... use a shortcut like Alt+- to insert the assignment operator... the menu disappears
Also by design, and also happens in Visual Studio Code.
The idea with menubar hiding is that it is only shown briefly (i.e. when you are using the menu to find and select a command). It isn't meant to be something you can toggle on with "Alt" and keep around while you do other things.
Activity
ronblum commentedon Feb 9, 2021
@392781 Thank you for the suggestion! We'll review it as we continue development of RStudio. By the way, what version of RStudio and OS are you using?
392781 commentedon Feb 9, 2021
@ronblum Added it to original issue request. Also this request is tangentially related to #3243 (that issues refers to Windows only, my proposition is crossplatform).
gtritchie commentedon Feb 11, 2021
We should get this very inexpensively with Electron, see:
https://www.electronjs.org/docs/all#new-browserwindowoptions
gtritchie commentedon Mar 30, 2022
For Electron, on Linux and Windows (but not Mac):
autoHideMenuBarflag when constructing the main-window, and it can also be modified at runtime viawin.setMenuBarVisibility()26 remaining items
timtmok commentedon Nov 21, 2023
Gary has updated the branch and doesn't see the problem anymore. I've added it to the next release.
gtritchie commentedon Nov 21, 2023
I need to address the menu appearing in secondary windows (e.g. popped-out editors) when you tap Alt. We don't want to show the menubar on secondary windows!
gtritchie commentedon Nov 21, 2023
Waiting a couple of years and trying again is an unconventional but sometimes successful strategy.
ronblum commentedon Mar 6, 2024
Tested in RStudio Desktop 2024.04.0-daily+537 on Red Hat 9.3 and Windows 11.
Works
Altmakes the menu appears and disappearsIssue 1
<-appearsIssue 2
gtritchie commentedon Mar 6, 2024
@ronblum
That is by design and is the built-in behaviour of Electron. Visual Studio code does the same (I only tested on Windows, with the menubar set to "Toggle").
Also by design, and also happens in Visual Studio Code.
gtritchie commentedon Mar 6, 2024
The idea with menubar hiding is that it is only shown briefly (i.e. when you are using the menu to find and select a command). It isn't meant to be something you can toggle on with "Alt" and keep around while you do other things.
ronblum commentedon Mar 7, 2024
Aha! Then verified that this all works correctly. 👍
392781 commentedon May 17, 2024
Thanks y'all :^) Just downloaded the April release and it works like a charm.