refactor(beancount): don't complete commodities from prices

Auto-generates price files are a common feature among beancount users;
scanning them is a lot of unnecessary work when just reading commodity
directives (and operating_currency options) should be more than enough.

Amend: 5df769e994
This commit is contained in:
Henrik Lissner
2025-05-23 17:16:06 +02:00
parent cfea950e60
commit 5026de65bb

View File

@ -197,7 +197,6 @@ will theirs, recursively)."
(+beancount-completion-table
(concat "^\\(?:" beancount-date-regexp
"\\s-+commodity\\s-+\\|"
beancount-date-regexp "\\s-+price\\s-+\\|"
"option\\s-+\"operating_currency\"\\s-+\""
"\\)\\(" beancount-currency-regexp "\\)")
1 'commodities))))))))