Backfilling a Missed Day
Every command that is tied to a day accepts --date MM-DD-YYYY, so a day you
missed can be reconstructed later. WORK.md is always the scratch pad the daily
log is built from; the date flags only decide which day is fetched and which file
the log is written to.
Backfilling yesterday
Section titled “Backfilling yesterday”Yesterday is the day people miss most, so it has its own flag. --yesterday
picks the same date --date would, without you having to work it out:
swelog reset# write yesterday's notes into WORK.mdswelog fetch github --yesterdayswelog fetch google-calendar --yesterdayswelog fetch linear --yesterdayswelog log --yesterdayFor any other day, use --date as below.
Backfill flags
Section titled “Backfill flags”| Command | Backfill flag | Shortcut |
|---|---|---|
swelog log |
--date MM-DD-YYYY |
--yesterday |
swelog fetch github |
--date MM-DD-YYYY |
--yesterday |
swelog fetch google-calendar |
--date MM-DD-YYYY |
--yesterday |
swelog fetch linear |
--date MM-DD-YYYY |
--yesterday |
swelog summarize day |
--date MM-DD-YYYY |
--yesterday |
swelog summarize week |
--week-of MM-DD-YYYY |
--last-week |
--last-week goes back one week from the Monday swelog summarize week would
pick on its own, which is always the Monday of the week containing today. Run it
on a Monday and you get the week that just ended, which is what you want when you
left on Friday without filing the week.