Home Download Buy Blog Forum Support

Word separators and selection

Word separators and selection

Postby danro on Tue Feb 07, 2012 11:08 pm

I've been noticing an issue with alt-arrow movement and also with double-click drag selection.

Even though the quote character and the whitespace character are both defined in the "word_separators" preference, these characters are not used during selection (or movement) to separate words properly.

Below you will see an animated gif which illustrates a word selection passing over the quote marks and selecting too much text:

I think in the ideal solution, spaces and quotes should be treated as their own words during this selection mode. This is how native cocoa textfields (eg- TextEdit) work on OSX, and in general it feels more intuitive to be safe during word selection rather than overzealous. After all, it is easier to keep selecting over these characters instead of having to go back and manually adjust the selection after a big jump.
Posts: 19
Joined: Thu May 19, 2011 5:39 am
Location: Sacramento, CA

Re: Word separators and selection

Postby danderson on Mon Mar 05, 2012 3:04 pm

I agree that it would be useful to treat whitespace and quote characters differently from other word separators. Perhaps the solution is to not select consecutive word separator chars of different types. I'm sure there are use cases for when one would actually like to select a bunch of consecutive word separators, but I can't think of one offhand. One case where I have issues is double click select of whitespace characters surrounded by other word separators. For example...
Code: Select all
<foo>           </foo>

Code: Select all

Double click to select on the space will select the <> characters as well.
Posts: 6
Joined: Sun Mar 04, 2012 12:36 am

Re: Word separators and selection

Postby adina728 on Sat Jul 28, 2012 6:15 am

Nice Post…Thanks For sharing the info.
Posts: 1
Joined: Sat Jul 28, 2012 6:14 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 29 guests