Giter Club home page Giter Club logo

Comments (5)

david-swift avatar david-swift commented on September 22, 2024 1

I think it could look similar to the one used in settings dialogs:

Screenshot from 2024-05-20 15-33-21

But with question - answer instead of label - path.

from memorize.

david-swift avatar david-swift commented on September 22, 2024

The search function is implemented here:

func search(_ search: String) -> Bool {

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:

  • Sort the results by a matching score. This would be confusing done the way searching currently works, so it would be better to create a separate search view similar to the ones in settings dialogs. Selecting a search result would close the search view and focus the flashcard in the edit view.
  • Hide flashcards with a low score compared to the best results that technically match the search string as well.

I prefer the first option. What do you think, do you have another suggestion?

from memorize.

rene-coty avatar rene-coty commented on September 22, 2024

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…

from memorize.

rene-coty avatar rene-coty commented on September 22, 2024

That would be neat indeed!

from memorize.

david-swift avatar david-swift commented on September 22, 2024

I implemented the new search view and a new algorithm based on FuzzyFind in 1efab42.

Screenshot from 2024-06-02 15-18-56

from memorize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.