Skip to content

jupj/hledger-fmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hledger-fmt

hledger-fmt formats hledger journals. It keeps your journal ordered by date, and nicely formatted, using hledger print to format your transactions.

Getting started

Prepare the hledger journal file:

  1. Add a separator line to the journal file: ; :::Transactions:::
  2. Organize the journal file:
    • anything that is not a transaction above the separator line - this part will not be modified by hledger-fmt
    • all transactions below the separator line - this part will be formatted by hledger-fmt

Format your journal:

$ hledger-fmt                    # format $LEDGER_FILE
$ hledger-fmt -f 2021.journal    # format 2021.journal

Install as add-on

Install hledger-fmt in your PATH. For example go install if you have ~/go/bin in your PATH.

Now you can use it as an hledger add-on like so:

$ hledger fmt

About

hledger add-on for formatting transactions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages