-3
How can I create a selection?
I've written a plugin which replaces the selected regions with some other content. Now I would like to reselect the results to show the user what has been replaced. How can I do this?
Сервис поддержки клиентов работает на платформе UserEcho
In this case though, you may be better off using view.replace(region, string), which will replace the region, but preserve any selection at that region.
[self.view.sel().add(region) for region in regions]
Thanks a lot!
PS You can get it from here: http://www.sublimetext.com/forum/viewtopic.php?f=5&t=1609 ;)