-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.plist
340 lines (327 loc) · 8.42 KB
/
info.plist
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
<?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>bundleid</key>
<string>com.MikeMajara.iterm2</string>
<key>category</key>
<string>Productivity</string>
<key>connections</key>
<dict>
<key>23DEA358-A623-4725-95B2-79C207AF4556</key>
<array>
<dict>
<key>destinationuid</key>
<string>577E7995-64DC-454D-B3F1-4FB96CC5AA65</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>577E7995-64DC-454D-B3F1-4FB96CC5AA65</key>
<array>
<dict>
<key>destinationuid</key>
<string>C8DBBD25-D349-4EBD-BA38-4CF5FDB57EAF</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>CC170ECD-6B82-4A05-8681-8185ACE453FE</key>
<array>
<dict>
<key>destinationuid</key>
<string>577E7995-64DC-454D-B3F1-4FB96CC5AA65</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>DDFAE429-BEEC-49EA-BEDB-7E71BD402695</key>
<array>
<dict>
<key>destinationuid</key>
<string>577E7995-64DC-454D-B3F1-4FB96CC5AA65</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
</dict>
<key>createdby</key>
<string>Mike Majara</string>
<key>description</key>
<string>Open in iTerm2</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>iTerm2</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>acceptsmulti</key>
<true/>
<key>filetypes</key>
<array/>
<key>name</key>
<string>Open with iTerm2</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.action</string>
<key>uid</key>
<string>DDFAE429-BEEC-49EA-BEDB-7E71BD402695</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>applescript</key>
<string>on alfred_script(q)
set finderSelection to ""
set theTarget to ""
set appPath to path to application "iTerm2"
set defaultTarget to (path to home folder as alias)
-- comment line above and uncomment line below to open desktop instead of user home when there's no selection or open folder in the Finder:
-- set defaultTarget to (path to desktop folder as alias)
if (q as string) is "" then
tell application "Finder"
set finderSelection to (get selection)
if length of finderSelection is greater than 0 then
set theTarget to finderSelection
else
try
set theTarget to (folder of the front window as alias)
on error
set theTarget to defaultTarget
end try
end if
tell application "Finder"
open theTarget using appPath
end tell
end tell
else
try
set targets to {}
set oldDelimiters to text item delimiters
set text item delimiters to tab
set qArray to every text item of q
set text item delimiters to oldDelimiters
repeat with atarget in qArray
if atarget starts with "~" then
set userHome to POSIX path of (path to home folder)
if userHome ends with "/" then
set userHome to characters 1 thru -2 of userHome as string
end if
try
set atarget to userHome & characters 2 thru -1 of atarget as string
on error
set atarget to userHome
end try
end if
set targetAlias to ((POSIX file atarget) as alias)
set targets to targets & targetAlias
end repeat
set theTarget to targets
tell application "Finder"
open theTarget using appPath
end tell
on error
return (atarget as string) & " is not a valid file or folder path."
end try
end if
end alfred_script</string>
<key>cachescript</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.action.applescript</string>
<key>uid</key>
<string>577E7995-64DC-454D-B3F1-4FB96CC5AA65</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>anchorfields</key>
<true/>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>0</integer>
<key>daterange</key>
<integer>0</integer>
<key>fields</key>
<array>
<dict>
<key>field</key>
<string>kMDItemDisplayName</string>
<key>not</key>
<false/>
<key>split</key>
<true/>
<key>value</key>
<string>{query}</string>
<key>words</key>
<true/>
</dict>
<dict>
<key>field</key>
<string>kMDItemAlternateNames</string>
<key>not</key>
<false/>
<key>split</key>
<true/>
<key>value</key>
<string>{query}</string>
<key>words</key>
<true/>
</dict>
<dict>
<key>field</key>
<string>kMDItemFinderComment</string>
<key>not</key>
<false/>
<key>split</key>
<true/>
<key>value</key>
<string>{query}</string>
<key>words</key>
<true/>
</dict>
</array>
<key>includesystem</key>
<false/>
<key>keyword</key>
<string>iterm2</string>
<key>limit</key>
<integer>0</integer>
<key>runningsubtext</key>
<string></string>
<key>scopes</key>
<array/>
<key>sortmode</key>
<integer>0</integer>
<key>subtext</key>
<string>Find files and folders and open in Visual Studio Code</string>
<key>title</key>
<string>Find and open with Visual Studio Code</string>
<key>types</key>
<array/>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.filefilter</string>
<key>uid</key>
<string>23DEA358-A623-4725-95B2-79C207AF4556</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>lastpathcomponent</key>
<false/>
<key>onlyshowifquerypopulated</key>
<true/>
<key>removeextension</key>
<false/>
<key>text</key>
<string>{query}</string>
<key>title</key>
<string>Open with iterm2</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.notification</string>
<key>uid</key>
<string>C8DBBD25-D349-4EBD-BA38-4CF5FDB57EAF</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>keyword</key>
<string>iterm2</string>
<key>subtext</key>
<string>Open Finder folder or selection in iTerm2 or optionally enter a path to open</string>
<key>text</key>
<string>Open with iterm2</string>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>CC170ECD-6B82-4A05-8681-8185ACE453FE</string>
<key>version</key>
<integer>1</integer>
</dict>
</array>
<key>readme</key>
<string>An Alfred 3 workflow for opening files or folders with iTerm2. Based off on @alexchantastic's workflows.</string>
<key>uidata</key>
<dict>
<key>23DEA358-A623-4725-95B2-79C207AF4556</key>
<dict>
<key>xpos</key>
<integer>295</integer>
<key>ypos</key>
<integer>215</integer>
</dict>
<key>577E7995-64DC-454D-B3F1-4FB96CC5AA65</key>
<dict>
<key>xpos</key>
<integer>545</integer>
<key>ypos</key>
<integer>215</integer>
</dict>
<key>C8DBBD25-D349-4EBD-BA38-4CF5FDB57EAF</key>
<dict>
<key>xpos</key>
<integer>745</integer>
<key>ypos</key>
<integer>215</integer>
</dict>
<key>CC170ECD-6B82-4A05-8681-8185ACE453FE</key>
<dict>
<key>xpos</key>
<integer>300</integer>
<key>ypos</key>
<integer>370</integer>
</dict>
<key>DDFAE429-BEEC-49EA-BEDB-7E71BD402695</key>
<dict>
<key>xpos</key>
<integer>300</integer>
<key>ypos</key>
<integer>70</integer>
</dict>
</dict>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.1.0</string>
<key>webaddress</key>
<string>https://github.com/mikemajara/alfred-open-with-iterm2</string>
</dict>
</plist>