hledger/examples/self-tracking/d.csv.rules
2023-06-27 18:55:08 -10:00

36 lines
423 B
Plaintext

separator |
fields date, time, description, value
comment time:%time, value:%value
account1 (events)
amount1 1 events
if %value ^[0-9]+$
amount1 %value events
if steps
amount1 %value steps
if %value no
amount1 0 events
if %value yes
amount1 1 events
if
wake
sleep
account1 (body:sleep)
if
steps
account1 (body:exercise)
if
iron
vitamin
account1 (body:supplements)
if
pizza
account1 (food)
amount1 200 cal