-
Notifications
You must be signed in to change notification settings - Fork 4
/
Run Script.tmCommand
54 lines (52 loc) · 1.48 KB
/
Run Script.tmCommand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/executor"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"
TextMate.save_current_document
TextMate::Executor.make_project_master_current_document
TextMate::Executor.run(ENV["TM_IO"] || "io", ENV["TM_FILEPATH"], :version_args => ["2>&1", '<<< "System version; System exit;"'])
</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>@r</string>
<key>name</key>
<string>Run Script</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>requiredCommands</key>
<array>
<dict>
<key>command</key>
<string>io</string>
<key>locations</key>
<array>
<string>/opt/local/bin/io</string>
<string>/usr/local/bin/io</string>
</array>
<key>variable</key>
<string>TM_IO</string>
</dict>
</array>
<key>scope</key>
<string>source.io</string>
<key>semanticClass</key>
<string>process.run.script.io</string>
<key>uuid</key>
<string>F35C936A-92CD-4D36-925D-F4457A52BCEE</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>