From badd4dffa7548c6c1912683d49748d6cdd77106e Mon Sep 17 00:00:00 2001 From: Yann Date: Sun, 9 Aug 2009 23:14:23 -0400 Subject: [PATCH] renamed {less} command to something more appropriate + added option to set destination via CSS_DIR shell variable in prefs --- Commands/Lessify!.tmCommand | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Commands/Lessify!.tmCommand b/Commands/Lessify!.tmCommand index a5f07f1..303ed76 100644 --- a/Commands/Lessify!.tmCommand +++ b/Commands/Lessify!.tmCommand @@ -3,20 +3,25 @@ beforeRunningCommand - nop + saveActiveFile command - #!/bin/bash + 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 input none keyEquivalent - ^L + ~@l name - Lessify! + less -> css output discard + scope + source.css uuid C06F4F5E-AF7F-4C65-8B4B-0FDF41F1BC27