Create a gist now

Instantly share code, notes, and snippets.

Copy Scope plugin for Sublime Text 2
import sublime, sublime_plugin
class CopyScopeCommand(sublime_plugin.TextCommand):
def run(self, edit):
sublime.status_message("Copied scope")
def is_enabled(self):
return self.view.sel()
# To call the command, add the following to Preferences->Key Bindings - User:
# { "keys": ["shift+super+alt+p"], "command": "copy_scope" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment