SublimeText / WordHighlight

Highlight all copies of the currently selected word.
MIT License
179 stars 24 forks source link

Activate highlight based on entire selection? #55

Closed hyp0xia closed 9 years ago

hyp0xia commented 10 years ago

Wondering if it's possible to use this plugin to automatically highlight all instances of the selected text entirely? Currently it only highlights instances of a single word (I know, it's called WORDhighlight). But I was wondering if there was an option to extend the same functionality to whatever you have highlighted/selected? ie: using "127.0.0.1", wordhighlight will only find matches for "127" but say I selected the entire text "127.0.0.1" it does nothing. Pressing alt+F3 (windows) as this point will activate sublimes built-in find feature using the selected text but if this plugin could do it (saving that key combo) it would be great.

adzenith commented 9 years ago

You'll have to change highlight_non_word_characters to true in your preferences.

alvolturbo commented 9 years ago

It seems doesn't work properly... like in #50 suggested image image image it doesn't highlight different selection of characters the same way (only whole words with non-word character border near them, not parts and combinations of them)

SystemDisc commented 9 years ago

You screenshots relate more strongly to #50 imo

I've updated that issue with an example of why #50 should still be open

titoBouzout commented 9 years ago

See https://github.com/SublimeText/WordHighlight/pull/56