Hacker News new | ask | show | jobs
by zrail 3884 days ago
Ledger sort of has that built in, actually, but it only works if you have a similar transaction in the past. For example, I can say this on the command line:

  $ ledger xact 11/5 mcd dinner 10.55
and ledger spits out

  2015/11/05 McDonald's
      Expenses:Food:Dinner          $10.55
      Liabilities:Credit Card
This falls down when you're traveling to new places, because in the command `mcd` is just a regex that matches on the payee.
1 comments

Interesting, thanks. I had in mind a system that would basically regex match a string and add an entry to the ledger (similar, but it would probably be a bit more flexible than the built in system).

Separately, I saw you have also worked on a similar system for food logging. That got me thinking...what else could you track with a plain text file in this format? Fitness/workout info came to mind, as well as rewards points, sleep tracking, any others? Would be cool to have a single system to track all these things, which could be linked up to APIs like Fitbit, myfitnesspal, etc.

I don't use that system anymore, actually. I switched to LoseIt, primarily because of the extensive food database. Most of the time I can just scan a barcode or search for a particular thing and it's in there.

Convenience trumps plain text in this case because, unlike with finance, there's no bank statement to refer back to if you fall off the data entry wagon for a day or two. That data is instead just completely gone.