This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

Go 99.0%
Python 0.8%
Makefile 0.2%
Shell 0.1%
122 1 0

Clone this repository

https://tangled.org/karnwong.me/habit-tracker https://tangled.org/did:plc:a3l7ndrphdy4bpgvo3w3356j
git@tangled.org:karnwong.me/habit-tracker git@tangled.org:did:plc:a3l7ndrphdy4bpgvo3w3356j

For self-hosted knots, clone URLs may differ based on your setup.



README.md

habit-tracker#

CLI app to track habits. I found existing solutions but it's web-based. Being used to command-line interface, the web interface doesn't quite click with me. It's not them, it's me.

Also I have pretty weird attention span. I tend to do the same thing for a week straight, then never pick it up again until a few months or half a year later. I want to see my own pattern, hence why there are no stats features.

Usage#

Display habits activity in tui

Usage:
  habit-tracker [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  create      Create a habit.
  do          Track a habit
  help        Help about any command
  show        Show habit stats for the last 3 months
  show-6m     Show habit stats for the last 6 months
  show-year   Show habit stats for current year
  today       Show habit stats for today
  undo        Untrack a habit
  week        Show habit stats for week

Flags:
  -h, --help     help for habit-tracker
  -t, --toggle   Help message for toggle

Use "habit-tracker [command] --help" for more information about a command.
# create habit
habit-tracker create Foo

# track habit
habit-tracker do Foo  # today
habit-tracker do Foo 2025-01-01 # specify date

# untrack habit for today
habit-tracker undo Foo

# show habit activities
habit-tracker show Foo  # also checkout `show-6m`, `show-year

# show today's habits
habit-tracker today

# show past week's habits
habit-tracker week

habit-tracker show $HABIT

show

habit-tracker week

week