Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Sublime Text to Day One Build System (requires Day One CLI)
{
"cmd": ["dayone new < $file"],
"path": "/usr/local/bin/",
"shell": "true"
}

Hey, I forked this and made a small edit. In its current form, Sublime Text throws an error if the directory in which the .md file you're editing contains a space. Adding single quotes around $file fixes this.

And it's very useful.

iFelixG commented Jul 7, 2017

Para Day One 2.0 o superiores usar este:
For Day One 2.0 or later use this:

{
  "cmd": ["dayone2 new < '$file'"],
  "path": "/usr/local/bin/",
  "shell": "true"
 }

I will make again the manual for use create a new entry in Day One from Sublime Text 3
Voy a hacer un manual para crear una entrada en Day One from Sublime Text 3

Thx to poritsky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment