lxsang / PTerm

MIT License
34 stars 8 forks source link

enhancement: extend word selection by words #18

Open eMBee opened 5 years ago

eMBee commented 5 years ago

when double clicking to select a word, the selection can be extended by moving the mouse. it would be neat if in that case the extended selection includes the whole word at the position where the mouse has been moved to.

that would make it much easier to select sentences or phrases because i can double-click the first word and quickly move to the last word, not needing to fine tune to actually position at the end of the word.

lxsang commented 5 years ago

I don't really understand the extended selection behavior that you described. For now, one can double-click a word to select it, click again that world will select the entire line. Triple-click a word also select the line. One behavior that I found in native terminal applications is that you double-click to select the first word, hold SHIFT, then click on the last word, the selection will be extended accordingly. For now, PTerm does not support this behavior just yet This behaviour should also work in PTerm

lxsang commented 5 years ago

I can confirm that double click on a word, then holding SHIFT and click to another word, will extend the selection on PTerm

eMBee commented 5 years ago

it will extend the selection even without shift. but character by character. what i mean is to select word by word.

in firefox the selection works like this. double-click on a word, then move the cursor, it adds the next whole word to the selection, and continues adding word by word, not character by character.

so if i double click on the word "extend" then move over to the word "selection", positioning the cursor near the "l", oh pterm the selection will be "extend the sel" in firefox the complete selection will be "extend the selection"