Execute a code, or a binary as an input for SendInput command #14432
Labels
Issue-Feature
Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Resolution-Duplicate
There's another issue on the tracker that's pretty much the same thing.
Description of the new feature/enhancement
I propose to extend sendInput command (#3799) . At present, it allows to pass
String
input, which should be displayed on the terminal. I want to execute a code and display the result, instead of static text.For example, I want to insert a current
git
branch to the current terminal cursor position. I can get the name with helpgit rev-parse --abbrev-ref HEAD
. So, I would like to have the following hotkey in the terminal:At present, I cannot do it, because
input
accepts only strings. There are a few workarounds, like,"input": "git rev-parse --abbrev-ref HEAD| Set-Clipboard\r
, but they don't allow to insert needed input in place.The text was updated successfully, but these errors were encountered: