vscode-commandbar
vscode-commandbar copied to clipboard
Q: launch in terminal
I'm using linux. How can I launch a terminal and run a command in it?
Okay figured it out...
"command": "gnome-terminal --working-directory=/foo/bar/baz command arg1 arg2",
What we need is a macro like ${projectdir} that resolves to the project's root. So we can use relative paths for stuff within the project. e.g.:
"command": "gnome-terminal --working-directory=${projectdir}/baz --command 'command arg1 arg2'",
Okay figured it out...
"command": "gnome-terminal --working-directory=`pwd`/foo/bar --command 'command arg1 arg2'"
Though this could be made simpler.
@lonix1 Can you please either suggest how this can be made simpler with this extension (possibly as new issue) and/)or close this issue as it is "question only"?