Sublime Forum

How to select all non-whitespace characters under the cursor

#1

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?

0 Likes

#2
  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
0 Likes

#3

Thanks

0 Likes