Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
A non-AI automatic scheduler for taskwarrior (i.e. alternative to skedpal/timehero/flowsavvy/reclaim/trevor/motion)
This is a taskwarrior extension checks if tasks can be completed on time, considering estimated time and working hours.
pipx install taskcheck
taskcheck --install
This extension parses your pending and waiting tasks sorted decreasingly by urgency and tries to schedule them in the future. It considers their estimated time to schedule all tasks starting from the most urgent one.
Taskcheck leverages to UDAs, estimated
and time_map
. The estimated
attribute is
the expected time to complete the task in hours. The time_map
is a comma-separated list of strings
that indicates the hours per day in which you will work on a task (e.g. work
, weekend
, etc.).
The exact correspondence between the time_map
and the hours of the day is defined in the configuration
file of taskcheck. For instance:
[time_maps]
# get an error)
[time_maps.work]
monday = [[9, 12.30], [14, 17]]
tuesday = [[9, 12.30], [14, 17]]
# ...
Taskcheck will also parse online iCal calendars (Google, Apple, etc.) and will match them with your time maps.
It will then modify the Taskwarrior tasks by adding the completion_date
attribute with the expected
date of completion and the scheduled
attribute with the date in which the task is expected to
start.
It will also print a red line for every task whose completion_date
is after its due_date
.
In general, it is recommended to run taskcheck rather frequently and at least once at the beginning of your working day.
You can also print simple reports that exploit the scheduling
UDA filled by Taskcheck to grasp
how much time you have to work on which task in which day. For
instance:
taskcheck -r today
will show the tasks planned for todaytaskcheck -r 1w
will show the tasks planned for the next week,The algorithm allocates a fixed amount of time for each task (e.g. 1 hour) and then recomputes the urgency and restart the allocation procedure.
If after 1 hour the long task has decreased urgency, that will be noticed and the newer most urgent task will get scheduled in its place.
The minimum time for a task is by default 2 hours, but you can change it by tuning the min_block
taskwarrior UDA.
taskcheck --install
allows you to create required and recommended configurations for
taskwarrior. It will also generate a default configuration file for taskcheck.
Below is an example of taskcheck configuration file:
[time_maps]
# in which hours you will work in each day (in 24h format, if you use e.g. 25.67 you will likely
# get an error)
[time_maps.work]
monday = [[9, 12.30], [14, 17]]
tuesday = [[9, 12.30], [14, 17]]
wednesday = [[9, 12.30], [14, 17]]
thursday = [[9, 12.30], [14, 17]]
friday = [[9, 12.30], [14, 17]]
[time_maps.weekend]
saturday = [[9, 12.30], ]
sunday = [[9, 12.30], ]
[scheduler]
days_ahead = 1000 # how far go with the schedule (lower values make the computation faster)
[calendars]
# ical calendars can be used to block your time and make the scheduling more precise
[calendars.1]
url = "https://your/url/to/calendar.ics"
expiration = 0.08 # in hours (0.08 hours =~ 5 minutes)
timezone = "Europe/Rome" # if set, force timezone for this calendar; timezone values are TZ identifiers (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
[calendars.holidays]
url = "https://www.officeholidays.com/ics-clean/italy/milan"
event_all_day_is_blocking = true
expiration = 720 # in hours (720 hours = 30 days)
[report]
additional_attributes = ["estimated", "due", "urgency"] # additional attributes to show in the report
# when these words are matched in the task description, the corresponding emoji is used
emoji_keywords = {"meet"=":busts_in_silhouette:", "review"=":mag_right:"}
include_unplanned = true # include unplanned tasks in the report in an ad-hoc section
additional_attributes_unplanned = ["due", "urgency"] # additional attributes to show in the report for unplanned tasks
time_map
or estimated
attributes.task ready
report.-v, --verbose: increase output verbosity
-i, --install: install taskcheck configuration
-r, --report: show tasks planned until a certain time
FAQs
Automatic scheduler for taskwarrior
We found that taskcheck demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.