Skip to content

Instantly share code, notes, and snippets.

@dsandstrom
Created December 4, 2013 23:30
Show Gist options
  • Save dsandstrom/7797514 to your computer and use it in GitHub Desktop.
Save dsandstrom/7797514 to your computer and use it in GitHub Desktop.
Sublime plugin
# Sublime plugin
# Save file: Packages/CloseProjectAndExit/close_project_and_exit.py
# Copy to keymap: { "keys": ["ctrl+shift+`"], "command": "close_project_and_exit" }
import sublime
import sublime_plugin
class CloseProjectAndExitCommand(sublime_plugin.WindowCommand):
def run(self):
self.window.run_command("close_project")
self.window.run_command("close_window")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment