SublimeText / WordHighlight

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

limit highlight to current scope #19

Open xcambar opened 12 years ago

xcambar commented 12 years ago

Hi, The highlight operateson the whole file. I wish it could only highlight occurences in the current scope (ie, if highlighting a var in a method, only highlight within that method).

Thanks for the plugin, it really helps!

Saevon commented 11 years ago

Even though its been a while since this issue has seen action, I thought I'd mention:

What happens if you have a class or global variable? figuring out how much scope to show would be a near impossible task. Though an option might be fine.

Also remember that there are many languages, so you would need to ensure each of them had a logical 'local scope'