wish: Automatic assignments based on regular expressions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HomeBank |
Fix Released
|
Wishlist
|
Maxime DOYEN |
Bug Description
There should be option to match memo or payee with RE in automatic assignment definition, not only simple substring match.
1. This will allow consolidate multiple auto assignment definitions into one, making managing of them simpler.
2. It will allow match very short strings - using \b (empty string at the edge of the word) it's possible to find whole word and not part of different longer name.
3. Context matching (some name followed by space and 4 digits, names with optional part in the middle etc.) will be possible to.
It can be done using current definition mechanism, some RE ready to use library, and simple conditional switch in the existing matching code.
As matching substring is used as definition name now, additional attribute with definition display name/description should be added, because RE are not user friendly to display in GUI list, sorting etc. Case insensitive match option should be avaiable with RE too.
See attached new GUI proposal for Manage Assignments window.
Related branches
- Maxime DOYEN: Pending requested
-
Diff: 500 lines (+184/-28)8 files modifiedsrc/hb-assign.c (+1/-0)
src/hb-assign.h (+5/-0)
src/hb-hbfile.c (+2/-0)
src/hb-transaction.c (+33/-8)
src/hb-xml.c (+10/-2)
src/homebank.h (+1/-1)
src/ui-assign.c (+125/-14)
src/ui-assign.h (+7/-3)
Changed in homebank: | |
assignee: | nobody → slodki (slodki) |
status: | New → In Progress |
Changed in homebank: | |
status: | In Progress → Fix Committed |
Changed in homebank: | |
status: | Fix Committed → In Progress |
Changed in homebank: | |
milestone: | none → 5.1 |
Changed in homebank: | |
assignee: | slodki (slodki) → Maxime Doyen (mdoyen) |
importance: | Undecided → Wishlist |
Changed in homebank: | |
status: | In Progress → Fix Committed |
Changed in homebank: | |
status: | Fix Committed → Fix Released |
Changed assignment window screenshot