diff --git a/Commands/Compile Selection.tmCommand b/Commands/Compile Selection.tmCommand new file mode 100644 index 0000000..1e8ee68 --- /dev/null +++ b/Commands/Compile Selection.tmCommand @@ -0,0 +1,57 @@ + + + + + beforeRunningCommand + saveModifiedFiles + command + #!/usr/bin/env ruby -wKU +require "#{ENV["TM_SUPPORT_PATH"]}/lib/tm/executor" +require "#{ENV["TM_SUPPORT_PATH"]}/lib/escape" +require "tempfile" + +tmp = Tempfile.new("selection_cs") +tmp << STDIN.read +tmp.close +TextMate::Executor.run(e_sh(ENV['TM_COFFEE'] || 'coffee'), '-p', '--bare', tmp.path, :verb => "Compiling", :noun => "selection") +tmp.unlink + + fallbackInput + document + hideFromUser + + input + selection + inputFormat + text + keyEquivalent + @b + name + Compile and Display Selection + outputCaret + afterOutput + outputFormat + html + outputLocation + newWindow + requiredCommands + + + command + coffee + locations + + /opt/local/bin/coffee + + variable + TM_COFFEE + + + scope + source.coffee dyn.selection + uuid + 9A625AB5-11C9-447A-A255-2F6FB3F22011 + version + 2 + +