Sublime Forum

How to run a program without output on a shortcut?

#1

Hello!

How can I add a shortcut for running a program without output (without opening some consoles) and pass the path of the opened file as an argument on running?

For example, I want open gitk on ‘ctrl+shift+g’

In the sublime-keymap I added
{ “keys”: [“ctrl+shift+g”], “command”: “exec”, “args”: { “cmd”: [“gitk”, “${file}”] } }

but ${file} didn’t translated to the path and in the sublime window the console was opened for output (the result of the execution was printed).

:frowning:

0 Likes

#2

https://packagecontrol.io/packages/ExternalTools

0 Likes