From 8d8d5dd049773c099cf3d71f6194a0681caf61e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Duen=CC=83as?= Date: Tue, 1 Nov 2011 21:18:41 -0300 Subject: [PATCH] Fixed Save to CSS command. Closes #2 --- Commands/Save to CSS.tmCommand | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/Save to CSS.tmCommand b/Commands/Save to CSS.tmCommand index aea5128..6b21c6d 100644 --- a/Commands/Save to CSS.tmCommand +++ b/Commands/Save to CSS.tmCommand @@ -6,8 +6,8 @@ saveActiveFile command #!/usr/bin/env ruby -file = STDIN.read[/lessc: ([^*]+\.less)/, 1] || ENV["TM_FILEPATH"] -system("lessc --verbose \"#{file}\"") +file = STDIN.read[/lessc: ([^*])+\.less/, 1] || ENV["TM_FILEPATH"].chomp(File.extname(ENV["TM_FILEPATH"])) +system("lessc --verbose \"#{file}.less\" \"#{file}.css\"") input document keyEquivalent