Skip to content

Instantly share code, notes, and snippets.

View dfaure57's full-sized avatar

Daniel Faure dfaure57

  • Buenos Aires, Argentina
View GitHub Profile
@robmccormack
robmccormack / mrm_show_quick_panel.py
Created July 19, 2013 17:19
Examples of using custom quick_panels in Sublime Text 2 / 3
import sublime_plugin
import datetime
'''
__ __ __ __
| \/ |_ _| \/ |
| |\/| | '_| |\/| |_
|_| |_|_| |_| |_(_)
Project: Examples of using show_quick_panel in Sublime 2
@liamcain
liamcain / deselect.py
Created January 13, 2012 19:34
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)