Skip to content

Instantly share code, notes, and snippets.

@pyatil
Created March 9, 2014 14:30
Show Gist options
  • Select an option

  • Save pyatil/9448633 to your computer and use it in GitHub Desktop.

Select an option

Save pyatil/9448633 to your computer and use it in GitHub Desktop.
run something command into sublime with dynamic variable
import sublime, sublime_plugin
class ZagRunner(sublime_plugin.WindowCommand):
def run(self, **kwarg):
host_args ={
"type": "telnet",
"encoding": "utf8",
"host":"192.168.23.1",
"port": 5222,
"syntax": "Packages/Python/Python.tmLanguage"
}
self.window.run_command('repl_open', host_args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment