Skip to content

Instantly share code, notes, and snippets.

@talitore
Created August 9, 2014 20:10
Show Gist options
  • Save talitore/1b38a8949a6f692aa31d to your computer and use it in GitHub Desktop.
Save talitore/1b38a8949a6f692aa31d to your computer and use it in GitHub Desktop.
import sublime, sublime_plugin
class SearchScriptReferenceCommand(sublime_plugin.TextCommand):
def run(self, edit):
first_s = self.view.sel()[0]
data = self.view.substr(first_s)
test(data)
def test(data):
print(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment