[GNC-dev] Ideas for account type-ahead modification
ripngo at gmail.com
Fri Mar 27 11:16:52 EDT 2020
I gave that a shot. See
But see comments below:
> Imagine we have the following account tree:
> Typing 'et' will filter the list of accounts to show to
> Subsequently typing ":" will autocomplete 'et' to 'ets:' and reduce the list to >
I haven't implemented the autocomplete because in most cases I"m not
sure what to do:
What if you have:
All three match "et" but what do we do if the user type ":" ? In which
situation can we autocomplete? In the current search, ":" autocompletes
the current match (i.e., it moves the cursor to the next :). But in the
mixed search, it's not clear what it should do.
Should I treat ":" as .*: (non greedy) in regexp? I think that would be
pretty cool and it would be consistent with the legacy behavior.
In any case, the merging of the two searches actually does work
currently and is fairly intuitive. So if you guys like this solution
then I could remove the option, which would be really good!
More information about the gnucash-devel