-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commands
These are key binds you can use at DAY
or WEEK
modes.
Some of them are dependent on the currently focused habit
and some are global. Those that are dependent on the
currently focused habit are marked with a [f].
-
Motions:
-
h
- move one cell to the left (aliases:<Tab>
,<Arrow-Left>
) -
j
- move one cell down (aliases:<Arrow-Down>
) -
k
- move one cell up (alases:<Arrow-Up>
) -
l
- move one cell to the right (aliases:<Shift-Tab>
,<Arrow-Right>
) -
H
- move the cursor to the left [f] -
J
- move one cursor down [f] -
K
- move one cursor up [f] -
L
- move one cursor to the right [f]
-
-
Editing
-
<Enter>
- increment the currently focused habit (aliases:n
) [f] -
<Backspace>
- decrement the currently focused habit (aliases:p
) [f]
-
-
Modes
-
v
- enterWEEK
mode for currently focused habit [f] -
V
- enterWEEK
mode for all habits -
<Esc>
- return toDAY
mode
-
-
Time Travel
-
[
- shift view port back by one month -
]
- shift view port forward by one month -
}
- return to today
-
-
Control
-
<Ctrl-c>
- quit without saving (subject to change)
-
Enter the command mode with :
. Type out a command and
press <Enter>
on the keyboard to execute it. Most commands
have 'aliases', or short forms. Command mode supports
auto-complete also.
-
Help: show command syntax
- Inputs: optional command or alias
- Usage:
help [command]
- Example:
:help aa
- Aliases:
h
-
Add: add a habit (see Habit Types)
- Inputs: name of habit, optional daily goal
- Usage:
add <habit-name> [goal]
- Example:
:add french 5
- Aliases:
a
-
Add Auto: add an auto-trackable habit
- Inputs: name of habit, optional daily goal
- Usage:
add-auto <habit-name> [goal]
- Example:
:add-auto commits 5
- Aliases:
aa
-
Delete: delete a habit
- Inputs: name of habit to delete
- Usage:
delete <habit-name>
- Example:
:delete water
- Aliases:
d
-
Month motions: stats from the past
- Inputs: None
- Usage:
month-prev
,month-next
- Example:
:month-prev
- Aliases:
mprev
,mnext
-
Tracking: For use only with
dijo --command
, works only on auto-habits- Inputs: name of habit to track up/down
- Usage:
track-up <habit-name>
,track-down <habit-name>
- Example:
:track-up commits
- Aliases:
tup
,tdown
-
Write: write progress to disk
- Inputs: None
- Usage:
write
- Example:
:write
- Aliases:
w
-
Write and quit: save and quit
- Inputs: None
- Usage:
wq
- Example:
:wq
- Aliases: None
-
Quit: save and quit
- Inputs: None
- Usage:
quit
- Example:
:quit
- Aliases:
q
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