1

I have been using Day One for a while but I dislike it being Mac only. I have a capture template in orgmode that creates new journal entries in a tree.

Example:

*2015

**2015-11 November.

***2015-11-2 Monday

**** My journal entry.

Day One can export to markdown. The format is like this:

Date: June 2, 2010 at 11:11 PM Location: My location, City, Country Weather: 45° Clear

Text entry.

What would be the best way to I import this into my orgmode journal?

0

You can do this quickly with regex search & replace, M-C %. Replace ^Date: with *** to create your headlines, and repeat for other elements as necessary. Since you'll only likely do this once, a few rounds of search & replace is probably going to be faster than writing code.

  • But this wont create the datetree right? – Jason Mirk Nov 2 '15 at 18:02
  • No, you would have to insert the Year and Month headings yourself. Since there is no indicator in the Day One text you could convert directly, your choices are either to do this by hand, or write up a custom search & replace function in elisp. – Tyler Nov 2 '15 at 18:20
0

I ended up doing this because dayone exports with tabs:

\t\Date:\t

Replace with:

***

Then creating years and moving stuff manually. Titles don't have the same exact format that orgmode journal creates but who cares.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.