Skip to content

Extend word selection #1023

@cqexbesd

Description

@cqexbesd

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.

  • If a user doesn't provide more sets in their config then behaviour would remain as it is now.
  • A user could provide a series of smaller and smaller sets so repeated clicks makes the selection larger - but they could also provide larger sets causing the selection to shrink if that's what they desired. I don't see a need to enforce a single direction of growth so it would be possible (if perhaps annoying) to have selections grow and shrink as you click if that's how the user configured it.

Metadata

Metadata

Assignees

Labels

blocker:officeBug reported by my colleges, and hence should be fixed ASAP. :)enhancementNew feature or requestfeature-requestUser requested features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions