I’m updating my finances for the first time in a while starting afresh: a whole new transaction record.
Something I’ve somehow never hit before: My workflow is to append the output of ledger-autosync to my tx record, make adjustments, categorize, commit, then sort and format using ledger print. What I’m noticing is that my commodity directive is getting stripped.
$ cat test.ledger
commodity USD
alias $
format 1,000.00
2020/06/16 Test
Expenses $56
Assets -56 USD
$ ledger -f test.ledger bal
-56 USD Assets
56 USD Expenses
--------------------
0
$ ledger -f test.ledger print
2020/06/16 Test
Expenses 56 USD
Assets
This is making is hard to intermix $ and USD, as ledger-autosync mixes the two outputs depending on the converter in use and I tend to use USD when I do things manually.
Is there a way to disable removing the commodity? I understand that ‘print’ is supposed to output the most space-efficient representation of the tx log, but it’s annoying to have to re-add the commodity directive every time I sort.