Please pardon what might be a naive question; I am quite new to Sublime Text. I am wondering if there is a way to write a custom key binding in which part of the argument is entered as text once the key binding is triggered. By way of an example, I have a key binding to open a Terminus shell, with arguments that activate the conda environment “myenv” and then launches IPython:
{
"keys": ["ctrl+alt+p"],
"command": "terminus_open",
"args": {"shell_cmd": "conda activate myenv; ipython"}
}
Is there any way that I could specify which environment to activate upon triggering the keybinding, rather than having to hard-code it for a single pre-determined environment?
I’m imagining something where the shell_cmd argument would be something like "conda activate ${input}; ipython"
and once I trigger the key binding, a text input field pops up in which I type the name of a conda environment, and that then becomes the environment in which IPython opens. Is something like that possible to do?