Crates.io | taskwarrior-hooks |
lib.rs | taskwarrior-hooks |
version | 0.2.2 |
source | src |
created_at | 2019-12-29 00:25:22.394006 |
updated_at | 2020-01-25 03:51:44.884199 |
description | A collection of executables to be used as taskwarrior hooks. |
homepage | |
repository | https://github.com/mrvandalo/taskwarrior-hooks |
max_upload_size | |
id | 193101 |
size | 83,743 |
to install all binaries in ~/.cargo/bin
run.
cargo install --path .
Reschedule tasks, instead of completing them.
Task will be rescheduled today + (given duration)
.
Add this UDA to your ~/.taskrc
.
# scheduled_recur
uda.scheduled_recur.type=duration
uda.scheduled_recur.label=Scheduled Recurance
# END scheduled_recur
and this hook to ~/.task/hooks/on-modify.scheduled-recur.sh
#!/usr/bin/env bash
~/.cargo/bin/scheduled-recur
Duration are set using
ISO8601.
For example : scheduled_recur:P1D
or scheduled_recur:P1DT8H
Automatic adds tags by parsing the description. The description string will be split in words and the matching must be exact, no regular expressions supported (yet?).
You have to define a configuration file tag-map.json
,
here is an example :
[
{
"name": "buy",
"keywords": ["buy" "shopping" "shop" ]
},
{
"name": "bug",
"keywords": ["fix", "bug"]
}
]
To use for on-add
#!/usr/bin/env bash
~/.cargo/bin/auto-tagger <path/to/tag-map.json>
to use for on-modify (just drop the original line)
#!/usr/bin/env bash
read original_line
~/.cargo/bin/auto-tagger <path/to/tag-map.json>