You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using habito for a while and very much appreciate it balancing simplicity and the ability to track quantities. However, I noticed that habito only displays (even in habito list -l) the last 8 days – is there any way to pull historical data to compare, say, how many minutes I exercised last week to this week? That's just one use case I can think of, and exposing previous data would open up avenues for our own processing and potential future features (e.g. charts, stats).
If it helps, other similar CLIs (e.g. the Watson time tracker, also written in Python) use a syntax like --from 2023-12-18 --to 2023-12-31 to specify date ranges.
Thank you for your work on habito!
The text was updated successfully, but these errors were encountered:
Thanks @crashmoney for the feature suggestion! This is a great idea and Watson's reportcommand is inspiring.
To start with, would a simple export to csv or json work for the use case mentioned?
For advanced aggregation/stats, we can possibly enhance the habito list command (today it is per-day for a week) to be (per-week for a month) or customizable (per-X days for N period). Something like below:
Habit
Week 51
Week 52 [current]
Writing (in words)
750
300
Wake up early (in instances)
7
3
Tabular display will be limited by the horizontal screen estate though. Eventually this can evolve to some nice charts etc. using plotext.
Yes, I think so! A csv export would be great for piping into an Excel graph, for instance. The table and potential expansion to graphs you're suggesting sound very helpful for immediate visualisation as well. If at all possible, having built-in time period flags (e.g. --month or --week) would make looking back a breeze. Thanks for the prompt reply, @codito 😄
I've been using habito for a while and very much appreciate it balancing simplicity and the ability to track quantities. However, I noticed that habito only displays (even in
habito list -l
) the last 8 days – is there any way to pull historical data to compare, say, how many minutes I exercised last week to this week? That's just one use case I can think of, and exposing previous data would open up avenues for our own processing and potential future features (e.g. charts, stats).If it helps, other similar CLIs (e.g. the Watson time tracker, also written in Python) use a syntax like
--from 2023-12-18 --to 2023-12-31
to specify date ranges.Thank you for your work on habito!
The text was updated successfully, but these errors were encountered: