]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/blob - .zsh_functions_taskwarrior
Changed aliases for {task,time}warrior to avoid conflict
[user/henk/vcsh/zsh.git] / .zsh_functions_taskwarrior
1 in () {
2     task add +in $@
3 }
4
5 # taskwarrior
6 tickle () {
7     deadline=$1
8     shift
9     in +tickle wait:$deadline $@
10 }
11
12 think () {
13     tickle +1d $@
14 }
15
16 rnd () {
17     task add +rnd +in $@
18 }
19
20 webpage_title (){
21     wget -qO- "$*" | hxselect -s '\n' -c  'title' 2>/dev/null
22 }
23
24 read_and_review (){
25     local link="$1"
26     local title=$(webpage_title $link)
27     echo $title
28     local descr="\"Read and review: $title\""
29     local id=$(task add +in +read "$descr" | sed -n 's/Created task \(.*\)./\1/p')
30     task "$id" annotate "$link"
31 }
32
33 rnr () {
34     read_and_review $@
35 }
36
37 watch_and_review (){
38     task add +in +watch $@
39 }
40
41 wnr () {
42     watch_and_review $@
43 }