jonmorehouse / datebook

A small CLI tool for keeping track of your day
7 stars 0 forks source link

header parsing / indexing #6

Open jonmorehouse opened 8 years ago

jonmorehouse commented 8 years ago

It seems to me like it'd be a lot cleaner if we actually parsed the markdown of each entry.

Right now we're just naively trying to "regex out" what we need and that doesn't seem to work. I think we were to treat each H2 block as a first class type, we could more easily do things like "weekly" and "longterm" entries.

Another feature which I think would be pretty awesome is the ability to "index" based upon headers. This would allow for less structured tracking of things like recipes or finances. I'm already doing something like this anyways, so it'd be only natural to expand that out into "index" files where we group all the similar headers together.

jonmorehouse commented 8 years ago

Closing in favor of #7 landing