-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feature Request: Mouse/Touch/Pointer Bindings (like middle-click paste, right-click context menu, etc.) #1553
Comments
A few things:
|
Probably related, make for example scrolling work when using vim etc....used to work fine for example in WSL terminal |
Can I pile on here -- can we get two finger scrolling on the mousepad? |
A small point that's probably obvious, but just to make sure it's said, can we make sure the default is and the defaults are to pass through mouse events within the terminal to the underlying VT, per #545? Customizability I like, but not as much as not breaking anything that would otherwise work. If someone's using, for example, tmux mouse support in conhost, they shouldn't have to grovel through the options to figure out why it doesn't work in Terminal. |
Though it's also being discussed in #524, I want to make sure it's tracked here that some people might not want copy-on-select. So that needs to somehow be included in these bindings. Though, that might make sense as a different setting, since I'm not sure if there are any other "onSelect" actions that would possibly make sense. |
Add something like "lines to scroll" option - in some cases scroll is too fast in terminal using touchpad. |
Is this issue dead? It's been... going on nearly 4 years since it was opened now? I like using "Windows Terminal", but there's still no way I can find to disable "right-click to paste" / "QuickEdit" like you can in PowerShell. |
i used to middle click paste, and it's hard for me to use windows terminal without this function. i love wt , but it still doesn't have this. |
Same here. This is the reason why I switched Windows Terminal to Alacritty a couple of weeks ago. |
simple autohotkey script to paste on middle button:
|
Nope, there's just plenty of other higher-priority work unfortunately. I've got a draft PR for an experimental setting just for the right-click context menu over in #14775. We however don't have a full spec for how we'd actually like to express the fullness of mouse bindings. That's the biggest blocker here - someone taking the time to enumerate what people have asked for and what's possible, and putting them together into a spec.
Those are the thoughts from the top of the dome. If someone wants to put together a proposal, I'd love to review it. Writing the code shouldn't be that hard, so long as we have the right de# place |
Well, the most pressing issue is probably to just paste the clipboard with the middle mouse button. As many linux terminals, e.g. in VMs, X-Servers like Xming, even in the windows version of git-bash, "paste" is always the middle mouse click. So using the right click in ms-terminal makes it kind of random to which click has to be used:
Guess what: you always use the wrong one. So in terms of a hamonized user exp would suffice for starters to "paste" with middle mouse button. The "generic covering all eventualities mouse configurator" is probably overkill for all those working in a hybrid environment. |
Wow, 5y and not solved? A trivial way to disable "quickedit" would suffice. |
I mean, there is: |
Just updated this to AHK 2.0:
|
It's 2024 and it's still not added :( Some companies don't allow the use of AutoHotKey on work machines. Please just add a simple "X11-style middle mouse button paste" option and it's perfect. If there's time to add more options in the future, even better. |
This comment has been minimized.
This comment has been minimized.
The lack of this simple feature has lost Microsoft more licensing revenue just at companies I worked at than it would have cost to pay a developer for a full year to implement-it. Apple is very thankful for all the Macs sold because "Windows Terminal is not compatible with our Linux servers" |
can y'all PLEASE stop venting your frustration in github issues? please consider how many patiently waiting users (who are in the same situation as you!) you're pinging vs. what you actually achieve here before posting. |
Prelle's comment was deleted because it was whinging. This: does not bring anything valuable to this conversation. I won't stand for whinging. Productive, constructive discussion - that I'm more than happy to have.
I'd love to see concrete evidence that the lack of middle-click-to-paste in the Terminal is truly causing Microsoft to lose revenue. Genuinely: solid evidence of that would probably allow us to instantaneously prioritize this work. Rarely do we get the opportunity to directly correlate individual features in a developer tool to direct dollars and cents. Please, if you have that data, I'd love to share it. Once again: I'd be more than willing to listen to and review a proposal here. It's a complicated problem space, to try and appropriately map all the requests to proper mouse bindings here. My notes from: #1553 (comment) still apply. The last attempt I made at this was in 2024, and I pushed my notes here: main...dev/migrie/s/1553-mouse-bindings. 1 I got bogged down in the potential syntax to address the multitude of linked features here. Footnotes
|
@zadjii-msft Unfortunately it looks like we are asking for making one small fixed window openable and your reply is that until your team figures out how to completely rebuild the whole cathedral that small window will remain fixed😢 I hope this explains the source of frustration and maybe even sparks some interest in actually solving this simple issue without the need to wait for the complete re-factor of the Terminal controls🙏 |
Implementing it in the control itself would be fairly trivial. Authoring a JSON schema that can be used to consisely describe the breadth of what people what to be able to configure about the mouse - that's hard. That's what I'm very open to suggestions on. |
For starters, just being able to paste with the middle mouse button would appease a lot of Unix/Linux people. |
Thanks Mike,
I wonder whether short-medium term, a per profile option or two a bit like
PuTTY has would suffice?
In PuTTy - Radio selection:
a. Middle extends, Right brings up menu
b. Middle extends, Right pastes
c. Right extends, Middle pastes
I’d add:
d. Middle pastes, Right brings up menu - that’s what many gnome-terminal
and perhaps other users are used to. It’s what I would use, even in
PowerShell and Cmd terminals.
Cheers,
-Dave
…On Tue, 25 Feb 2025 at 5:46 am, psergiu ***@***.***> wrote:
For starters, just being able to paste with the middle mouse button would
appease a lot of Unix/Linux people.
X11 XTerm has middle-mouse: paste, right-mouse: extend existing selection.
Thank you !
—
Reply to this email directly, view it on GitHub
<#1553 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPBQUKUKR2STSA2AZZNTAD2RNZHVAVCNFSM6AAAAABXSJS3BWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGQ4DIOBTHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[image: psergiu]*psergiu* left a comment (microsoft/terminal#1553)
<#1553 (comment)>
For starters, just being able to paste with the middle mouse button would
appease a lot of Unix/Linux people.
X11 XTerm has middle-mouse: paste, right-mouse: extend existing selection.
Thank you !
—
Reply to this email directly, view it on GitHub
<#1553 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPBQUKUKR2STSA2AZZNTAD2RNZHVAVCNFSM6AAAAABXSJS3BWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGQ4DIOBTHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Summary of the new feature/enhancement
Expand settings to be able to define remappable mouse bindings. Arguably, different touch events should fall under this too. So let's just call this "pointer bindings" for now.
Proposed technical implementation details (optional)
Mouse bindings are a bit trickier than keybindings in that the mouse has a location where the event occurs. For example, right-clicking a tab should have a different effect on the terminal than right-clicking the terminal.
As a super early idea, consider this format:
We definitely need a spec for this because it'll be a bit hefty. We'll also need to update a decent amount of documentation (particularly settings schema) to be able to describe what combinations are acceptable (again, the JSON mentioned up here is just me rambling about a potential implementation.)
There may be overlap between some commands in keybindings. Be sure to think that through.
Mike notes:
we should go back and collect up all the threads we've said "this would be a good mouse bindings feature" below
spec draft
Mouse bindings
Abstract
We've had numerous requests to configure how the mouse behaves in the Terminal.
The original behavior was a simple duplication of how conhost behaved: a right
click will copy the a selection if there is one, or paste the clipboard if there
isn't. Over time, we've accumulated a number of scenarios that we believe can
all be addressed by allowing more fine-grained mouse binding support. However,
upon further review, ultimately, we don't really need deep mouse binding
support.
Scenarios
The following is a list of all the feature requests we've linked to mouse
bindings in the past, grouped into categories of related requests:
Change how mouse multi-click selects
Change the action that L/M/R-mouse performs
VK_XBUTTON1/2
, etc.Other
These are smaller, independent features that could all have an individual setting (if needed)
alt
) (see mail thread "RE: How to disable line wrap selection in Terminal")Solution design
Following the above scenarios, solutions are proposed below:
Change how mouse multi-click selects
Across the requests here, we've got the following requests:
To boil this down, users want to be able to configure the behavior of double,
triple, and quadruple clicks. The most common request is to change the
delimiters for double-click selection. But users also want to be able to
configure the delimiters to change on
Shift/Alt/Ctrl clicks.
Alternatively,
The text was updated successfully, but these errors were encountered: