Closed albreche closed 6 months ago
I think you need to use account NAME
declarations in the accounts file, not just a newline-separated list of account names. See the docstring of ledger-accounts-file
:
The path to an optional file in which all accounts are used or declared.
This file will then be used as a source for account name completions.
"declared" means the account
directive as documented here.
Yep, I just updated the docstring to mention the docstring, thanks @bcc32.
I think the feature is working as intended and no further change is required, so I'm closing the issue.
Hi there,
latest ledger-mode (setup with straight) and emacs-29.2 .
When ledger-accounts-file variable is set with an account files, ledger-complete-at-point returns an empty list. Under the hood as i understood, the bug come from ledger--account-list which does note return the list built from reading ledger-account-files and appending it to ledger-accounts-list-in-buffer. It lacks a call to buffer-string :
btw, there's no verification on the content on the file in this method.