No Description

Ingolf Wagner 20bf8dfdbb update default.nix to release version 8 months ago
src e265caf8ca scheduled-recur: fix utc and naive time conversion problem 8 months ago
test-data 3b5fec9c91 rename to auto-tagger and cleanup of files 9 months ago
.gitignore 74b5b2e28a init 9 months ago
Cargo.lock 4275d39f3d release: 0.2.2 8 months ago
Cargo.toml 4275d39f3d release: 0.2.2 8 months ago
LICENSE a4610dbb38 release 0.1.0 9 months ago
README.md af86b716ed update readme 9 months ago
default.nix 20bf8dfdbb update default.nix to release version 8 months ago
shell.nix 3fa07018c2 add default.nix for nixos 9 months ago

README.md

How to install

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

cargo install --path .

Executables

scheduled-recur

Reschedule tasks, instead of completing them. Task will be rescheduled today + (given duration).

setup

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

use

Duration are set using ISO8601. For example : scheduled_recur:P1D or scheduled_recur:P1DT8H

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?).

setup

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

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>