amoilanen / Brackets-Command-Line-Shortcuts

Brackets IDE plugin. Adds support of shortcuts for execution of terminal commands right from the IDE.
8 stars 1 forks source link

Choose project dir in config #1

Closed vuhrmeister closed 10 years ago

vuhrmeister commented 10 years ago

I want to configure a command which executes a script from within my project directory. Currently I have to set an absolute path to my project folder so I cannot use this command for several projects.

So it would be nice to be able to set dir to use the project root. Maybe with a variable or something.

amoilanen commented 10 years ago

Nice idea. Now it is possible to use the variable $PROJECT_ROOT when configuring directories in brackets-commandline.json I added a few examples to README https://github.com/antivanov/Brackets-Command-Line-Shortcuts/blob/master/README.md

Implemented in the commit 76eef7f0b0379366be5568466ad943f531ead9df, also I published the updated version of the extension to the Brackets extension registry

Please, let me know if you have any further comments or suggestions and, please, close the issue if the solution works for you.

vuhrmeister commented 10 years ago

Wow, that was fast - thx :) Will try it tomorrow at work.