Remember mouse selection mode when extending #18889
Labels
Issue-Feature
Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Needs-Tag-Fix
Doesn't match tag requirements
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Description of the new feature
This is another suggested feature which is inspired by how
xterm
works (but actually many editors including notepad, vscode, and my browser (edge) do the same): it would be nice if the selection mode (char/word/line) was remembered and used when extending the selection.For example, if I double-click+drag to select a few words, and then shift-click elsewhere in the middle of a word, the final selection would be as if I originally dragged to the second location, which would select up to the whole word.
Proposed technical implementation details
Keep a global state for the selection mode, set it when starting a selection, use it when extending it.
The tricky bit is what happens when using multiple clicks on an extended shift-selection. Existing things I tried have different opinions:
The text was updated successfully, but these errors were encountered: