Created
January 13, 2012 19:34
-
-
Save liamcain/1608283 to your computer and use it in GitHub Desktop.
A Deselect Plugin for Sublime Text 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin | |
#add a keybinding for deselect set to enter | |
class DeselectCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
end = self.view.sel()[0].b | |
pt = sublime.Region(end, end) | |
self.view.sel().clear() | |
self.view.sel().add(pt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment