||10 months ago|
|README.md||10 months ago|
|go.mod||10 months ago|
|go.sum||10 months ago|
|main.go||10 months ago|
|main_test.go||10 months ago|
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
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
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