I’m wondering how to tell sublime to “drop” the current selection and leave the caret where it is. (Doing this with a key binding.) Right now, this is my function “ClearSelectionsCommand”:
class ClearSelectionsCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.sel().clear()
It works, but a little too well, since not only does the selection disappear, but also the caret! (I deduce from this that the caret is a special instance of a selection?)
How can I abort the current selection(s) while leaving the caret(s) where they are?