Created
July 3, 2013 08:15
-
-
Save batandwa/5916284 to your computer and use it in GitHub Desktop.
Sublime Text 2 plugin for launching ConEmu.
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
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