Closed caiofbpa closed 11 years ago
Luckily it already exists! E.g. https://github.com/SublimeText/WordHighlight/blob/master/Default%20(OSX).sublime-keymap
Sublime Text has two different behaviors for selecting all occurences.
Jon mentioned this in a forum post but I don't bother to search for it.
Edit: Meh, I started this reply 2 hours ago and didn't update the page.
Consider the example:
In this case I want to rename the variable
t
. If I selectt
, WordHighlight correctly highlights only the occurrences inside the for loop definition.If I use SublimeText's Ctrl+Command+G to select all occurrences though, it will select the
t
s inside the for loop definition but also the letterst
inoutput_tick
. SublimeText doesn't seem to know what a word means, and selects all characters.Since WordHighlight is already finding all word occurrences correctly, I think it would be reasonable to add a way of extending the current selection to all those occurrences, so we can rename them.