On Fri, Dec 20, 2019 at 9:30 AM nug get <[email protected]> wrote: > > thanks, a python script would probably do it in the end. > is there a beancount function that would return all objects in my ledger file > as list or something? Writing that myself would be beyond my current > capabilities, or of irresponsible effort timewise :)
That would not work. Beancount transforms your input transactions to something slightly different (there's more going that it might appear, unfortunately) and so while round-trips betwee text->python->text are possible (and tested out), the text you'd get is not quite like the input you provided. You want to keep your terse inputs. Operate on the input text itself. > On Friday, 20 December 2019 13:57:54 UTC+1, Martin Blais wrote: >> >> You will want to write a little python script. >> I would operate on source code, not on the data structures, so you keep the >> original formatting and metadata and comments >> >> On Fri, Dec 20, 2019, 06:59 nug get <[email protected]> wrote: >>> >>> Is there a feature that would allow me to sort the transactions in my >>> files, for example by date, or specific accounts? >>> Thanks! >>> >>> Background: >>> I migrated my 3 years of Gnucash records to beancount. It's all one long >>> list of transactions sorted by date. I'd like to separate my cash and bank >>> account transactions into two different files. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Beancount" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/beancount/4b6c37cd-dab7-4683-80fc-e6affac7e1ca%40googlegroups.com. > > -- > You received this message because you are subscribed to the Google Groups > "Beancount" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/a728b410-6f4d-4623-b7fb-e40d03eb0cf8%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhNHRquk96TH970P5iDWwz-5kZPOL_1ZaYS6C7os4fvu8Q%40mail.gmail.com.
