-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Request: Right-click menu inside TerminalControl (w/ Copy & Paste?) #3337
Comments
Seems vaguely related to #1912 as well. This might require some more detailed design discussion. For example, if you right click on the titlebar (when tabs aren't in the titlebar), then it makes sense that these options would apply only to the active tab/pane. Start a selection in the current tab, copy the current tab's selected text, etc. What about if you right-click on a tab that's not focused? Would "copy" there copy the text from the unfocused tab? Would "find" still bring up the search dialog for the currently focused pane? |
Same request here. Not having a right-click menu seriously reduces Terminal's usability compared to MobaXterm on Windows and Konsole in KDE on Linux. |
@cor3ntin Literally this a million times over. That's what an actually useful terminal app is supposed to do/look like. |
You don’t need to throw shade to make your point. |
@DHowett-MSFT I'm just being honest. There's a reason I have Terminal installed but still use MobaXTerm, even for my WSL instance (which I had to blow away anyway to get an Insider Build update to take, but that's another story.) Stuff like lack of a right-click really diminishes the usefulness of a terminal emulator to me because I can't even use the context menu keyboard button in it. If I said otherwise I'd be lying. 🤷♂️ And no, I'm not a hater. More of my PCs run Windows 10 (5) than run any other OS and Windows is my daily driver at work and home. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This context menu should also include the pane commands |
@mdtauk Which other terminal apps have that feature? Just curious. Most multiplexing is done server-side via |
@jdrch the feature is there, however it can only be used via keyboard shortcuts. |
@mdtauk Ah. TIL! |
@jdrch Hyper, Terminator, Windows Terminal (see #1000), iterm2 |
This is why I think the feature needs more UI awareness |
More notes Do something like this.
|
Experimental for now. `experimental.rightClickContextMenu`, a per-profile setting. Long term we want to enable full mouse bindings, at which point this would be replaced. Closes #3337 This adds **two** context menus to the `TermControl` - one for right-clicking with a selection, and one without. The implementation is designed to follows the API experience of the context menu on something like a [`RichEditBox`](winui2gallery://item/RichEditBox). The hosting application adds a handler for the menu's `Opening` event, and appends whatever items it wants at that time. So `TermControl` only implements a few "actions" by default - copy, past, find. `TerminalApp` is then responsible for adding anything else it needs. Right now, those actions are: * Duplicate tab * Duplicate pane * Close Tab * Close pane Screenshots in #14775 (comment)
Where do I've to put |
That just merged on Friday - it's only available in |
In the mean time can I change the behavior of the right click or disable to completely? |
Nope, sorry. |
so a year has passed, and it seems that the context menu should be in the preview version. |
It's not in the settings UI anywhere (as of 1.19 / 1.20), but you can add it in to the settings.json file manually, with
under any profile |
(I also went ahead and added it to the SUI in #16809. Sorry we forgot about it so long!) |
Where is this located again? Dumb question, sorry. |
What version is |
Oh I see, it's a per-profile setting. I learned about the setting here: https://learn.microsoft.com/en-us/windows/terminal/customize-settings/interaction - there, it says the settings on that page belong to the root of settings.json. |
As noted in #3337, we never actually added this menu to the settings. Since we're planning on taking this out of "experimental" in 1.21, we should have a visible setting for it too.
This comment was marked as outdated.
This comment was marked as outdated.
Update: follow these instructions to add I did the above and it worked just fine. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Note to self: write the spec for #1553, so that we can make this (context menu) the default. |
I use cmd.exe's right-click on the menu bar to Select All, Mark, Find, Copy, and Paste. I would like Windows Terminal to support a similar feature.
Conhost.exe
I also get the right mouse button on WSL's Ubuntu console.
The text was updated successfully, but these errors were encountered: