From e987a259ab99ae9a80b20ac4c1fa9a8150d6d374 Mon Sep 17 00:00:00 2001 From: Alex Zai Date: Sun, 1 Nov 2015 16:42:25 -0800 Subject: [PATCH] (feat) add push notification --- src/info.plist | 86 ++++++++++++++++++++++++++++++++++++++++- src/todoist_launcher.py | 1 + version | 2 +- 3 files changed, 87 insertions(+), 2 deletions(-) diff --git a/src/info.plist b/src/info.plist index 27d2ba9..09e8f66 100644 --- a/src/info.plist +++ b/src/info.plist @@ -6,6 +6,17 @@ com.todoist.azai91 connections + 0324E5BD-647D-403E-9059-F3ACBF834FA3 + + + destinationuid + FE35AD43-CA4B-42FA-B020-FB2E41E3FEB0 + modifiers + 0 + modifiersubtext + + + 32CD5947-52D0-4D5D-B544-23E45232A026 @@ -17,6 +28,17 @@ + 9AD4E62A-2F09-4FC3-9D01-ACCB65CD5CE1 + + + destinationuid + 2905D198-8253-4C24-A24C-F5C4C11A11FF + modifiers + 0 + modifiersubtext + + + E90080D1-1AD4-4707-8CFE-9E0D3295079D @@ -48,8 +70,10 @@ 102 script from todoist_api import Todoist +import sys try: Todoist.add_to_list("{query}") + sys.stdout.write("{query}") except: Todoist.open_auth_page() type @@ -81,6 +105,31 @@ except: version 0 + + config + + lastpathcomponent + + onlyshowifquerypopulated + + output + 0 + removeextension + + sticky + + text + "{query}" added + title + Todoist + + type + alfred.workflow.output.notification + uid + FE35AD43-CA4B-42FA-B020-FB2E41E3FEB0 + version + 0 + config @@ -89,7 +138,7 @@ except: escaping 102 keyword - ts + as queuedelaycustom 3 queuedelayimmediatelyinitially @@ -133,6 +182,31 @@ except: version 0 + + config + + lastpathcomponent + + onlyshowifquerypopulated + + output + 0 + removeextension + + sticky + + text + Account Removed + title + Todoist + + type + alfred.workflow.output.notification + uid + 2905D198-8253-4C24-A24C-F5C4C11A11FF + version + 0 + readme @@ -143,6 +217,11 @@ except: ypos 130 + 2905D198-8253-4C24-A24C-F5C4C11A11FF + + ypos + 250 + 32CD5947-52D0-4D5D-B544-23E45232A026 ypos @@ -158,6 +237,11 @@ except: ypos 130 + FE35AD43-CA4B-42FA-B020-FB2E41E3FEB0 + + ypos + 130 + webaddress diff --git a/src/todoist_launcher.py b/src/todoist_launcher.py index dd26657..367b30e 100644 --- a/src/todoist_launcher.py +++ b/src/todoist_launcher.py @@ -9,6 +9,7 @@ def main(wf): Todoist.open_auth_page() elif options[:6] in 'logout': Todoist.delete_access_token() + sys.stdout('') return 0 diff --git a/version b/version index ceab6e1..2f45361 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.1 \ No newline at end of file +0.2 \ No newline at end of file