hledger icon indicating copy to clipboard operation
hledger copied to clipboard

1.51.2: `hledger add` does not autocomplete when specifying a second ledger with `-f`

Open pierovera opened this issue 9 months ago • 2 comments

After upgrading hledger from v1.50.2 to 1.51.2 (linux-x86_64), autocomplete for the add command when providing a second ledger via a -f flag no longer works.

Example, as found in the docs here: https://hledger.org/1.51/hledger.html#add

Add transactions to 2024.journal, but also load 2023.journal for completions:

hledger add --file 2024.journal --file 2023.journal

This no longer autocompletes based on entries found in the 2023.journal ledger file, as it used to in v1.50.2 and prior versions. Autocompletion for the first ledger still works, whether specified explicitly with the -f flag or implicitly as the default ledger.

pierovera avatar Feb 19 '26 03:02 pierovera

I see what you mean! It seems to have broken in 1.51.2. Thanks for the report, please claim your https://hledger.org/REGRESSIONS.html#regression-finder-bounty .

simonmichael avatar Feb 19 '26 08:02 simonmichael

Thanks! I submitted invoice 287130

pierovera avatar Feb 24 '26 17:02 pierovera