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
Actions similar to Close, Close All, and Close All Except Current would make sense in a document tab’s context menu. I always find myself right-clicking tabs and expecting it.
Since Close and Close All Except This would refer to the right-clicked tab in the context menu, only Close All would reuse the closeAllSourceDocs action.
Reacted by omar, Travis Hinkelman, Peter Gensler, Shiro Kuriwaki, Christophe Dervieux, DrRZ, Tomasz Kubicki, Hugo Gruson, MarcoPortmann, Sangdon Lim and 2 more
I would like to suggest a feature to add to the right-click menu of the tabs in the Source panel, i.e. the list of opened scripts. This right-click menu currently only contains "Reload" and "Inspect" (like the right-click menu on the tabs of all the other panels).
It would be nice to have the option to "Copy file name" and "Copy full path", so I could paste this into my code (for use in source() commands). Currently, I have to to navigate to the source file outside of R to copy long file names, which is a minor nuisance.
It might be possible to do what we want by intercepting the right-click and drawing our own menu. If not (and/or we only want to do this for desktop), QtWebEngine supports custom context menus. We already do some customization here:
RStudio Edition : Desktop
RStudio Version : 1.4.1522
OS Version : mac OS 11.1
R Version : 4.0.2
Failure Points / Repro Steps
Close All Others context menu option fails to function as expected for documents in Source Editor.
Open multiple documents in original Source Editor Pane.
Click View -> Panes -> Add Source Column, and open multiple documents in the secondary Source Editor Column.
Left-click on a document in the secondary column to bring it into focus.
Right-click on any of the document tabs in the original column and choose Close All Others
Expected: All documents except the one that you right-clicked on should close.
Actual: All documents close.
Successful Verification Points
Verified that the Close context menu option functions as expected for Terminal and Jobs tabs. Also functions as expected for various document types both in and out of focus and across multiple columns for the Source Editor.
Verified the Close All context menu option functions as expected for various document types both in and out of focus and across multiple columns for the source editor.
Activity
kevinushey commentedon Jan 2, 2018
Note, this requested is tracked in #7289
A similar request: https://support.rstudio.com/hc/en-us/community/posts/115007964793-Feature-suggestion-Copy-path-on-Source-tab-right-click-menu
I would like to suggest a feature to add to the right-click menu of the tabs in the Source panel, i.e. the list of opened scripts. This right-click menu currently only contains "Reload" and "Inspect" (like the right-click menu on the tabs of all the other panels).
It would be nice to have the option to "Copy file name" and "Copy full path", so I could paste this into my code (for use in source() commands). Currently, I have to to navigate to the source file outside of R to copy long file names, which is a minor nuisance.
Thank you!
kevinushey commentedon Feb 14, 2018
It would also be useful to have the ability to rename files within such a context menu. See also: #2199
jmcphers commentedon Feb 14, 2018
It might be possible to do what we want by intercepting the right-click and drawing our own menu. If not (and/or we only want to do this for desktop), QtWebEngine supports custom context menus. We already do some customization here:
rstudio/src/cpp/desktop/DesktopWebView.cpp
Lines 143 to 165 in 98a8b90
kevinushey commentedon Feb 15, 2018
We also do this for the Git pane, directly from GWT:
It looks like we could likely just add a GWT ContextMenuHandler as required?
rstudio/src/gwt/src/org/rstudio/core/client/widget/MultiSelectCellTable.java
Lines 119 to 125 in 03c7e55
kevinushey commentedon Mar 2, 2018
Also, from https://community.rstudio.com/t/sort-source-file-tabs-alphabetically-in-ide/5760, a request to sort document tabs (e.g. alphanumerically)
add context-menu to document tabs
gtritchie commentedon Nov 23, 2020
Implemented via #8375
3 remaining items
valerie-rstudio commentedon Jan 27, 2021
Verify Failed
Failure Points / Repro Steps
Close All Others context menu option fails to function as expected for documents in Source Editor.
Successful Verification Points
gtritchie commentedon Jan 28, 2021
Looking into it, thanks for the detailed notes.
gtritchie commentedon Jan 29, 2021
Opened a new issue for the identified failure (#8855), closing this to mark the overall creation of context menu as completed.
dmurdoch commentedon Sep 26, 2021
There was a pointer to this issue from https://community.rstudio.com/t/sort-source-file-tabs-alphabetically-in-ide/5760 a few years ago. However, it seems that request for a way to sort the tabs never made it into the context menu. Is there somewhere else where suggestions for this new context menu should be posted?
jmcphers commentedon Sep 27, 2021
@dmurdoch Yup, just file them as a new issue.