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_plugin | |
import datetime | |
''' | |
__ __ __ __ | |
| \/ |_ _| \/ | | |
| |\/| | '_| |\/| |_ | |
|_| |_|_| |_| |_(_) | |
Project: Examples of using show_quick_panel in Sublime 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) |