Closed liamcain closed 12 years ago
What if we do it on_activated instead of on_deactivated? That way you could still see the highlights if you switch away. Or even better, what if we just fix the detection of the previous_regions thing? I think the "if self.prev_regions != regions" is the problem. What if we changed it to "if view.get_regions("WordHighlight") != regions:"?
It would be nice to add the keymaps, alt enter smells very handy!
The newest keymaps (as of 0d4584d) are pushed.
All the features were included.
If you switch tabs or windows with words highlighted, the regions remain highlighted when returning until another word is selected to clear the previous regions. As a fix, I changed it so that on_deactivated, the word_highlighted regions are cleared.