codito / habito

Simple commandline habits tracker.
https://apps.codito.in/habito/
MIT License
78 stars 7 forks source link

Different types of habits #9

Open Ben-Baert opened 8 years ago

Ben-Baert commented 8 years ago

Currently, the only type of habit is a quantified one that has a certain target that is met if it is either reached or surpassed. There are, however, other possibilities:

This is definitely a non-exhaustive list, and only meant to start a discussion.

codito commented 8 years ago

Good discussion :)

Here's one more:

On Mon, May 23, 2016 at 6:56 AM, Ben Baert notifications@github.com wrote:

Currently, the only type of habit is a quantified one that has a certain target that is met if it is either reached or surpassed. There are, however, other possibilities:

  • a target where you want to be as low as possible. For instance, if my goal is to wake up at 6 a.m., waking up at 5.30 a.m. is okay, but waking up at 6.30 a.m. is not.
  • some goals may just require a boolean value, that is, either you did them or you didn't. (Silly) examples include: take the bike rather than the car to work, take off shoes inside,... You can't really quantify these; either you took the bike today or you didn't; either you took off your shoes or you didn't.

This is definitely a non-exhaustive list, and only meant to start a discussion.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/codito/habito/issues/9

Ben-Baert commented 8 years ago

Regarding your last point, I think we can generalise it to having more custom frequencies. Examples:

You get the idea

For the habits, we could have the following model:

Not entirely related, but also useful would be a config file with date and time format (12h vs. 24h, MM/DD vs DD/MM, etc) and begin and end time of a day (e.g. if you work until after midnight, habits are added to the previous day by default).