Skip to content

Commands

Akshay edited this page Jul 19, 2020 · 7 revisions

Keybinds

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>)
  • Editing

    • d - delete currently focused habit (subject to change)
    • <Enter> - increment the currently focused habit (aliases: n) [f]
    • <Backspace> - decrement the currently focused habit (aliases: p) [f]
  • Modes

    • v - enter WEEK mode for currently focused habit [f]
    • V - enter WEEK mode for all habits
    • <Esc> - return to DAY mode
  • Time Travel

    • [ - shift view port back by one month
    • ] - shift view port forward by one month
    • } - return to present
  • Control

    • q - save and quit
    • <Ctrl-c> - quit without saving (subject to change)

Commandline

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.

Coming soon: error reporting on invalid commands

  • Add: add a habit

    • 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
  • Quit: quit

    • Inputs: None
    • Usage: quit
    • Example: :quit
    • Aliases: q