renamed {less} command to something more appropriate + added option to set destination via CSS_DIR shell variable in prefs

This commit is contained in:
Yann
2009-08-09 23:14:23 -04:00
parent e0f55a1538
commit badd4dffa7
+10 -5
View File
@@ -3,20 +3,25 @@
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<string>saveActiveFile</string>
<key>command</key>
<string>#!/bin/bash
<string>file=$(basename "$TM_FILEPATH")
ext=${file##*.}
file=${file%.*}
new_file="$TM_PROJECT_DIRECTORY"/"$CSS_DIR"/"$file".css
lessc "$TM_FILEPATH"
lessc "$TM_FILEPATH" "$new_file"
rescan_project</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>^L</string>
<string>~@l</string>
<key>name</key>
<string>Lessify!</string>
<string>less -&gt; css</string>
<key>output</key>
<string>discard</string>
<key>scope</key>
<string>source.css</string>
<key>uuid</key>
<string>C06F4F5E-AF7F-4C65-8B4B-0FDF41F1BC27</string>
</dict>