ledger / vim-ledger

Vim plugin for Ledger
GNU General Public License v2.0
370 stars 56 forks source link

feat: add function: LedgerAlignBuffer #114

Closed sudoforge closed 3 years ago

sudoforge commented 3 years ago

closes #113

sudoforge commented 3 years ago

Initially, I changed LedgerAlign to default to a range of %, or "all lines". In thinking about the impact of this, it's possible that running the ledger#align_commodity function in this way causes an undesirable performance hit on large files. Because it's likely that users call LedgerAlign in some automated way, I decided to add a new function and command entirely.

I break my entries up by year and month, and none of my files ever get very large. I'd love to have users who have large files run this and let me know if there are performance impacts.

alerque commented 3 years ago

Thanks for taking the time to contribute and working through change requests. This looks good to me now.