Windows only
Make a new folder in your plugin directory, create a new file called opencommand.py and put this code in it:
[code]import sublime, sublime_plugin
import subprocess
class OpenPromptCommand(sublime_plugin.TextCommand):
def run(self, edit):
dire = os.path.dirname(self.view.file_name())
retcode = subprocess.Popen(ācmdā, ā/Kā, ācdā, dire])
def is_enabled(self):
return self.view.file_name() and len(self.view.file_name()) > 0[/code]
Now create another file called āContent.sublime-menuā and put the following in it:
{ "caption": "-", "id": "file" },
{ "command": "open_prompt", "caption": "Open Command Window Hereā¦" }
]
Now when you right click and click āOpen Command Window Hereā¦ā youāll get a new command prompt at the location of the file you were editing.