Also check out different workflow made by hylo.
Mimic natural language detection when creating a 2Do task.
USAGE:
2d event [on|at|by|from] [dd/MM/YY|mm:hh[pm]] [near [location]] [@[list]] [#[tag]] [[*][**][***]] [-web] [-proj|-check]
On 2.0 workflow will try to detect date format(dd/MM/YY) of time format(mm:hh) after keyword on
at
by
or from
. If these keywords are not followed by date format or time format, it will be included back to event name. Keyword by
only sets due date/time and keyword from
only sets start date/time.
Keep in my there's no space between time and pm
keyword in time format.
Location after near
keyword sets location. Requires location be set beforehand.
List can be designated with @
sign. No space between @
sign and list name.
Multiple hashtags can be attached.
Importance can be applied with 1~3 of asterisks.
+ This workflow will automatically detect and add webpage url currently you're watching as an action to open the webpage. You can choose whether or not to add web page or not by adding -web
flag. Only works with Safari and Chrome. Does not work with Firefox browser. why
Event type can also be project
or checklist
. Apply with keyword -proj
or -check
.
caveat: It takes bit of time for this script to dissect your input and understand your intention. So it is recommended you pause 1 second before pressing return key to create a new task. I'm looking for ways to solve this issue. Solved by v 1.1
Many thanks to Fahad G. for providing icons :D Black icons are also included in case you're using light alfred theme. All the icons are edited based on original icon provided.
Also big shout out to @doomsheart reviewing the whole code for me.
Massive shout out to @hylo for contribution. Check out his workflow here
based on the work of 2Do Workflow by Caleb Grove
webpage detection code from fallroot's copy-url-for-alfred
you can try at your own risk and any suggestions/pull requests will be appreciated
-
only single tag is accepted; working on it -
priority