-
Notifications
You must be signed in to change notification settings - Fork 689
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
Introduce option to right click to copy #4404
Comments
I second this. I'd also like an option for middle-click to paste; unless it already exists. |
I use the middle mouse button (via Logitech Options+) for Mac's Mission Control, so it would be great to be able to have paste on right click as I already use |
I don't mean to hijack, but would it make sense to do right click to paste while you're doing this work as well? See 3783. |
In other terminals, you right click on a URL and it gives the option to Open Link. |
There is already a In Windows Terminal, the mouse behavior have more optoins:
https://learn.microsoft.com/en-us/windows/terminal/selection#mouse-support |
I believe the intended feature is something along these lines Right Click to Copy MR |
Before we start merging pull requests, we should really spend some more time thinking about the best config for this. I'd recommend something like this:
|
The goal with this was to solve a short term problem. Long term, we need a generic I'd be fine considering I suppose my main argument is I'm not sure its worth added complexity for now, this is just a particularly common request. For your |
|
There's also #3438 and #3783 and #5145. The second is from the same author as the first comment jcollie linked, so deduplicating would mean four separate instances. Multiple people in those discussions I linked seem to want both copy and paste on right click (copies if there is a selection, pastes otherwise), perhaps that should be accommodated by |
Here's a potential syntax for a general mouse button action config. The performable prefix is mainly meant for use with the
The difference between If we're not ready to implement that,
|
Discussed in #4381
Originally posted by 7ijme January 2, 2025
When I right-click, I don't want a context menu to open. I want it to copy the current selection.
This is what it looks like now:

Solution
We should introduce a new configuration option
copy-on-right-click
(similar tocopy-on-selection
), boolean default to "false" that can be set to true by those who wish for this behavior.When true, context menus are disabled and text is copied. When mouse reporting is enabled, this should also copy so long as there is an active selection.
We should make this work on both macOS and Linux. This is more prevalent in the Linux world but I see no reason to disallow it on macOS since it's opt-in.
The text was updated successfully, but these errors were encountered: