-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Extend word selection #1023
Comments
I think supporting one additional selection delimiter configuration apart from word-wise but less than line wise, would make sense, but going beyond that I think, this would probably make things less usable for the user, as in: they might be getting confused by how many clicks they did and end up redoing the click-sequence again, just to get what they want. So,
Going for more than one extra layer is certainly possible but I don't see how that could improve workflow. Users should probably be using vim-mode and motion sequences to quickly select a range). That's just a thought so far. So now, how would one configure it. Probably with an optional configuration key per profile that would have a name, something like, |
I would disagree with the assumption that users would be confused. I agree it's a novel selection mode and therefore shouldn't be the default, but what OP described/requests here is very precisely what I believe is the most useful selection behavior for programmers / tech savvy folks, in a terminal, when using the mouse. This is because in general, I always want to select things on a word boundary, but because I deal with various technical things and not English literature, the delimiters in question will be different from one time to another. Therefore no amount of devising the best heuristic will work. Just give me a mode that expands the selection to one more delimiter at a time, even if that means more clicks, and even if that means an arbitrary large amount of clicks might be necessary to reach the full line. I hope I correctly rephrased OP's FR. I can relate — the status quo of mouse text selection in terminals is extremely frustrating today. |
Thanks for this! Though now I have one extra level it really convinces me I wan't multiple :-) e.g. For word selection in e.g. yaml files, |
I see, I think that instead of adding another click during selection we can add user defined selection by delimiter, so you can add something like
So during C+left click on the url it will select everything between spaces |
Abstract
Double clicking on a word selects it. One more click and you get the whole line. I would like to have some steps in between, where a different set of word delimiters is used and you can keep growing your selection until you reach the line selection.
(I know this has been discussed but I didn't see it written down hence this issue)
Motivation
Using the default config, IPv6 addresses have to be dragged over to select with the mouse. URLs are similar. While I could change the delimiters to get them in one go, sometimes I do want to select just a small portion of something. I would prefer just one more click than having to drag or the many key presses needed to enter vi mode and navigate.
Specification
A choice has to be made if there will be two sets of word delimiters or if it can be any number the user chooses. Only having one more level would probably satisfy 80% of people. Either way the config should allow one or more new sets of delimiters to be specified.
When a user double clicks on some text the first set of delimiters is used to determine what is selected. If the user clicks once more in the same selection then the next set of delimiters are used to find the word boundaries and so on. When there are no more sets configured then the next click selects the whole line as it does now.
The text was updated successfully, but these errors were encountered: