-
-
Notifications
You must be signed in to change notification settings - Fork 65
Modes
Any habit in the interactive program can exist in one of two modes:
-
DAY
: the default mode -
WEEK
: can be toggled on an off withv
DAY
mode is the default mode for every habit. It shows you
every day of the current month. In this mode, counting-type
habits display their counts for each day of the month.
Bit-type habits (yes/no) display their bits in the form of a
·
(U+00B7 Middle Dot). Days whose goals have been reached
are displayed in cyan and those that haven't been reached
are displayed in magenta. Days that haven't been tracked are
displayed in "light black".
WEEK
mode can be triggered for a single habit via v
, and
for every habit via V
. WEEK
mode will show you a summary
of your progress for every week of the month. The current
week's percentage is indicated in white, other weeks are
colored in "light black". The progress for a given week is
calculated as follows:
- if the goal is reached for a day of the week, the day contributes exactly 14.28% (100/7) towards that week's progress.
- if the goal is not reached for a day of the week, the day
contributes
progress / goal * 100
towards that week's progress.
That means, to achieve a 100% for a week, you have to reach your goal every single day of the week.
The command mode is different from the other modes in that
it is a "control" mode rather than an "observe" mode. One
can enter the command mode by hitting :
on the keyboard.
You will notice a :
pop up at the bottom of the screen.
You may now begin typing a command, once you are done, press
Enter
on the keyboard to execute it.
The command mode may also be accessed without running the
program interactively, by starting dijo
with the -c
flag
and passing a string to it as a command:
$ dijo -c "track-up commits"
You can hit <Tab>
on the keyboard inside Command mode to
trigger completions. For example:
:d<Tab>
# completes to
:delete
:delete fr<Tab>
# completes to
:delete french