Hi everyone !I have a small problem.
seems clear the selection as it should, but I still need to click somewhere to be able to type.So, how can I exit selection mode ?
There is nothing like selection mode.
view.sel() is a list of Region representing the current(s) selection(s).Each selection is in fact a cursor so clearing this list remove all the cursors (and the selection) from the view.It mean that there is nowhere left to type.You have to have at least one Region in the view.sel() to be able to type something.
Take a look at the API documentation (http://www.sublimetext.com/docs/2/api_reference.html) and into the included plugins source in your Packages directory.
Thanks, now I understand the idea.
Escape will also reduce multiple selections down to one selection (the one closest to the beginning of the file).