fabiospampinato / vscode-terminals

An extension for setting-up multiple terminals at once, or just running some commands.
MIT License
121 stars 19 forks source link

Allow executing a terminal using a keyboard shortcut #65

Closed akaibukai closed 1 year ago

akaibukai commented 2 years ago

Hello and thank you for your plugin.

Is it possible to set a keyboard shortcut to a given Run Single command?

My usage of this plugin is like that:

I am used to run my tasks with VSCode Tasks but your plugin make me integrate them in existing terminals which I like.

Currently, it's still efficient since I'm using Ctrl+Shift+T and then I only have displayed my onlySingle terminals.

Thank you very much.

Edit: Just discovered your Commands plugin (which I also open an issue (related to Remote Container). And it could be great if you can also add a shortcut feature to Commads when wanting to use with Terminals Manager.

fabiospampinato commented 1 year ago

Unless it's buggy it should be already supported, in vscode-commands' readme there's an example of how to do this:

{
  "text": "$(terminal)",
  "command": "terminals.runTerminal",
  "tooltip": "Run a terminal"
},
{
  "text": "Init",
  "command": "terminals.runTerminalByName",
  "arguments": ["init"],
  "tooltip": "Init the project"
},
{
  "text": "Serve",
  "command": "terminals.runTerminalByName",
  "arguments": ["serve"],
  "tooltip": "Serve the project"
}