Configuration
beancount2ledger can use a configuration file using YAML syntax.
It will search for a configuration file in the following order:
- The file specified via the
--configoption .beancount2ledger.yamlin the current working directorybeancount2ledger/config.yamlin$XDG_CONFIG_HOME(that is, usually$HOME/.config/beancount2ledger/config.yaml)
Config options
General
- indent
-
The number of spaces to indent postings (default: 2).
Information from metadata
- auxdate
-
A metadata key that specifies metadata that should become the auxiliary date of a transaction or posting (
date2in hledger). - postdate
- A metadata key that specifies metadata that should become the date of a posting (
datein hledger). - code
- A metadata key that specifies metadata that should become the code of a transaction.
Information to metadata
- payee-meta
-
A metadata key that specifies where to store the payee of a transaction, instead of using the
payee | narrationsyntax (which is the default).
Mappings
- account_map
- A mapping of beancount account names to ledger account names.
- currency_map
- A mapping of beancount currency names to ledger currency names.