0

External tool: add support for ${repositoryRootPath} variable in command input field

Yann Papouin 5 months ago updated 4 months ago 1

Please consider adding support for ${repositoryRootPath} variable in command input field.

We have the same bat file in multiple projects and it would be convenient to be able to call it from the tool menu

You could simply add some global batch file as external tool which receives ${repositoryRootPath} and then invokes the individual batch files.

Indeed, I dit it but it's not really convenient.

Exposing OS and SmartGit variables to the Input field would be usefull.


Today again, I tried to create an Open in VSCode command:

{LocalAppData}\Programs\Microsoft VS Code\Code.exe

But SmartGit refused it with the message "The specified command is not file".

Had to set "C:\Users\Yann\AppData\Local\Programs\Microsoft VS Code\Code.exe"

In that case too I could create a script and pass everything as argument but that's not the point.

I want to share my tools settings with my co-workers and using existing variables would be Smarter.