Closed rene-coty closed 3 months ago
The search function is implemented here:
It currently checks whether there is each letter in the string in the right order, and hides a flashcard if this is not the case. So if I search for "hello", both "hello" and "hysterical elephants like loud oboes" will be visible while "world" won't.
In order to make this feature more useful, we could:
I prefer the first option. What do you think, do you have another suggestion?
I think hiding results that might be relevant is indeed a bad idea, so my preference also goes to the first option. I can't really represent myself how this separate view would look like though…
I think it could look similar to the one used in settings dialogs:
But with question - answer instead of label - path.
That would be neat indeed!
I implemented the new search view and a new algorithm based on FuzzyFind in 1efab42.
Describe the bug
Searching for a flashcard in a set can give erroneous output, with flashcards that don't contain the requested input at all. This happens especially when the set has a lot of flashcards, and it can make the search function almost useless
To Reproduce
Expected behavior
The displayed search result(s) should only be directly related to the input, ie. only contain the searched string
Additional context
You can test my problem with this .csv file, that I regularly use (~ 130 flashcards with a lot of text)