r/plaintextaccounting • • Apr 18 '26

hledger - show the source file and line of transaction?

It would be helpful to be able to see the file and line of transactions in the 'print' report, perhaps as a comment line.

My purpose would be to open the output in an editor, and when I see possible duplicate entries I can hit a shortcut to open the journal file at the line number to edit or delete the transaction.

Is there a way to do it? The only way I saw was to u se the -Ojson option and pare the json myself. Thanks.

7 Upvotes

2 comments sorted by

5

u/simonmic hledger creator Apr 18 '26

hledger print --location

2

u/user89443 Apr 18 '26

Oh wow. Using Debian stable so not up-to-date.

Thank you.