mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Change Search Strategy
1. Use the whitespace analyzer so its easier to search for tokens that are a mix of letters and numbers e.g. workout codes and TT route names. 2. Search as you type. Since we have very small collections to search across (typically no more than a couple of thousand) there is no major overhead in searching as you type. 3. Search all texts by default not just the Notes field. This is a more appropriate default and is less likely to confuse new users. In addition, it is most likely what most users want to do anyway.
This commit is contained in:
@@ -126,6 +126,8 @@ void SearchBox::updateCloseButton(const QString& text)
|
||||
{
|
||||
if (clearButton->isVisible() && text.isEmpty()) clearQuery();
|
||||
clearButton->setVisible(!text.isEmpty());
|
||||
|
||||
if (mode == Search) searchSubmit();
|
||||
}
|
||||
|
||||
void SearchBox::searchSubmit()
|
||||
|
||||
Reference in New Issue
Block a user