Quickly send items to your Omnifocus inbox
The Omnifocus CLI allows you to quickly send a todo to your Omnifocus
inbox. It makes use of Omnifocus's mail drop feature. This feature gives you an email address that you can send emails to. When an email is sent to this address, it uses that email to create a todo in your Omnifocus inbox. This CLI
allows you to quickly send that email using an of
command.
Before you can start sending todos into your inbox, you'll have to setup a few pieces of configuration.
// Sets your Omnifocus mail drop email
of config --maildrop fake-mailbox@omnisync.com
// Sets your gmail username
of config --username email@gmail.com
// Sets your gmail password
of config --password secretpassword
The gmail password should be a app-specific password, otherwise Gmail will send back an error. See more here: https://support.google.com/accounts/answer/185833
Once configured, you can add todos into your inbox.
$ of add "Go to the grocery store" --note "Make sure to get milk" --attachment "~/report.pdf"
Successfully sent your todo!
$ go get -u github.com/eugenetriguba/of