I want to add some sidebar right click commands that launch CMD and pass it a variable from the selected file name or path. Specifically i want…
- A right click on .scss files that launches Ruby in CMD.exe and watches the selected file.
- A right click on folders to that launches Ruby in CMD.exe and the selected folder path and runs livereload.
How would I go about doing this?
Here are the commands I’d use for the windows registry to add them to the explorer right click…
- cmd.exe /E:ON /K C:\Ruby192\bin\setrbvars.bat && sass --watch “%1”
- cmd.exe /E:ON /K C:\Ruby192\bin\setrbvars.bat && pushd %L && livereload
For those who don’t know what livereload and SASS are they’re awesome for web development.