Crates.io | taskwarrior-hooks-rust |
lib.rs | taskwarrior-hooks-rust |
version | 0.1.0 |
source | src |
created_at | 2019-12-29 00:19:57.29167 |
updated_at | 2019-12-29 00:19:57.29167 |
description | A collection of executables to be used as taskwarrior hooks. |
homepage | |
repository | https://github.com/mrvandalo/taskwarrior-hooks |
max_upload_size | |
id | 193100 |
size | 52,341 |
to install all binaries in ~/.cargo/bin
run.
cargo install --path .
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 give 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>
cargo test
will test everything