diff --git a/Commands/Compile and Display JS.tmCommand b/Commands/Compile and Display JS.tmCommand index 03e2551..b528721 100644 --- a/Commands/Compile and Display JS.tmCommand +++ b/Commands/Compile and Display JS.tmCommand @@ -1,5 +1,5 @@ - - + + beforeRunningCommand diff --git a/Commands/Compile and Save.tmCommand b/Commands/Compile and Save.tmCommand new file mode 100644 index 0000000..7372c60 --- /dev/null +++ b/Commands/Compile and Save.tmCommand @@ -0,0 +1,28 @@ + + + + + name + Compile and Save + uuid + 2000D73F-02FB-4EF9-895E-02AFD1FE78B9 + input + none + output + showAsTooltip + command + #!/bin/bash +PATH=/usr/local/bin:/usr/bin:/bin:$PATH +newfile=`echo ${TM_FILEPATH} | sed "s/\.coffee$/.js/"` +${TM_COFFEE:=coffee} -cp --bare ${TM_FILEPATH} > $newfile +echo Coffe `${TM_COFFEE:=coffee} -v` +echo Coffee: "${TM_FILEPATH}" +echo Compiled to: $newfile + beforeRunningCommand + saveActiveFile + scope + source.coffee + keyEquivalent + @^$s + + diff --git a/Commands/Run selected text.tmCommand b/Commands/Run selected text.tmCommand index e1f72fd..bb081f1 100644 --- a/Commands/Run selected text.tmCommand +++ b/Commands/Run selected text.tmCommand @@ -6,8 +6,10 @@ nop command #!/bin/bash - +PATH=/usr/local/bin:/usr/bin:/bin:$PATH +echo '
'
 ${TM_COFFEE:=coffee} -s
+echo '
'
input selection diff --git a/Commands/Run.tmCommand b/Commands/Run.tmCommand index 579f1d2..92a32f9 100644 --- a/Commands/Run.tmCommand +++ b/Commands/Run.tmCommand @@ -6,8 +6,10 @@ nop command #!/bin/bash - -${TM_COFFEE:=coffee} -s | pre +PATH=/usr/local/bin:/usr/bin:/bin:$PATH +echo '
'
+${TM_COFFEE:=coffee} -s
+echo '
' input selection keyEquivalent