Additional though: I have also thought about adding a similar mode which expands the periodic transactions (thus removing the permanent dependency on generated transactions).
On 05/12/2016, Manuel Amador (Rudd-O) <rud...@rudd-o.com> wrote: > On 10/12/2016 06:49 PM, Ryan Nowakowski wrote: >> On Sat, Oct 08, 2016 at 05:56:27PM +0000, Manuel Amador (Rudd-O) wrote: >>> On 09/05/2016 06:53 PM, Ryan Nowakowski wrote: >>>> Hey Ledger Folks, >>>> >>>> I'm building a tool for automatically categorizing transactions based >>>> on regex matching certain journal fields. It's a standard UNIX filter >>>> that takes a journal file from stdin, modifies it and sends it to >>>> stdout. >>>> I want to maintain the exact format of the journal including comments. >>>> I haven't figured out a way to do this with the ledger parser python >>>> lib >>>> so I wrote my own[1]. Does anyone else have a better way to do this? >>>> I'd rather not maintain my own parser. >>>> >>>> Thanks! >>>> >>>> Ryan >>>> >>>> [1] https://gist.github.com/tubaman/0e80cec388d3d5d61e3f300e2477a9ae >>>> >>> >>> I have a robust parser for ledger files in >>> https://github.com/Rudd-O/ledgerhelpers , but it is missing some >>> features. It is meant to preserve the exact format and comments in the >>> file, so nothing gets destroyed in the parsing process. >>> >>> I will welcome pull requests that add those features. >> What do you think about trying to add a mode the C++ ledger parser to >> do this? I think that'a better long-term option because: >> >> 1. It's the real parser so it handles all the little edge cases >> 2. We don't have to maintain a separate parser >> >> - Ryan >> > > I don't know C++, but if someone did add such a mode to Ledger, I'd > probably use it myself. > > > -- > Rudd-O > http://rudd-o.com/ > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Ledger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ledger-cli+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.