Skip to content

Commit

Permalink
Update for Alfred 4. Closes #22
Browse files Browse the repository at this point in the history
  • Loading branch information
deanishe committed Jul 13, 2019
1 parent c7882a5 commit 1b734b1
Show file tree
Hide file tree
Showing 12 changed files with 500 additions and 333 deletions.
Binary file not shown.
66 changes: 33 additions & 33 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,25 @@ variables={allvars}
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>externaltriggerid</key>
<string>attachments</string>
<key>passinputasargument</key>
<false/>
<key>passvariables</key>
<true/>
<key>workflowbundleid</key>
<string>self</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.callexternaltrigger</string>
<key>uid</key>
<string>67475FEA-6BC4-4EBA-B18B-5BF88B41D320</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -844,25 +863,6 @@ variables={allvars}
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>externaltriggerid</key>
<string>attachments</string>
<key>passinputasargument</key>
<false/>
<key>passvariables</key>
<true/>
<key>workflowbundleid</key>
<string>self</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.callexternaltrigger</string>
<key>uid</key>
<string>67475FEA-6BC4-4EBA-B18B-5BF88B41D320</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -997,19 +997,6 @@ EOS</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>triggerid</key>
<string>copy-citation</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.external</string>
<key>uid</key>
<string>AEE6452E-9186-4609-8AD4-D74F469F1A79</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -1116,6 +1103,19 @@ test -n "$autopaste" &amp;&amp; flags+=(--paste)
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>triggerid</key>
<string>copy-citation</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.external</string>
<key>uid</key>
<string>AEE6452E-9186-4609-8AD4-D74F469F1A79</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -2224,7 +2224,7 @@ Edit the `ZOTERO_DIR` variable to point to Zotero 5's data directory if you aren
<string></string>
</dict>
<key>version</key>
<string>1.2</string>
<string>1.2.1</string>
<key>webaddress</key>
<string>https://github.com/deanishe/zothero</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/workflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
__version__ = open(os.path.join(os.path.dirname(__file__), 'version')).read()
__author__ = 'Dean Jackson'
__licence__ = 'MIT'
__copyright__ = 'Copyright 2014-2017 Dean Jackson'
__copyright__ = 'Copyright 2014-2019 Dean Jackson'

__all__ = [
'Variables',
Expand Down
4 changes: 2 additions & 2 deletions src/lib/workflow/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# Created on 2014-04-06
#

"""
This module provides an API to run commands in background processes.
"""This module provides an API to run commands in background processes.
Combine with the :ref:`caching API <caching-data>` to work from cached data
while you fetch fresh data in the background.
Expand Down
9 changes: 5 additions & 4 deletions src/lib/workflow/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
# TODO: Exclude this module from test and code coverage in py2.6

"""
Post notifications via the macOS Notification Center. This feature
is only available on Mountain Lion (10.8) and later. It will
silently fail on older systems.
Post notifications via the macOS Notification Center.
This feature is only available on Mountain Lion (10.8) and later.
It will silently fail on older systems.
The main API is a single function, :func:`~workflow.notify.notify`.
Expand Down Expand Up @@ -198,7 +199,7 @@ def notify(title='', text='', sound=None):
env = os.environ.copy()
enc = 'utf-8'
env['NOTIFY_TITLE'] = title.encode(enc)
env['NOTIFY_MESSAGE'] = text.encode(enc)
env['NOTIFY_MESSAGE'] = text.encode(enc)
env['NOTIFY_SOUND'] = sound.encode(enc)
cmd = [n]
retcode = subprocess.call(cmd, env=env)
Expand Down
Loading

0 comments on commit 1b734b1

Please sign in to comment.