Home Download Buy Blog Forum Support

How to select all non-whitespace characters under the cursor

How to select all non-whitespace characters under the cursor

Postby nachocab on Sat Feb 09, 2013 10:11 pm

If I have my cursor in the middle of a URL, for example, is there a shortcut to expand the selection left and right to include everything until the first whitespace? Let's say I have the following line:

xxxxx-some-stuff-i-dont-want-xxxxxxxxxxxxxxxx
i want this => xxxxxxxx-caret-here-xxxxxx <= i want this
xxxxx-some-stuff-i-dont-want-xxxxxxxxxxxxxxxx

How can I select xxxxxxxx-caret-here-xxxxxx?
nachocab
 
Posts: 23
Joined: Thu Jul 07, 2011 2:22 pm

Re: How to select all non-whitespace characters under the cursor

Postby adzenith on Sat Feb 09, 2013 10:45 pm

1. you can set your word_separators to be nothing, so that all punctuation counts as part of a word, then just hit cmd+d
2. write a plugin
adzenith
 
Posts: 1215
Joined: Mon Oct 19, 2009 9:12 pm

Re: How to select all non-whitespace characters under the cursor

Postby nachocab on Sun Feb 10, 2013 2:16 pm

Thanks
nachocab
 
Posts: 23
Joined: Thu Jul 07, 2011 2:22 pm


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 15 guests