Skip to content

Commit f5d0dd1

Browse files
committed
Update for Alfred 4
1 parent 50b2374 commit f5d0dd1

11 files changed

+500
-338
lines changed
Binary file not shown.

src/info.plist

+38-38
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,25 @@
247247
<key>version</key>
248248
<integer>1</integer>
249249
</dict>
250+
<dict>
251+
<key>config</key>
252+
<dict>
253+
<key>browser</key>
254+
<string></string>
255+
<key>spaces</key>
256+
<string></string>
257+
<key>url</key>
258+
<string>{query}</string>
259+
<key>utf8</key>
260+
<true/>
261+
</dict>
262+
<key>type</key>
263+
<string>alfred.workflow.action.openurl</string>
264+
<key>uid</key>
265+
<string>E31A93B7-40D3-4DF1-AD3D-0FAFE635B7F7</string>
266+
<key>version</key>
267+
<integer>1</integer>
268+
</dict>
250269
<dict>
251270
<key>config</key>
252271
<dict>
@@ -271,38 +290,38 @@
271290
<dict>
272291
<key>config</key>
273292
<dict>
274-
<key>browser</key>
275-
<string></string>
276-
<key>spaces</key>
277-
<string></string>
278-
<key>url</key>
293+
<key>inputstring</key>
279294
<string>{query}</string>
280-
<key>utf8</key>
281-
<true/>
295+
<key>matchcasesensitive</key>
296+
<false/>
297+
<key>matchmode</key>
298+
<integer>2</integer>
299+
<key>matchstring</key>
300+
<string>^https?://.+</string>
282301
</dict>
283302
<key>type</key>
284-
<string>alfred.workflow.action.openurl</string>
303+
<string>alfred.workflow.utility.filter</string>
285304
<key>uid</key>
286-
<string>E31A93B7-40D3-4DF1-AD3D-0FAFE635B7F7</string>
305+
<string>8BD0909C-70CA-44EC-BC40-1AAE4D5924D2</string>
287306
<key>version</key>
288307
<integer>1</integer>
289308
</dict>
290309
<dict>
291310
<key>config</key>
292311
<dict>
293-
<key>inputstring</key>
294-
<string>{query}</string>
295-
<key>matchcasesensitive</key>
312+
<key>externaltriggerid</key>
313+
<string>config</string>
314+
<key>passinputasargument</key>
296315
<false/>
297-
<key>matchmode</key>
298-
<integer>2</integer>
299-
<key>matchstring</key>
300-
<string>^https?://.+</string>
316+
<key>passvariables</key>
317+
<false/>
318+
<key>workflowbundleid</key>
319+
<string>self</string>
301320
</dict>
302321
<key>type</key>
303-
<string>alfred.workflow.utility.filter</string>
322+
<string>alfred.workflow.output.callexternaltrigger</string>
304323
<key>uid</key>
305-
<string>8BD0909C-70CA-44EC-BC40-1AAE4D5924D2</string>
324+
<string>B4C1BF71-F959-4077-A780-B07F070F125F</string>
306325
<key>version</key>
307326
<integer>1</integer>
308327
</dict>
@@ -335,25 +354,6 @@ echo "$app"</string>
335354
<key>version</key>
336355
<integer>2</integer>
337356
</dict>
338-
<dict>
339-
<key>config</key>
340-
<dict>
341-
<key>externaltriggerid</key>
342-
<string>config</string>
343-
<key>passinputasargument</key>
344-
<false/>
345-
<key>passvariables</key>
346-
<false/>
347-
<key>workflowbundleid</key>
348-
<string>self</string>
349-
</dict>
350-
<key>type</key>
351-
<string>alfred.workflow.output.callexternaltrigger</string>
352-
<key>uid</key>
353-
<string>B4C1BF71-F959-4077-A780-B07F070F125F</string>
354-
<key>version</key>
355-
<integer>1</integer>
356-
</dict>
357357
<dict>
358358
<key>config</key>
359359
<dict>
@@ -477,7 +477,7 @@ or Tunnelblick app from https://tunnelblick.net/</string>
477477
<string>VPN_APP</string>
478478
</array>
479479
<key>version</key>
480-
<string>3.1</string>
480+
<string>3.2</string>
481481
<key>webaddress</key>
482482
<string>https://github.com/deanishe/alfred-vpn-manager</string>
483483
</dict>

src/workflow/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
__version__ = open(os.path.join(os.path.dirname(__file__), 'version')).read()
6565
__author__ = 'Dean Jackson'
6666
__licence__ = 'MIT'
67-
__copyright__ = 'Copyright 2014-2017 Dean Jackson'
67+
__copyright__ = 'Copyright 2014-2019 Dean Jackson'
6868

6969
__all__ = [
7070
'Variables',

src/workflow/background.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# Created on 2014-04-06
99
#
1010

11-
"""
12-
This module provides an API to run commands in background processes.
11+
"""This module provides an API to run commands in background processes.
12+
1313
Combine with the :ref:`caching API <caching-data>` to work from cached data
1414
while you fetch fresh data in the background.
1515

src/workflow/notify.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
# TODO: Exclude this module from test and code coverage in py2.6
1212

1313
"""
14-
Post notifications via the macOS Notification Center. This feature
15-
is only available on Mountain Lion (10.8) and later. It will
16-
silently fail on older systems.
14+
Post notifications via the macOS Notification Center.
15+
16+
This feature is only available on Mountain Lion (10.8) and later.
17+
It will silently fail on older systems.
1718
1819
The main API is a single function, :func:`~workflow.notify.notify`.
1920
@@ -198,7 +199,7 @@ def notify(title='', text='', sound=None):
198199
env = os.environ.copy()
199200
enc = 'utf-8'
200201
env['NOTIFY_TITLE'] = title.encode(enc)
201-
env['NOTIFY_MESSAGE'] = text.encode(enc)
202+
env['NOTIFY_MESSAGE'] = text.encode(enc)
202203
env['NOTIFY_SOUND'] = sound.encode(enc)
203204
cmd = [n]
204205
retcode = subprocess.call(cmd, env=env)

0 commit comments

Comments
 (0)