tvooo / sublime-grunt

Moved to https://github.com/sptndc/sublime-grunt
296 stars 35 forks source link

Allow assigning a keyboard shortcut to a specific task #48

Closed dsine-de closed 5 years ago

dsine-de commented 10 years ago

Is it possible to add an "args" option in the keymap file to run a specific grunt task, so that you don't have to select a task from the list?

{ "keys": ["ctrl+b"], "command": "grunt", "args": {"task": "default"} }

Or is it possible to allow a setting for the default task name?

tvooo commented 10 years ago

This is a really nice idea, I will definitely put it on the roadmap. Okay, kidding, there is no roadmap :) But I will have a look into it.

You will just have to deal with that it will break whenever you don't have a suitable project with this specific task open, but I think this is something people can live with.

glitcha commented 10 years ago

I did do a quick hack of this project to allow this. As mentioned this is not great if you are using multiple grunt files so I have left it as a fork. https://github.com/glitcha/sublime-grunt

tvooo commented 5 years ago

Repository was moved to https://github.com/sptndc/sublime-grunt Please re-file any issues that still exist.