Home

Awesome

If you like this plugin, you can buy me a ☕ here

Logseq Habit Tracker

image image

Record your habits under #habit block in daily journal, then easily track your habits.

Click on gear (⚙️) icon to edit settings.

For Frequency / Period, period is one of d (day), w (week), m (month), y (year).

By checking At Most you can model bad habits to avoid.

Customization

Instead of nesting under #habit tag you can also use it in every line and change the format to suit your needs.

Example 1

14:10 pushups #habit
14:11 #habit drink water

Habit Pattern: \d{2}:\d{2} (?<habit>.*)

Example 1a

With optional time and notes. Thanks @someinternetguy

pushups #habit
pushups #habit did 10 more than usual today, go me!
14:17 pushups #habit
14:17 pushups #habit yay, I remembered to work out today!

Habit pattern: ((\d{2}:\d{2})|())(?<habit>.*#habit(\s|\b))

Example 2

Ignore habits with unfinished marker. See #10

- #habit
  - qwer - 1,2
  - qwe
  - qwert - X 

Ignore pattern: .*- X will ignore habit qwert

Running the Plugin

Attribution