branch: elpa/csv2ledger commit 5dd5e36a07ee0562c6f13b4946be2184e91a54d1 Author: Joost Kremers <joostkrem...@fastmail.fm> Commit: Joost Kremers <joostkrem...@fastmail.fm>
Add user option `c2l-title-match-fields`. --- csv2ledger.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/csv2ledger.el b/csv2ledger.el index bb98f93142..a19fa50826 100644 --- a/csv2ledger.el +++ b/csv2ledger.el @@ -130,6 +130,14 @@ the corresponding account is used to book the transaction." :type 'file :group 'csv2ledger) +(defcustom c2l-title-match-fields '(payee description) + "List of fields used for matching the target account. +Fields in this list are matched against the matchers in +`c2l-account-matchers-file'. Note that the order of the fields +in this list can be relevant, because the first field that +returns a match wins." + :type '(repeat symbol) + :group 'csv2ledger) (defun c2l-parse-date (date) "Convert DATE from \"17.10.2022\" to \"2022-10-17\"."