SublimeText / WordHighlight

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

Highlight only on Find #64

Open Rassi opened 9 years ago

Rassi commented 9 years ago

Finally I can have background color on find highlights. This was missing for me in Sublime Text coming from Notepad++. Thank you.

But I have trouble getting used to highlighting whenever I select something.

My normal workflow is to use Find (ctrl+F3 etc) when I want to highlight what I've selected, and it would be nice if I could limit WordHighlight to only run then. Especially since I've turned on highlight_non_word_characters.

I've tried adding a delay, but this just means than when I actually do press ctrl+F3 I have to wait until the delay before I get highlights. This scratches my brains pickup, and I lose my train of thought.

Otherwise thanks for a great plugin.

adzenith commented 9 years ago

WordHighlightListener could conceivably be modified so that you can run it with a keystroke. You could then bind this to ctrl+f3 and set the timeout so that it never highlights otherwise.

Rassi commented 9 years ago

But would this remove ctrl+f3 as quick find? And I guess then mouse double click, or just normal find (ctrl+f) wouldn't work? Or can you have multiple actions for a keystroke?

adzenith commented 9 years ago

You can have multiple actions for a keystroke but only if you write a very basic plugin to run two commands or use one that's already been written.