-
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
Multi-Click Selection: Triple-Click Settings + Viewport Selection #1302
Multi-Click Selection: Triple-Click Settings + Viewport Selection #1302
Conversation
@@ -12,6 +12,13 @@ namespace Microsoft.Terminal.Settings | |||
EmptyBox | |||
}; | |||
|
|||
enum SelectionMode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mild concern that "Selection Mode" might be too broad a name here - though I don't have a good example of why we wouldn't want to call it that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed to TripleClickSelectionMode
. I feel like we don't wanna attach this functionality just to TripleClick though. So I'm open to suggestions :)
TODO: connect to setting
Terminal: save winrt version of enum Added doc comments
3bce793
to
23ae33c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean I'm not totally convinced that triple click needs a settable behavior. The linked thread isn't super relevant to making this a preference that customers are actually looking for.
I also don't know why you just didn't go for broke at this point and put viewport on quadruple click and the entire buffer on quintuple click and the entire known universe of data on sextuple click or something.
Honestly, it'd probably just be better to have this functionality come in after we do pointer bindings (#1553 ). Then you could just set the behavior you want on a triple click. Should we just back this out then?
We can doesn't mean we should. I don't think I've ever actually seen anything have 4+ click functionality. |
Abandoning this PR so that it can be done right/better with pointer bindings. |
Summary of the Pull Request
Introduces "viewport selection" which creates a selection of the entire viewport. Also, adds per-profile settings to decide whether a triple-click performs a line selection or viewport selection (disabling it is also an option).
References
Builds on #1197. Similar to #1273.
Closes #1084.
PR Checklist
Detailed Description of the Pull Request / Additional comments
MockTermSettings
Validation Steps Performed