Middle-click paste in terminal#136633
Merged
Tyriar merged 6 commits intomicrosoft:mainfrom Apr 2, 2024
Merged
Conversation
Member
|
This has come up before and we decided not to go with it because of the extra complexity it brings mainly around settings clutter. The good news is this month we're looking into making mouse input customizable which this would fit with perfectly, let's reconsider after #3130, feel free to make an issue to track it. |
Member
|
Reopening for #187365 to see how difficult it is to update this branch. |
meganrogge
approved these changes
Apr 2, 2024
Tyriar
approved these changes
Apr 2, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes no existing issue - but I can create a feature request if you want me to 😃 .
GUIs on UNIX-like systems using X11 (or Wayland) have two clipboards:
If you are not on one of those platforms, the second one can be simulated by the application. It can be enabled in iterm2 on Mac OS, for example. The only limitation is that there is only one clipboard that is used for both types of copy/paste.
As vscode already supports half of it with the setting
terminal.integrated.copyOnSelection, I thought it might make sense to also support the other half.The configuration setting could be a boolean, but was made to look consistent to the existing
terminal.integrated.rightClickBehavior.Fixes #187365