Painless chained recurrence for Taskwarrior.
Project description
Taskwarrior Chained Recurrence Hook
Painlessly adds chained recurrence to Taskwarrior. Requires Python >= 3.8
.
In the illustration above, task 26ccff69
is automatically created when task
90e414dl
is completed. With the new task having the equivalent due
and
wait
attributes, relative to it's own entry
attribute.
It's common to have due
or wait
fall on a day boundary such as 23:59
or
00:00
, this is usually because a named date such as eod
or sod
was used
when creating the original task. If this is the case, new tasks will be created
with the due
and wait
attributes automatically falling on the equivalent
day boundaries. If this sounds convoluted, the "Usage" section below
has a simple example.
Install
$ pip install chained-recurrence
$ chained-recurrence install
Usage
Create tasks as you usually would, adding chained:on
:
$ task add chained:on 'hair cut'
When this task's status is changed to complete
, a new one will be created.
The wait
and due
attributes can also be used, their date and time values
will be updated in relation to the current date and time:
$ date
Mon 1 Jan 18:00:00 GMT 2024
$ task add chained:on wait:1d 'workout'
Created task 1.
$ date
Sat 20 Jan 09:00:00 GMT 2024
$ task 1 done
Completed task ab566e0f 'workout'.
Completed 1 task.
Creating new chained task.
The newly created chained task will have the following:
Attribute | Value |
---|---|
wait | 2024-01-21 09:00:00 |
Named Dates
$ date
Mon 1 Jan 18:00:00 GMT 2024
$ task add chained:on wait:sod+1d due:eod+2d 'workout'
Created task 1.
$ date
Sat 20 Jan 09:00:00 GMT 2024
$ task 1 done
Completed task ab566e0f 'workout'.
Completed 1 task.
Creating new chained task.
The newly created chained task will have the following:
Attribute | Value |
---|---|
wait | 2024-01-21 00:00:00 |
due | 2024-01-22 23:59:59 |
Uninstall
$ chained-recurrence uninstall
$ pip uninstall chained-recurrence
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file chained-recurrence-0.0.13.tar.gz
.
File metadata
- Download URL: chained-recurrence-0.0.13.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ccc59141f365e4bc73022d5bdb896d0bf00550162629cd74c5a71214c83a886 |
|
MD5 | c9858cb0438ca25da931e67d42eaf605 |
|
BLAKE2b-256 | bdc93ca5528f3f132bb01e8901e93eb5b4967641d09fcea60e1975fe0ce52b31 |
File details
Details for the file chained_recurrence-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: chained_recurrence-0.0.13-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 125e211d183facc3d2338b1578eeff9a9d9b44d0bf770c47dca7105ed1081548 |
|
MD5 | 9c5bb90c159affa45d92bb2aee9fe0e9 |
|
BLAKE2b-256 | 9ffdccf0c4a14cda92ef28546643d1a134a985392eda052f53ef596d86c610db |