This is fantastic, thanks for your hard work on it!! On Fri, Mar 31, 2023, 15:25 Archimedes Smith <seiar...@gmail.com> wrote:
> Hi beancounters, > > I've written yet another formatter for beancount, autobean-format > <https://github.com/SEIAROTg/autobean-format>, powered by my earlier > project autobean-refactor <https://github.com/SEIAROTg/autobean-refactor>, > a library for parsing and programmatically manipulating beancount files. > > Highlights: > > - Deep cleanup > - Unlike bean-format which is regex-based, autobean-format is based > on a proper parser, allowing it to format every corner of your ledger, > including *arithmetic expressions*. > - Recursive formatting > - Optionally formats all included files. > - Honors glob include. > - Sort entries > - Optionally sorts dated entries. > - Honors "time" meta (HH:MM, HH:MM:SS, epoch seconds, epoch ms, > epoch us). > - Honors pushtag / pushmeta. > - Preserves existing comments, structure, and ordering whenever > possible. > - Preview-able > - Optionally prints diff. > - Thousands separators. > - Optionally add, remove, or keep (default) thousands separators. > - Typed and extensible > - For example, the code for supporting thousands separator is as > simple as this > > <https://github.com/SEIAROTg/autobean-format/blob/main/autobean_format/formatters/number.py> > . > > Please check out autobean-format > <https://github.com/SEIAROTg/autobean-format> if you are interested. Bug > reports / suggestions / contributions are appreciated. > > Regards, > SEIAROTg > > -- > 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/962be409-86aa-4fed-859e-2ff983fe0d95n%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/962be409-86aa-4fed-859e-2ff983fe0d95n%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/CACGEkZtW0%3DLHVeS%3Dkt2A9RQ%2BOq%3DU3nJLS7u0UD%2Bh6W7S%2ByopKA%40mail.gmail.com.