Command-line account aliases now also affect transactions read from these formats (not just journal format). lib: journalApplyAliases, transactionApplyAliases, postingApplyAliases helpers have been added.
38 lines
544 B
Plaintext
38 lines
544 B
Plaintext
# Note since 1.17 we need to specify stdin's format explicitly.
|
|
|
|
# 1. basic timedot entry
|
|
<
|
|
# comment
|
|
|
|
; another comment
|
|
2020-01-01
|
|
a:aa 1
|
|
b:bb 2
|
|
|
|
$ hledger -ftimedot:- print
|
|
2020-01-01 *
|
|
(a:aa) 1.00
|
|
|
|
2020-01-01 *
|
|
(b:bb) 2.00
|
|
|
|
>=0
|
|
|
|
# 2. Org mode headline prefixes are ignored.
|
|
<
|
|
* 2020-01-01
|
|
** a:aa 1
|
|
|
|
$ hledger -ftimedot:- print
|
|
2020-01-01 *
|
|
(a:aa) 1.00
|
|
|
|
>=0
|
|
|
|
# 3. Command-line account aliases are applied.
|
|
$ hledger -ftimedot:- print --alias a=b
|
|
2020-01-01 *
|
|
(b:aa) 1.00
|
|
|
|
>=0
|