Skip to content

Commit

Permalink
set default pomodoro to 25 mins + minor tweaks (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
colomolo authored May 19, 2023
1 parent b0bbf11 commit a82c3ad
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 46 deletions.
90 changes: 44 additions & 46 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,14 @@ function run(argv) {
<false/>
<key>variables</key>
<dict>
<key>timer_seconds</key>
<key>timer_message</key>
<string>{query}</string>
</dict>
</dict>
<key>type</key>
<string>alfred.workflow.utility.argument</string>
<key>uid</key>
<string>F596D83C-3346-449D-9BCA-3191EE4113AA</string>
<string>5EADE272-1C98-4269-AA31-CEE35511AEA3</string>
<key>version</key>
<integer>1</integer>
</dict>
Expand All @@ -447,14 +447,14 @@ function run(argv) {
<false/>
<key>variables</key>
<dict>
<key>timer_message</key>
<key>timer_seconds</key>
<string>{query}</string>
</dict>
</dict>
<key>type</key>
<string>alfred.workflow.utility.argument</string>
<key>uid</key>
<string>5EADE272-1C98-4269-AA31-CEE35511AEA3</string>
<string>F596D83C-3346-449D-9BCA-3191EE4113AA</string>
<key>version</key>
<integer>1</integer>
</dict>
Expand Down Expand Up @@ -554,18 +554,14 @@ function run(argv) {
<false/>
<key>variables</key>
<dict>
<key>duration_input</key>
<string>{var:pomodoro_duration}m</string>
<key>timer_is_pomodoro</key>
<string>1</string>
<key>timer_message</key>
<string>Pomodoro timer finished!</string>
<key>timer_seconds</key>
<string>{query}</string>
</dict>
</dict>
<key>type</key>
<string>alfred.workflow.utility.argument</string>
<key>uid</key>
<string>4EBB0702-3B74-4BBB-9E58-0CD315797E7A</string>
<string>2B80824F-8439-4A1A-AE8E-83DB7260FDEA</string>
<key>version</key>
<integer>1</integer>
</dict>
Expand All @@ -578,48 +574,52 @@ function run(argv) {
<false/>
<key>variables</key>
<dict>
<key>timer_seconds</key>
<string>{query}</string>
<key>duration_input</key>
<string>{var:pomodoro_duration}m</string>
<key>timer_is_pomodoro</key>
<string>1</string>
<key>timer_message</key>
<string>Pomodoro timer finished!</string>
</dict>
</dict>
<key>type</key>
<string>alfred.workflow.utility.argument</string>
<key>uid</key>
<string>2B80824F-8439-4A1A-AE8E-83DB7260FDEA</string>
<string>4EBB0702-3B74-4BBB-9E58-0CD315797E7A</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>availableviaurlhandler</key>
<key>externaltriggerid</key>
<string>show_message</string>
<key>passinputasargument</key>
<false/>
<key>passvariables</key>
<true/>
<key>triggerid</key>
<string>start_timer</string>
<key>workflowbundleid</key>
<string>self</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.external</string>
<string>alfred.workflow.output.callexternaltrigger</string>
<key>uid</key>
<string>2CD78571-C416-465E-A9F7-E785A96FD7EB</string>
<string>E50C07BD-6CB3-43F5-AEC6-5CCEA6B7180A</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>externaltriggerid</key>
<string>show_message</string>
<key>passinputasargument</key>
<false/>
<key>passvariables</key>
<key>availableviaurlhandler</key>
<true/>
<key>workflowbundleid</key>
<string>self</string>
<key>triggerid</key>
<string>start_timer</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.callexternaltrigger</string>
<string>alfred.workflow.trigger.external</string>
<key>uid</key>
<string>E50C07BD-6CB3-43F5-AEC6-5CCEA6B7180A</string>
<string>2CD78571-C416-465E-A9F7-E785A96FD7EB</string>
<key>version</key>
<integer>1</integer>
</dict>
Expand Down Expand Up @@ -697,6 +697,21 @@ function run(argv) {
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>availableviaurlhandler</key>
<true/>
<key>triggerid</key>
<string>show_message</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.external</string>
<key>uid</key>
<string>D4E7636D-BD88-4389-B968-F1B9A60D8977</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -726,21 +741,6 @@ function run(argv) {
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>availableviaurlhandler</key>
<true/>
<key>triggerid</key>
<string>show_message</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.external</string>
<key>uid</key>
<string>D4E7636D-BD88-4389-B968-F1B9A60D8977</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -994,7 +994,7 @@ function run(argv) {
<key>config</key>
<dict>
<key>default</key>
<string>15</string>
<string>25</string>
<key>pairs</key>
<array>
<array>
Expand Down Expand Up @@ -1029,8 +1029,6 @@ function run(argv) {
<string>pomodoro_duration</string>
</dict>
</array>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>1.0.2</string>
<key>webaddress</key>
Expand Down
1 change: 1 addition & 0 deletions parse_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ function run(argv) {
}

return JSON.stringify({
rerun: 1,
items,
});
}

0 comments on commit a82c3ad

Please sign in to comment.