Permalink
Browse files

Run unsaved documents, save modified ones

  • Loading branch information...
1 parent 984b6d1 commit 760033c32174dff115a2b37895d4e0bbe88a08a8 @elia elia committed Aug 8, 2014
Showing with 6 additions and 2 deletions.
  1. +6 −2 Commands/Run.tmCommand
@@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
- <string>saveActiveFile</string>
+ <string>saveModifiedFiles</string>
<key>command</key>
- <string>#!/usr/bin/env ruby -wKU
+ <string>#!/usr/bin/env ruby18
require "#{ENV['TM_SUPPORT_PATH']}/lib/tm/save_current_document"
require "#{ENV["TM_SUPPORT_PATH"]}/lib/tm/executor"
@@ -20,6 +20,8 @@ TextMate::Executor.run(e_sh(ENV['TM_ELIXIR'] || 'elixir'), ENV['TM_FILEPATH'])
<string>@r</string>
<key>name</key>
<string>Run</string>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
<key>outputFormat</key>
<string>html</string>
<key>outputLocation</key>
@@ -28,5 +30,7 @@ TextMate::Executor.run(e_sh(ENV['TM_ELIXIR'] || 'elixir'), ENV['TM_FILEPATH'])
<string>source.elixir</string>
<key>uuid</key>
<string>06E4B9F0-06CD-4B95-822F-2CC67E3802C2</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>

0 comments on commit 760033c

Please sign in to comment.