Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import sublime
  2. import sublime_plugin
  3. import functools
  4.  
  5. class ThingyCommand(sublime_plugin.TextCommand):
  6.    def run(self, edit):
  7.       # ...code to write out file here
  8.       sublime.set_timeout(functools.partial(self.view.run_command, 'revert'), 0)