This is a script that calls awk
to generate instructions you can then pluck into SankeyMATIC to get a nice-to-look-at flow diagram of your revenues and expenses tracked using hledger
.
Make sure you have awk
or gawk
installed in your system.
The script expects the output of hledger is -NO csv
, thus to use this you have to:
- Clone the repo
git clone https://github.com/victormihalache/hledger-sankeymatic.git
cd
into the directory
cd hledger-sankeymatic
- Not always, but you might have to give the script execute permissions.
chmod +x ./hledger-sankeymatic.sh
- Pipe
hledger
's output to the script
hledger incomestatement -N -O csv | ./hledger-sankeymatic.sh
On MacOS you can just copy this all:
git clone https://github.com/victormihalache/hledger-sankeymatic.git
cd hledger-sankeymatic
chmod +x ./hledger-sankeymatic.sh
hledger incomestatement -N -O csv | ./hledger-sankeymatic.sh
These are the things I want to work on when I either have time to tackle them or when I find out how to do them. If you with to help out feel free to open an issue or a PR.
- Differentiate when two accounts have the same sub-account
- Allow customizing the name of the intermediary "Budget" sub-account