#taskwarrior #todo #hook #executable #collection

app taskwarrior-hooks-rust

A collection of executables to be used as taskwarrior hooks

1 unstable release

0.1.0 Dec 29, 2019

#7 in #taskwarrior

GPL-3.0 license

18KB
160 lines

How to install

to install all binaries in ~/.cargo/bin run.

cargo install --path .

Executables

auto-tagger

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"]
  }
]

How to use

on-add

To use for on-add

#!/usr/bin/env bash
~/.cargo/bin/auto-tagger <path/to/tag-map.json>

on-modify

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>

Tests

cargo test

will test everything

Dependencies

~0.6–1.4MB
~32K SLoC