autobean-format will do what you want: https://github.com/SEIAROTg/autobean-format
— Brian Lalor (he/him) bla...@bravo5.org > On Oct 24, 2023, at 4:47 AM, berkes <goo...@berk.es> wrote: > > Good day. > > I'm looking for a way to sort the transactions and balances in my file by > date. > > My workflow is that I run some importers, walk through the entries and > fix/confirm them. Each importer has its output nicely sorted, but I want to > merge all the entries. So that all entries appear by date in the file. I now > do this manually and that sucks. > > What are my options? > > I've tried bean-report -f beancount but that changes far more than just the > sort ordering. > I use vim, and that can sort by paragraphs[1],folds[3] or regexes-blocks[3]. > All work, but are fragile, require convoluted actions or plugins. > > Is there some alternative bean-format that would do this? Did I miss an > obvious tool shipped in core? Is there an addon? > > I've searched the archives, but surprisingly, did not see an answer. Might be > that I did not see it through all the noise (sort|sorting gives many > false-positives). So sorry if this has been asked before. > > Kind regards, > Happy sorting, > Bèr > > [1] https://stackoverflow.com/a/24099468/73673 > [2] https://gist.github.com/inkarkat/4145501 > [3] https://gist.github.com/PeterRincker/582ea9be24a69e6dd8e237eb877b8978 > > -- > 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 beancount+unsubscr...@googlegroups.com > <mailto:beancount+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/425e58b4-504c-4b34-a8ab-bc12e66aab65n%40googlegroups.com > > <https://groups.google.com/d/msgid/beancount/425e58b4-504c-4b34-a8ab-bc12e66aab65n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 beancount+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/5BB8A233-01C4-403A-B529-D54B4C0DAF20%40bravo5.org.