Skip to content

Instantly share code, notes, and snippets.

@liamcain
Created January 13, 2012 19:34
Show Gist options
  • Save liamcain/1608283 to your computer and use it in GitHub Desktop.
Save liamcain/1608283 to your computer and use it in GitHub Desktop.
A Deselect Plugin for Sublime Text 2
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