May not be what you’re looking for, but I find autobean-format <https://github.com/SEIAROTg/autobean-format> to excel at at this. It’s now a part of my importer scripts, and is also a part of my editor. Here’s everything except precision: bean-extract <your_args> | autobean-format - --indent " " --thousands-separator=add --spaces-in-braces --currency-column 80 --cost-column 85
And here’s how I use it in vim: au Filetype beancount let &formatprg="autobean-format - --sort --indent ' ' --thousands-separator=add --spaces-in-braces --currency-column 80 --cost-column 85" On Sunday, September 17, 2023 at 8:02:18 AM UTC-7 Frederick Zhu wrote: Hi, I’d like to format my document when extracted. I know bean-format can make alignments for all entries, but first it is another round of iteration, and second, more importantly, it does not attach delimiter to numbers. For my own usage, I specifically want my currency “USD” ending at column 80, with 2 decimal precision, and the comma delimiter. Thanks. -- 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/a0bf50c7-a5a7-42b1-ab90-213bf85ff770n%40googlegroups.com.
