Skip to content

Instantly share code, notes, and snippets.

@poritsky
Created December 7, 2012 17:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save poritsky/4234856 to your computer and use it in GitHub Desktop.
Save poritsky/4234856 to your computer and use it in GitHub Desktop.
Sublime Text to Day One Build System (requires Day One CLI)
{
"cmd": ["dayone new < $file"],
"path": "/usr/local/bin/",
"shell": "true"
}
@toph-allen
Copy link

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
Copy link

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