Home Download Buy Blog Forum Support

Word Selection in 2197

Word Selection in 2197

Postby danro on Mon Jun 04, 2012 1:04 am

I am growing more and more frustrated with word selection in Sublime. By word selection, I mean either double-click mouse selection or alt+shift+arrow selection using the keyboard.

I've been trying to figure out why it feels so broken compared to other text fields on OSX, and I've spent hours trying to tweak the 'word_separators' setting to no avail.

Jon- if you are able to add a setting to treat each character in 'word_separators' as its own 'word' during word selection, or at least add a strict mode for this type of movement so that the characters in 'word_separators' are NEVER grouped with other characters to form words (including spaces, tabs, line breaks), that would be a huge improvement.

Thanks again for all your work on Sublime. I still love it, despite the crazy word selection. :cry:

Here's my related topic on user echo, from 4 months ago:
http://sublimetext.userecho.com/topic/9 ... selection/
danro
 
Posts: 19
Joined: Thu May 19, 2011 5:39 am
Location: Sacramento, CA

Re: Word Selection in 2197

Postby bizoo on Mon Jun 04, 2012 7:33 am

danro wrote:I mean either double-click mouse selection or alt+shift+arrow selection using the keyboard.

Strangely, unlike Windows and Linux, there is no alt+shift+arrow on OSX:
Code: Select all
   { "keys": ["ctrl+alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
   { "keys": ["ctrl+alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
   { "keys": ["ctrl+alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
   { "keys": ["ctrl+alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },

   { "keys": ["ctrl+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
   { "keys": ["ctrl+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
   { "keys": ["ctrl+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
   { "keys": ["ctrl+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
bizoo
 
Posts: 888
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Word Selection in 2197

Postby danro on Mon Jun 04, 2012 8:31 am

bizoo wrote:
danro wrote:I mean either double-click mouse selection or alt+shift+arrow selection using the keyboard.

Strangely, unlike Windows and Linux, there is no alt+shift+arrow on OSX:

Probably because alt+arrow word movement is native on OSX textfields.
danro
 
Posts: 19
Joined: Thu May 19, 2011 5:39 am
Location: Sacramento, CA

Re: Word Selection in 2197

Postby danro on Tue Jun 05, 2012 7:03 am

To illustrate where the characters should split into words, I updated the last frame of my example gif:

Image
danro
 
Posts: 19
Joined: Thu May 19, 2011 5:39 am
Location: Sacramento, CA

Re: Word Selection in 2197

Postby jkibble on Thu Jun 28, 2012 7:17 pm

This may or may not be a dead topic but I have to wholly agree with the problem.

It doesn't appear the word selection using the mouse uses the word_separators (which is the default) setting to determine where to stop selecting.
I think this may be a Windows problem (because all programs seem to select this way) and not limited to Sublime Text 2, none the less it is very annoying.

Example is I write PHP code and have lots of places where I may want to select a string which may end like this some phase')");
In many cases it probably does work fine but I only notice where it stops on selecting phrase just before the ' but any movement beyond that and it captures the ')");

I use nightly in case that makes any difference.

And otherwise I love Sublime Text, by far the best editor there is!
jkibble
 
Posts: 1
Joined: Mon Jun 25, 2012 2:37 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 20 guests