You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Select next misses matches when starting with selection at the end of a word #340
I've noticed that when my selection ends at the end of a word, as I cmd+d through matches it skips matches that don't also end a word. I expect that it would select all matching text.
In the above example, select next misses the match within the string contains_tags_scope. I presume this is due to the underscore (a regex word character), but I expect it to select that part of the text regardless.
After some digging I found the tests that show the intention of this.
I'm wondering if it is necessary (by default, at least) to worry about whether or not the originally selected text is bounded by words or non words?
When I have a buffer like so:
thisthisthis
and I do a regular search for this, I expect it to find all three as I step through the results using find-and-replace:find-next.
I think the issue lies in the scanForNextOccurrence method in select-next.coffee. I don't think this method should be checking whether or not a word is selected, and just return the actual characters that match the result.
Activity
erkattak commentedon Jan 26, 2015
I've confirmed that this is the same behavior when using the Find > Select All, after selecting text.
erkattak commentedon Feb 27, 2015
After some digging I found the tests that show the intention of this.
I'm wondering if it is necessary (by default, at least) to worry about whether or not the originally selected text is bounded by words or non words?
When I have a buffer like so:
and I do a regular search for
this, I expect it to find all three as I step through the results usingfind-and-replace:find-next.I think the issue lies in the
scanForNextOccurrencemethod inselect-next.coffee. I don't think this method should be checking whether or not a word is selected, and just return the actual characters that match the result.