There are a lot of programs to migrate a text file exported from OhLife to Day One, but none of them did exactly what I want. For example, most of them would insert two line breaks because OhLife uses \n\r
when exporting, and not just \n
. (While this didn't make a difference in Day One's Markdown parsing, it still bothered me.)
- Export your OhLife entries.
- Install Day One.
- Install the Day One CLI.
- Run this program!
cd OhLife2DayOne
javac *.java
java OhLife2DayOneTester /path/to/ohlife_20131031.txt "10:00:00 PM"
Note: OhLife doesn't save the time of entries, but Day One does. Use the second argument to specify the time to set in Day One when importing entries.
- If you already have entries, go to File > Back Up Journal before using this.
- If you have a lot of entries, quit Day One to make things go faster.
- Use at your own risk.
@kevinchen on Twitter