quick cli for logging to day one with date natural language parsing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Amelia A e9bcd73421
Fix name and warning
2 months ago
README.md Rename to the name I prefer 2 months ago
go.mod Rename to the name I prefer 2 months ago
go.sum Initial Version 2 months ago
main.go Fix name and warning 2 months ago
main_test.go Initial Version 2 months ago

README.md

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