ENH: Move Account matcher to Filter tab

This commit moves the Account matcher into the Filtering tab in preparation for further options
This commit is contained in:
Christopher Lam
2017-12-10 07:10:03 +08:00
parent 4187cc1cd2
commit 8990553e2e
2 changed files with 21 additions and 17 deletions

View File

@@ -658,6 +658,26 @@ options specified in the Options panels."))
gnc:pagename-general optname-table-export
"g" (N_ "Formats the table suitable for cut & paste exporting with extra cells.") #f))
;; Filtering Options
(gnc:register-trep-option
(gnc:make-string-option
pagename-filter optname-account-matcher
"a5" (N_ "Match only accounts whose fullname is matched e.g. ':Travel' will match \
Expenses:Travel:Holiday and Expenses:Business:Travel. It can be left blank, which will \
disable the matcher.")
""))
(gnc:register-trep-option
(gnc:make-simple-boolean-option
pagename-filter optname-account-matcher-regex
"a6"
(N_ "By default the account matcher will search substring only. Set this to true to \
enable full POSIX regular expressions capabilities. 'Car|Flights' will match both \
Expenses:Car and Expenses:Flights. Use a period (.) to match a single character e.g. \
'20../.' will match 'Travel 2017/1 London'. ")
#f))
(gnc:register-trep-option
(gnc:make-string-option
pagename-filter optname-transaction-matcher
@@ -691,23 +711,6 @@ tags within description, notes or memo. ")
'())
#f #t))
(gnc:register-trep-option
(gnc:make-string-option
gnc:pagename-accounts optname-account-matcher
"a5" (N_ "Match only above accounts whose fullname is matched e.g. ':Travel' will match \
Expenses:Travel:Holiday and Expenses:Business:Travel. It can be left blank, which will disable \
the matcher.")
""))
(gnc:register-trep-option
(gnc:make-simple-boolean-option
gnc:pagename-accounts optname-account-matcher-regex
"a6"
(N_ "By default the account matcher will search substring only. Set this to true to enable full \
POSIX regular expressions capabilities. 'Car|Flights' will match both Expenses:Car and Expenses:Flights. \
Use a period (.) to match a single character e.g. '20../.' will match 'Travel 2017/1 London'. ")
#f))
(gnc:register-trep-option
(gnc:make-account-list-option
gnc:pagename-accounts optname-filterby

View File

@@ -1709,6 +1709,7 @@
"Use Full Account Name?" (cons #f "Use Full Account Name")
"Use Full Other Account Name?" (cons #f "Use Full Other Account Name")
"Void Transactions?" (cons #f "Void Transactions")
"Account Substring" (cons "Filter" "Account Matcher")
))
(name-match (member name new-names-list)))