├── Doing.alfredworkflow ├── assets └── alfred-large-type.png ├── icon.png ├── info.plist └── readme.md /Doing.alfredworkflow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvanLovely/alfred--doing/c20cffc0ed98e248deead7db6cef6ec5e47b2177/Doing.alfredworkflow -------------------------------------------------------------------------------- /assets/alfred-large-type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvanLovely/alfred--doing/c20cffc0ed98e248deead7db6cef6ec5e47b2177/assets/alfred-large-type.png -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvanLovely/alfred--doing/c20cffc0ed98e248deead7db6cef6ec5e47b2177/icon.png -------------------------------------------------------------------------------- /info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | bundleid 6 | com.evanlovely.doing 7 | connections 8 | 9 | 1E693007-8002-424D-8A01-6C1C0106315B 10 | 11 | 12 | destinationuid 13 | 71C2B57B-8503-4458-B3F1-295D24FD039F 14 | modifiers 15 | 0 16 | modifiersubtext 17 | 18 | 19 | 20 | destinationuid 21 | E5524B34-EEFA-491C-AE80-C0C3BF30B57E 22 | modifiers 23 | 1048576 24 | modifiersubtext 25 | Add to Later list 26 | 27 | 28 | 71C2B57B-8503-4458-B3F1-295D24FD039F 29 | 30 | 31 | createdby 32 | Evan Lovely 33 | description 34 | Helper for Brett Terpstra's `doing` CLI 35 | disabled 36 | 37 | name 38 | Doing 39 | objects 40 | 41 | 42 | config 43 | 44 | escaping 45 | 0 46 | script 47 | source ~/.bash_profile 48 | 49 | if [ "{query}" == ? ]; then 50 | osascript -e ' 51 | set _doing to do shell script "doing recent" 52 | tell application "Alfred 2" to search _doing 53 | tell application "System Events" 54 | keystroke "l" using {command down, option down} 55 | end tell 56 | ' 57 | else 58 | doing now "{query}" 59 | fi 60 | type 61 | 0 62 | 63 | type 64 | alfred.workflow.action.script 65 | uid 66 | 71C2B57B-8503-4458-B3F1-295D24FD039F 67 | version 68 | 0 69 | 70 | 71 | config 72 | 73 | argumenttype 74 | 0 75 | keyword 76 | doing 77 | subtext 78 | Add new item to Currently list. Type ? to get recent items back. Hold Cmd to work with Later list. 79 | text 80 | Doing 81 | withspace 82 | 83 | 84 | type 85 | alfred.workflow.input.keyword 86 | uid 87 | 1E693007-8002-424D-8A01-6C1C0106315B 88 | version 89 | 0 90 | 91 | 92 | config 93 | 94 | escaping 95 | 0 96 | script 97 | source ~/.bash_profile 98 | 99 | if [ "{query}" == ? ]; then 100 | osascript -e ' 101 | set _doing to do shell script "doing show later" 102 | tell application "Alfred 2" to search _doing 103 | tell application "System Events" 104 | keystroke "l" using {command down, option down} 105 | end tell 106 | ' 107 | else 108 | doing later "{query}" 109 | fi 110 | type 111 | 0 112 | 113 | type 114 | alfred.workflow.action.script 115 | uid 116 | E5524B34-EEFA-491C-AE80-C0C3BF30B57E 117 | version 118 | 0 119 | 120 | 121 | readme 122 | 123 | uidata 124 | 125 | 1E693007-8002-424D-8A01-6C1C0106315B 126 | 127 | ypos 128 | 10 129 | 130 | 71C2B57B-8503-4458-B3F1-295D24FD039F 131 | 132 | ypos 133 | 10 134 | 135 | E5524B34-EEFA-491C-AE80-C0C3BF30B57E 136 | 137 | ypos 138 | 130 139 | 140 | 141 | webaddress 142 | http://evanlovely.com 143 | 144 | 145 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Alfred Workflow for `doing` 2 | 3 | Please read the [project page for `doing` by Brett Terpstra](http://brettterpstra.com/projects/doing/). He's a LaunchBar user and suggested that someone could whip up an Alfred Workflow, so I did. This is a straight port of his LaunchBar script that allows either the simple adding of a new item or asking what are the recent items. Much more is available via the CLI, and could be added later, but let's start with this. 4 | 5 | ## How to use 6 | 7 | 1. Follow [his instructions](http://brettterpstra.com/projects/doing/) (tl;dr: `gem install doing`) 8 | 2. [Install this Workflow](https://github.com/EvanLovely/alfred--doing/raw/master/Doing.alfredworkflow) 9 | 3. Type `doing ?` to get a Large Type display of your recent items. Identical to running `doing recent`. Hold Command to get the list from the Later list. Identitcal to running `doing show later`. 10 | 4. Type `doing "new item to do"` to add "new item to do" to your current list. Identical to running `doing now "new item to do"`. Hold Command to send it to the Later List, identical to running `doing later "item to do"`. 11 | 12 | ### How to make sure Alfred's query window is dismissed after running `doing ?` 13 | 14 | After you run `doing ?`, you may notice Alfred's window is still hanging around, to fix that change this: 15 | 16 | ![Turn on Auto-Hide Large Type in Alfred Prefs](https://github.com/EvanLovely/alfred--doing/raw/master/assets/alfred-large-type.png) 17 | 18 | Hat tip to [Sam Kimbrel](http://www.samkimbrel.com/posts/2013-12-24-os-x-shell-large-type.html) for that, along with the way to get Alfred's Large Type to be scriptable. --------------------------------------------------------------------------------