Ciao Stefano, On 04/01/2019 06:25, Stefano Zacchiroli wrote: >> Which functionalities do you miss the most in beancount-mode? > > - number alignment: I'm missing ledger-mode's equivalent of C-c C-q. > beancount-align-numbers is supposed to do that (well, I guess), but: > > - it doesn't work on the current transaction by default, you have to > select it as a region first, which is time consuming; and > > - is inconsistent across transactions: if you align numbers in > separate transactions your ledger will "wiggle" horizontally > > there is bean-format for that, so I can use it and remap C-c C-q to > pipe the current transaction to it as an external filter, but it's > weird that such a basic function doesn't work out of the box so I > think I'm missing something
I have now re-implemented number alignment. It is automatically triggered on newline and on tab. I also implemented beancount-align-transaction that you can bind to C-C C-q to obtain the ledger-mode functionality. By default numbers are aligned to the 52nd column, controlled by the beancount-posting-amount-alignment-column defcustom variable. If that variable is set to nil the column is computed in a similar way asin beancount-align-numbers. This is probably quite slow for huge ledger files, and I personally prefer to have the alignment independent of the length of the account names. Please test and let me know. Cheers, Dan -- 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 post to this group, send email to beancount@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/f670ecd6-ea28-b8cc-97c7-77cbf524cf87%40grinta.net. For more options, visit https://groups.google.com/d/optout.