Home Download Buy Blog Forum Support

Bug/Unexpected Behavior: find_under_expand

Bug/Unexpected Behavior: find_under_expand

Postby nick. on Mon Aug 06, 2012 3:54 pm

The CTRL+D find_under_expand command has inconsistent behavior with a selection:

1. Copy/paste the following text into Sublime:
Code: Select all
word
word.anotherwordbutnotthesameword
word


2. Place the cursor anywhere on the first line and press CTRL+D three times to yield the following three selections:
word-1.png
Three selections of "word"
word-1.png (1.53 KiB) Viewed 844 times


3. Clear the selection and select "word" on the first line (via CTRL+<arrow>, double click, or click and drag).

4. Attempt to repeat step 2. To select each instance of "word", you end up pressing CTRL+D four times and select the non-word-boundary instances of "word" as well:
word-2.png
Five selections of "word"
word-2.png (1.5 KiB) Viewed 845 times
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Bug/Unexpected Behavior: find_under_expand

Postby jbjornson on Wed Jan 22, 2014 6:27 pm

I was also looking for a solution to this problem and found a comment on another topic by adzenith that answers this problem.

adzenith wrote:Note that if you start with an empty selection, then cmd+d (find_under_expand) will search by whole words automatically. If you start with a non-empty selection, then it will search for any instance of the text.


I know this thread is old but I thought I'd leave the answer here for completeness.
jbjornson
 
Posts: 350
Joined: Tue Oct 27, 2009 4:25 pm
Location: Zurich, Switzerland


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 21 guests