Skip to content

Commit

Permalink
(feat) add push notification
Browse files Browse the repository at this point in the history
  • Loading branch information
azai91 committed Nov 2, 2015
1 parent a3f8472 commit e987a25
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 2 deletions.
86 changes: 85 additions & 1 deletion src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
<string>com.todoist.azai91</string>
<key>connections</key>
<dict>
<key>0324E5BD-647D-403E-9059-F3ACBF834FA3</key>
<array>
<dict>
<key>destinationuid</key>
<string>FE35AD43-CA4B-42FA-B020-FB2E41E3FEB0</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>32CD5947-52D0-4D5D-B544-23E45232A026</key>
<array>
<dict>
Expand All @@ -17,6 +28,17 @@
<string></string>
</dict>
</array>
<key>9AD4E62A-2F09-4FC3-9D01-ACCB65CD5CE1</key>
<array>
<dict>
<key>destinationuid</key>
<string>2905D198-8253-4C24-A24C-F5C4C11A11FF</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>E90080D1-1AD4-4707-8CFE-9E0D3295079D</key>
<array>
<dict>
Expand Down Expand Up @@ -48,8 +70,10 @@
<integer>102</integer>
<key>script</key>
<string>from todoist_api import Todoist
import sys
try:
Todoist.add_to_list("{query}")
sys.stdout.write("{query}")
except:
Todoist.open_auth_page()</string>
<key>type</key>
Expand Down Expand Up @@ -81,6 +105,31 @@ except:
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>lastpathcomponent</key>
<false/>
<key>onlyshowifquerypopulated</key>
<true/>
<key>output</key>
<integer>0</integer>
<key>removeextension</key>
<false/>
<key>sticky</key>
<false/>
<key>text</key>
<string>"{query}" added</string>
<key>title</key>
<string>Todoist</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.notification</string>
<key>uid</key>
<string>FE35AD43-CA4B-42FA-B020-FB2E41E3FEB0</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand All @@ -89,7 +138,7 @@ except:
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>ts</string>
<string>as</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
Expand Down Expand Up @@ -133,6 +182,31 @@ except:
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>lastpathcomponent</key>
<false/>
<key>onlyshowifquerypopulated</key>
<true/>
<key>output</key>
<integer>0</integer>
<key>removeextension</key>
<false/>
<key>sticky</key>
<false/>
<key>text</key>
<string>Account Removed</string>
<key>title</key>
<string>Todoist</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.notification</string>
<key>uid</key>
<string>2905D198-8253-4C24-A24C-F5C4C11A11FF</string>
<key>version</key>
<integer>0</integer>
</dict>
</array>
<key>readme</key>
<string></string>
Expand All @@ -143,6 +217,11 @@ except:
<key>ypos</key>
<real>130</real>
</dict>
<key>2905D198-8253-4C24-A24C-F5C4C11A11FF</key>
<dict>
<key>ypos</key>
<real>250</real>
</dict>
<key>32CD5947-52D0-4D5D-B544-23E45232A026</key>
<dict>
<key>ypos</key>
Expand All @@ -158,6 +237,11 @@ except:
<key>ypos</key>
<real>130</real>
</dict>
<key>FE35AD43-CA4B-42FA-B020-FB2E41E3FEB0</key>
<dict>
<key>ypos</key>
<real>130</real>
</dict>
</dict>
<key>webaddress</key>
<string></string>
Expand Down
1 change: 1 addition & 0 deletions src/todoist_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def main(wf):
Todoist.open_auth_page()
elif options[:6] in 'logout':
Todoist.delete_access_token()
sys.stdout('')

return 0

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1
0.2

0 comments on commit e987a25

Please sign in to comment.