ledger / vim-ledger

Vim plugin for Ledger
GNU General Public License v2.0
372 stars 55 forks source link

Add features to facilitate multi-currency alignment #135

Closed alerque closed 2 years ago

alerque commented 2 years ago

Closes #79. The feature supplied is subtly different than the one requested since we don't really differentiate the different parts of a posting (unit, cost, total, etc.) but the most common cases are going to be either the first or last instance of thousand separators so this should provide more most use cases. Not covered would be multi-currency with conflicting thousands place and decimal separators where alignment of the first decimal separator is desired. If anybody wants that mode I would be willing to facilitate a PR, but I don't need it myself and so didn't put out the effort to cover it here.

Closes #106. That issue was mostly solved already by #107 and could probably have been closed. This does not directly address alignment on commodity, but it does provide another alternative that would make it possible to align even multiple commodities given that you could specify your commodity symbol(s) as decimal separators.