Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

"Add Next Match to Selection" Should perform word-only matches unless the user has manually highlighted text #8861

Open
ShimShamSam opened this issue Aug 26, 2014 · 0 comments

Comments

@ShimShamSam
Copy link

In Sublime's implementation of multiple cursors, if you haven't selected any text and the text cursor is within/adjacent to a word (ie. you clicked the middle of the word), it will select the full word for you. Brackets does this, but Sublime will go into a "full word only" mode so that continuing to press the shortcut key will highlight the next occurrence of the word ONLY if the occurrence is the full word. So "foo" will match other instances of "foo", but NOT "foobar".

If you manually highlight text and press the shortcut key, it will highlight the next occurrence of the text, but in this case, the text can occur as part of a longer string. So highlighting [ba]nner and pressing the shortcut key will match [ba]nk. Currently Brackets only supports this method (or at least for me, it does in the Ubuntu release).

The use case for the first method is for quickly renaming a variable within a function. If you have the variables "foo" and "foobar" and want to rename "foo" to "baz", you cannot do so without inadvertently selecting part of "foobar".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants