quick CLI for logging to DayOne with date natural language parsing
Find a file
Renovate Bot 2ef0edb1dd
All checks were successful
Tests / tests (push) Successful in 1m10s
chore(deps): update actions/setup-go action to v6 (#8)
Reviewed-on: #8
Co-authored-by: Renovate Bot <renovate@onlyhavecans.works>
Co-committed-by: Renovate Bot <renovate@onlyhavecans.works>
2025-09-04 15:26:00 -07:00
.forgejo/workflows chore(deps): update actions/setup-go action to v6 (#8) 2025-09-04 15:26:00 -07:00
go.mod fix(deps): update module github.com/olebedev/when to v1.1.0 (#4) 2025-09-03 14:21:17 -07:00
go.sum fix(deps): update module github.com/olebedev/when to v1.1.0 (#4) 2025-09-03 14:21:17 -07:00
main.go Fix name and warning 2020-11-25 10:42:10 -08:00
main_test.go Initial Version 2020-11-24 21:25:30 -08:00
README.md Rename to the name I prefer 2020-11-25 10:40:04 -08:00
renovate.json chore: Configure Renovate (#1) 2025-09-03 13:19:21 -07:00

lg (Log to DayOne)

This is a port of Brett Terpstra's ruby script to golang.

I wanted to have a version where I did not necessitate gem handling. This also moves to the newer DayOne CLI.

This script works with the Day One command line utility; It parses an input string for a [date string] at the beginning to parse natural language dates

Install

Requires golang to build!

brew install golang
go get onlyhavecans.works/amy/lg

If you would like to start posting pre-built binaries tweet me at @onlyhavecans

Example usage:

lg "This is a entry."
lg "[yesterday 3pm] Something I did yesterday at 3:00PM"
lg "[1 hour ago] something I did an hour ago"

I primarily use this as an alfred extension using the following applescript. You may need to adjust your path to the script

on alfred_script(q)
    do shell script "~/go/bin/lg \"" & q & "\""
end alfred_script