-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinfo.plist
482 lines (465 loc) · 12.6 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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
<?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.verykiwi.regex.v1.7.0</string>
<key>connections</key>
<dict>
<key>1560DC15-8D54-4CCC-83F7-BFA87F62A2C7</key>
<array>
<dict>
<key>destinationuid</key>
<string>21861034-0E83-45AA-A692-7B00AD319CCB</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>15B1D160-CE6F-4FB0-9EE6-9112A1F5D6AB</key>
<array>
<dict>
<key>destinationuid</key>
<string>21861034-0E83-45AA-A692-7B00AD319CCB</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>21861034-0E83-45AA-A692-7B00AD319CCB</key>
<array>
<dict>
<key>destinationuid</key>
<string>12D6057F-03ED-470C-825C-9384EF6E2CF1</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>27FD0E60-31BF-4B51-98B9-546816CEACEE</key>
<array>
<dict>
<key>destinationuid</key>
<string>21861034-0E83-45AA-A692-7B00AD319CCB</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
<dict>
<key>destinationuid</key>
<string>12688F1D-D733-4F1C-97E1-F878CCCA4263</string>
<key>modifiers</key>
<integer>1048576</integer>
<key>modifiersubtext</key>
<string>Open RegexSequences.pl for customization.</string>
</dict>
</array>
<key>7604D574-7E19-4E7E-8069-52989B2CDD0D</key>
<array/>
<key>7C178ED0-9E25-4A43-AF29-F8AA73CB3A35</key>
<array>
<dict>
<key>destinationuid</key>
<string>21861034-0E83-45AA-A692-7B00AD319CCB</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>BA2E50F7-8FBB-4D4E-A6D4-397F48024C34</key>
<array>
<dict>
<key>destinationuid</key>
<string>21861034-0E83-45AA-A692-7B00AD319CCB</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
</dict>
<key>createdby</key>
<string>Matthew Lancellotti</string>
<key>description</key>
<string>Perform regex replacements on copied text, and save sequences of regexs for future use!</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>regex v1.7.0</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>autopaste</key>
<true/>
<key>clipboardtext</key>
<string>{query}</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.clipboard</string>
<key>uid</key>
<string>12D6057F-03ED-470C-825C-9384EF6E2CF1</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>96</integer>
<key>keyword</key>
<string>regex</string>
<key>queuedelaycustom</key>
<integer>1</integer>
<key>queuedelayimmediatelyinitially</key>
<false/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>script</key>
<string>use VeryKiwiHelpers;
my $query = trim_left(q${query}$);
if ( $query =~ m/^sq?[^\s\w]/ ) {
use VeryKiwiFilter;
my_filter( $query );
}
else{
print q(<?xml version="1.0" encoding="utf-8"?><items>);
use VeryKiwiAlfred;
entry({
title => 'regex',
subtitle => "Execute '$query' saved regex.",
arg => $query
});
print q(</items>);
}</string>
<key>subtext</key>
<string>Perform a native Perl regex substitution on the content you just copied.</string>
<key>title</key>
<string>regex</string>
<key>type</key>
<integer>4</integer>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>27FD0E60-31BF-4B51-98B9-546816CEACEE</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>escaping</key>
<integer>96</integer>
<key>script</key>
<string>use VeryKiwiFilter;
print command_to_output(q${query}$);
</string>
<key>type</key>
<integer>4</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>21861034-0E83-45AA-A692-7B00AD319CCB</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>96</integer>
<key>keyword</key>
<string>s</string>
<key>queuedelaycustom</key>
<integer>1</integer>
<key>queuedelayimmediatelyinitially</key>
<false/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>script</key>
<string># no point in trimming left because the keyword would fail anyway:
my $query = q${query}$;
if ( $query =~ m/^[^\s\w]/ ) {
use VeryKiwiFilter;
my_filter( 's'.$query );
}
else{
die # a dead filter will not appear as an Alfred option
}
</string>
<key>subtext</key>
<string>Perform a native Perl regex substitution on the content you just copied.</string>
<key>title</key>
<string>s/search/and replace!/g</string>
<key>type</key>
<integer>4</integer>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>15B1D160-CE6F-4FB0-9EE6-9112A1F5D6AB</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>sourcefile</key>
<string>~/Library/Application Support/Alfred 2/Workflow Data/com.verykiwi.regex/RegexSequences.pl</string>
</dict>
<key>type</key>
<string>alfred.workflow.action.openfile</string>
<key>uid</key>
<string>12688F1D-D733-4F1C-97E1-F878CCCA4263</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>96</integer>
<key>keyword</key>
<string>sq</string>
<key>queuedelaycustom</key>
<integer>1</integer>
<key>queuedelayimmediatelyinitially</key>
<false/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>script</key>
<string># no point in trimming left because the keyword would fail anyway:
my $query = q${query}$;
if ( $query =~ m/^[^\s\w]/ ) {
use VeryKiwiFilter;
my_filter( 'sq'.$query );
}
else{
die # a dead filter will not appear as an Alfred option
}
</string>
<key>subtext</key>
<string>Perform a native Perl regex substitution on the content you just copied.</string>
<key>title</key>
<string>s/search/and replace!/g</string>
<key>type</key>
<integer>4</integer>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>BA2E50F7-8FBB-4D4E-A6D4-397F48024C34</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>96</integer>
<key>keyword</key>
<string>tr</string>
<key>queuedelaycustom</key>
<integer>1</integer>
<key>queuedelayimmediatelyinitially</key>
<false/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>script</key>
<string># no point in trimming left because the keyword would fail anyway:
my $query = q${query}$;
if ( $query =~ m/^[^\s\w]/ ) {
use VeryKiwiFilter;
my_filter( 'tr'.$query );
}
else{
die # a dead filter will not appear as an Alfred option
}
</string>
<key>subtext</key>
<string>Perform a "tr" translation on the content you just copied (Perl-style syntax).</string>
<key>title</key>
<string>tr/search/and replace!/</string>
<key>type</key>
<integer>4</integer>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>1560DC15-8D54-4CCC-83F7-BFA87F62A2C7</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>96</integer>
<key>keyword</key>
<string>y</string>
<key>queuedelaycustom</key>
<integer>1</integer>
<key>queuedelayimmediatelyinitially</key>
<false/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>script</key>
<string># no point in trimming left because the keyword would fail anyway:
my $query = q${query}$;
if ( $query =~ m/^[^\s\w]/ ) {
use VeryKiwiFilter;
my_filter( 'y'.$query );
}
else{
die # a dead filter will not appear as an Alfred option
}
</string>
<key>subtext</key>
<string>Perform a "tr" translation on the content you just copied (Perl-style syntax).</string>
<key>title</key>
<string>tr/search/and replace!/</string>
<key>type</key>
<integer>4</integer>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>7C178ED0-9E25-4A43-AF29-F8AA73CB3A35</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>96</integer>
<key>queuedelaycustom</key>
<integer>1</integer>
<key>queuedelayimmediatelyinitially</key>
<false/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>script</key>
<string># coming soon! m</string>
<key>subtext</key>
<string>Perform a native Perl regex match on the content you just copied.</string>
<key>title</key>
<string>m/match that regex!/</string>
<key>type</key>
<integer>4</integer>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>7604D574-7E19-4E7E-8069-52989B2CDD0D</string>
<key>version</key>
<integer>0</integer>
</dict>
</array>
<key>readme</key>
<string>Version 1.7.0
This code may be re-used in part or in whole in other projects, but the following attribution (credit line) must always be included:
"Regex tool by Matthew Lancellotti | code.instructorium.com/regex or matt.verykiwi.com/regex | CC-BY-4.0"
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
############################ HOW TO USE ############################
For the s/ prefix, the code uses eval to get the full native behavior. The o and p options are useless but allowed. The r option is not allowed.
Use case: s/\b pigeon(s?) \b/quail$1/xgi
For sq/ prefix, there is no escaping or interpolation whatsoever. The regex delimiters may not be escaped either, so you MUST pick a unique character for them (e.g. s%\qquad 2/3%\quad 2/3% ),or in the case of brackets, have proper nesting. In addition to the above exclusions, the e, x, and s options are not available. The i option is still available!
Use case: sq|regexstuff|stuff|g
For the tr/ and y/ prefixes, it is again native behavior.</string>
<key>uidata</key>
<dict>
<key>12688F1D-D733-4F1C-97E1-F878CCCA4263</key>
<dict>
<key>ypos</key>
<real>130</real>
</dict>
<key>12D6057F-03ED-470C-825C-9384EF6E2CF1</key>
<dict>
<key>ypos</key>
<real>10</real>
</dict>
<key>1560DC15-8D54-4CCC-83F7-BFA87F62A2C7</key>
<dict>
<key>ypos</key>
<real>310</real>
</dict>
<key>15B1D160-CE6F-4FB0-9EE6-9112A1F5D6AB</key>
<dict>
<key>ypos</key>
<real>110</real>
</dict>
<key>21861034-0E83-45AA-A692-7B00AD319CCB</key>
<dict>
<key>ypos</key>
<real>10</real>
</dict>
<key>27FD0E60-31BF-4B51-98B9-546816CEACEE</key>
<dict>
<key>ypos</key>
<real>10</real>
</dict>
<key>7604D574-7E19-4E7E-8069-52989B2CDD0D</key>
<dict>
<key>ypos</key>
<real>570</real>
</dict>
<key>7C178ED0-9E25-4A43-AF29-F8AA73CB3A35</key>
<dict>
<key>ypos</key>
<real>410</real>
</dict>
<key>BA2E50F7-8FBB-4D4E-A6D4-397F48024C34</key>
<dict>
<key>ypos</key>
<real>210</real>
</dict>
</dict>
<key>webaddress</key>
<string>code.instructorium.com/regex</string>
</dict>
</plist>