todomd
I’m writing todomd: terminal task manager for quick capturing of tasks into markdown files. One of main features is preservation of file formatting: it (hopefully) should keep whitespaces, blank lines, line endings, indentations, even when moving tasks between sections. My handmade markdown parser became so ridiculous that I seriously considered renaming the project to ELMM: Empty Line Management Machine. After 3 days of constant testing/fixing/refactoring of main parser, I want to just lie and cry.
But I just did a test run of todomd archive on my 6 year old, >1.5k lines of
horrible, scribble-quality quicknotes.md file and in 80 ms todomd made a
beautiful new archive section and didn’t break a single line. I almost cried,
but this time these were the tears of joy.