Open RyanGibb opened 1 month ago
I haven't looked at the code yet but it seems like the --add-budget
option on the accounts
command might be relevant here:
$ ledger -f test.ledger accounts
Assets
Expenses:Hobbies
Expenses:Rent
$ ledger -f test.ledger accounts --add-budget
Assets
Expenses:Food
Expenses:Hobbies
Expenses:Rent
This doesn't include accounts specified with the accounts
directive, but does include budgeted accounts.
Ah-ha! Looks like ledger_accounts_cmd = 'ledger accounts --add-budget
fixes this for accounts included in a budget at least`. Perhaps this should be the default?
For example, in the following file:
I would expect the
Expenses:Food
account name to be autocompleted, but it's not included in the suggestions: