qutebrowser/tests/unit/completion
Ryan Roden-Corrent 8909e03f1c Match url completion terms in any order.
Perviously, 'foo bar' would match 'foo/bar' but not 'bar/foo'. Now it
will match both, using a query with a WHERE clause like:

WHERE ((url || title) like '%foo%' AND (url || title) like '%bar%')

This does not seem to change the performance benchmark. However, it does
create a new query for every character added rather than re-running the
same query with different parameters. We could re-use queries if we
maintained a list like self._queries=[1_arg_query, 2_arg_query, ...].
However, it isn't clear that such a complexity would be necessary.

Resolves #1651.
2017-12-11 07:46:50 -05:00
..
test_completer.py Style improvements 2017-12-03 22:32:17 +01:00
test_completionmodel.py Ensure HistoryCategory works in isolation. 2017-11-27 11:49:32 -05:00
test_completionwidget.py Add flake8-bugbear 2017-11-26 21:50:12 +01:00
test_histcategory.py Match url completion terms in any order. 2017-12-11 07:46:50 -05:00
test_listcategory.py Ensure completions are sorted after filtering. 2017-11-02 22:10:00 -04:00
test_models.py Match url completion terms in any order. 2017-12-11 07:46:50 -05:00