Created
July 11, 2013 18:26
-
-
Save adamwalter/5977895 to your computer and use it in GitHub Desktop.
Sublime Text 2 Plugin - Copy scope selector to clipboard. Source: http://www.sublimetext.com/forum/viewtopic.php?f=2&p=20665#p20670
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// New plugin file: | |
import sublime, sublime_plugin | |
class ScopeToClipboardCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
sublime.set_clipboard(self.view.syntax_name(self.view.sel()[0].b)) | |
// Set key binding: | |
{ "keys": ["shift+alt+command+p"], "command": "scope_to_clipboard" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment