Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save iyanski/8716927 to your computer and use it in GitHub Desktop.

Select an option

Save iyanski/8716927 to your computer and use it in GitHub Desktop.

Revisions

  1. @lourenzo lourenzo renamed this gist Nov 22, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @lourenzo lourenzo revised this gist Nov 22, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions command.py
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    # Run this one-liner from the Sublime Text console if you need to revert all open documents
    [ view.run_command('revert') for view in sublime.Window.views(sublime.active_window()) ]
  3. @lourenzo lourenzo renamed this gist Nov 22, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @lourenzo lourenzo created this gist Nov 22, 2013.
    1 change: 1 addition & 0 deletions gistfile1.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    [ view.run_command('revert') for view in sublime.Window.views(sublime.active_window()) ]