ledger-mode icon indicating copy to clipboard operation
ledger-mode copied to clipboard

Pass --width to hledger when ledger-report-auto-width is t

Open DamienCassou opened this issue 4 years ago • 1 comments

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 --columns arguments right after the binary name: i.e., ledger --columns 80 ...
  • hledger expects the corresponding --width argument after the register command: 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.

DamienCassou avatar Jan 02 '21 10:01 DamienCassou

Related to #319.

simonmichael avatar Apr 27 '23 16:04 simonmichael