-
Notifications
You must be signed in to change notification settings - Fork 15
/
Load Delegate Window.tmCommand
51 lines (44 loc) · 1.26 KB
/
Load Delegate Window.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
<?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
bundle_path = ENV['TM_BUNDLE_SUPPORT']
support_path = ENV['TM_SUPPORT_PATH']
require support_path + '/lib/osx/plist'
require support_path + '/lib/ui.rb'
require bundle_path + '/lib/dialog1.rb'
require bundle_path + '/lib/delegates.rb'
nib = bundle_path + '/nib/Delegates.nib'
response = TextMate::UI.dialog1(:nib => nib,
:parameters => Cappuccino.delegates,
:options => {:center => true, :modal => true}) do |results|
if results['result']
results['result']['returnArgument']
else
# do nothing
end
end
print "- (void)#{e_sn(response)}(id)sender
{
${0}
}" if !response.nil?</string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>^d</string>
<key>name</key>
<string>Load Delegate Window</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>source.js.objj</string>
<key>uuid</key>
<string>4FC07066-67A9-4792-93F7-F83EA869A499</string>
</dict>
</plist>