4 ms·
I've kept a digital journal for the last five years (I have a chronic illness, so I look over my logs whenever I get sick to try and identify the trigger). I t
by vitaminbandit 10y ago
I've kept a digital journal for the last five years (I have a chronic illness, so I look over my logs whenever I get sick to try and identify the trigger).
I tried a bunch of different programs, but I ultimately ended up writing a python script that creates a new .txt file with the datetime as the name("2017-01-20-22-02-50.txt"), launches vim, appends the day, date, and time to the top of the file ("Friday, January 20, 2017, 22:02 PM"), and then I just write my thoughts down inside vim.
I'm fairly disciplined about writing an entry everyday, but if I weren't, I'd just have it run as a daily cron job.
Having each entry as its own file is nice since you can just grep a term and find all the dates + times that the term was mentioned.
It's been incredibly useful - just this week I realized that my daily headache started when I began taking a new supplement, so I cut it out and sure enough, no more headaches.