beancount-mode
beancount-mode copied to clipboard
beancount-align-numbers can be confused by transaction title.
If I put the following in a beancount-mode buffer, select it then run beancount-align-numbers,
2020-02-18 * "abc abc abc abc abc abc * 0.5 abc"
Equity:A 1.00 CAD
then I get this:
2020-02-18 * "abc abc abc abc abc abc * 0.5 abc"
Equity:A 1.00 CAD
Without the "* 0.5", it keeps the 1.00 CAD closer to Equity:A
, which is better. I'm not sure what exactly it is in that title that's confusing it. (I encountered something like this in a real life but changed the text for privacy.)
This is definitely something frustrates me too. I do think however that a better future goes through a new parser that groks comments and that is able to rebuild the entire file (with comments), but with corrected alignment.