ledger-mode
ledger-mode copied to clipboard
Pass --width to hledger when ledger-report-auto-width is t
I tried to make ledger-mode pass --width for hledger instead of --columns when ledger-report-auto-width is non-nil. I failed because of the way ledger-mode passes arguments to ledger/hledger:
- ledger-mode passes the
--columnsarguments right after the binary name: i.e.,ledger --columns 80 ... - hledger expects the corresponding
--widthargument after theregistercommand: i.e.,hledger register --width 80 ...
I don't know how to make that work without significantly rewriting this part of ledger-mode. Relevant functions include: ledger-report--compute-extra-args, ledger-report-expand-format-specifiers and ledger-report-binary-format-specifier.
Related to #319.