spmeesseman / vscode-taskexplorer

Run and Manage Tasks for Visual Studio Code
Other
141 stars 30 forks source link

[Feature request] More keybindings to run and rerun tasks #186

Open radoslawroszkowiak opened 1 year ago

radoslawroszkowiak commented 1 year ago

Hi, first of, thanks for this great extension!

I've been only using VSCode for a short period of time and It might be just my mileage, but in my daily workflow I often need to start / stop / restart several tasks, usually npm ones.

Overall it works just fine, but there is a constant need (unless I'm missing some feature) to reach a mouse and hit the icons in the Task Explorer.

I think it would be great if every item in the tasks list could be started or restarted with a keyboard shortcut. As far as I understand, though, based on this issue: https://github.com/microsoft/vscode/issues/130880 it's not really possible in VSCode as of now to assign a keybinding to a focused TreeItem.

As a workaround, would you consider (if that's even possible, which I'm not sure of) exposing keybindings for the "top" favourite commands? Sth like: keybinding1 -> run (or rerun if already running) first favourite task keybinding 2 -> run (or rerun if already running) second favourite task ... and up to some reasonable limit like 3 or 5 of them.

So, I'm not sure if it's feasable and I'm not sure if you would share this interest. In case you knew it's possible to implement, even though I'm new to this ecosystem I could think of preparing the PR myself.