This plugin plots the time you spent on a tag as a histogram. The location of the last item you tracked is marked with a red square in the plot.
Instead of typing timew distribution ...
you can also type timew dist ...
or timew dis ...
.
Install the termplotlib
library using
pip3 install termplotlib
Then you just need to copy the file distribution.py
into your timewarrior extension folder.
git clone [email protected]:tom-doerr/timew_distribution.git
cp timew_distribution/distribution.py ~/.timewarrior/extensions/
To plot the distribution for the currently tracked tags, you can run
timew dist $(timew | awk 'NR==1 {$1=""; print $0}')
Plot every time the timewarrior data is modified:
while inotifywait -e modify ~/.timewarrior/data; do
timew dist $(timew | awk 'NR==1 {$1=""; print $0}')
done