[GNC-dev] Ideas for account type-ahead modification

jeanl ripngo at gmail.com
Mon Mar 9 17:16:26 EDT 2020

I'm looking at this suggestion

(I'm not interested in the bounty, but I too wish the desired behavior was
This would require a bit of a change to the current account quickfill, which
is based on a tree where each leaf node shares the same starting string as
its parent. This works great for the current quickfill way to type and
account name (E:A for example for Expense:Auto).

To enable a more flexible quickfill (typing Auto would offer all account
that have "auto" in their name), we'd have to switch from the tree
representation, and have a linear array of account names, over which we'd do
a search for subtrings. These searches are very fast these days, so I don't
think performance would be an issue. Note that ideally, both types of
quickfill should remain available, via a preference.

Is that something that's been discussed in this forum? Are there major
objections to the above? 

As an aside, I don't see any use of std:: in the code, is that a directive
(that we shouldn't use the standard template library)?

Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-Dev-f1435356.html

More information about the gnucash-devel mailing list