Skip to content

Instantly share code, notes, and snippets.

@batandwa
Created July 3, 2013 08:15
Show Gist options
  • Save batandwa/5916284 to your computer and use it in GitHub Desktop.
Save batandwa/5916284 to your computer and use it in GitHub Desktop.
Sublime Text 2 plugin for launching ConEmu.
import sublime, sublime_plugin, os, subprocess
class ConemuCommand(sublime_plugin.TextCommand):
def run(self, edit):
if os.name == "nt":
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
process = subprocess.Popen(('c:/Program Files (x86)/ConEmu/ConEmu.exe', '/single', self.view.file_name()),
stdin=subprocess.PIPE, stdout=subprocess.PIPE, startupinfo=startupinfo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment