From cd101882f529bec38fe6cd2db2afa59443a782aa Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 3 Oct 2024 23:19:18 -1000 Subject: [PATCH] ;examples: hledger2beancount.conf --- examples/hledger2beancount.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 examples/hledger2beancount.conf diff --git a/examples/hledger2beancount.conf b/examples/hledger2beancount.conf new file mode 100755 index 000000000..574dafda5 --- /dev/null +++ b/examples/hledger2beancount.conf @@ -0,0 +1,18 @@ +# This config file works with hledger 1.40+ and helps export to Beancount format. +# You don't need to use a config file for this, but it might be convenient. +# Usage: hledger --conf hledger2beancount.conf print [-f FILE] >FILE.beancount + +# Whatever aliases you need, if any, to provide the english top-level account names required by Beancount. +--alias /^([^:]+):([^:]+)/=\2:\1 +--alias other-assets=assets +--alias revenues=income + +[print] +# Print beancount output by default. +-O beancount + +# Exclude transactions containing unbalanced/virtual postings. +# You might need to do more if you have mixed balanced/unbalanced transactions. +--real + +# More tips: https://hledger.org/dev/hledger.html#beancount-output