Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tom-doerr/timew_distribution
This plugin plots the time you spent on a tag as a histogram.
https://github.com/tom-doerr/timew_distribution
timewarrior
Last synced: 4 days ago
JSON representation
This plugin plots the time you spent on a tag as a histogram.
- Host: GitHub
- URL: https://github.com/tom-doerr/timew_distribution
- Owner: tom-doerr
- License: mit
- Created: 2021-10-10T00:21:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-15T01:58:18.000Z (about 3 years ago)
- Last Synced: 2023-03-04T10:40:42.709Z (over 1 year ago)
- Topics: timewarrior
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
timew distribution 📈
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 ...`.
## Installation
Install the `termplotlib` library using
```
pip3 install termplotlib
```Then you just need to copy the file `distribution.py` into your timewarrior extension folder.
```bash
git clone [email protected]:tom-doerr/timew_distribution.git
cp timew_distribution/distribution.py ~/.timewarrior/extensions/
```## Plotting for the current tags
To plot the distribution for the currently tracked tags, you can run
```
timew dist $(timew | awk 'NR==1 {$1=""; print $0}')
```
## Plot when done tracking
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
```