Code Monkey home page Code Monkey logo

Comments (7)

erikvold avatar erikvold commented on July 17, 2024

Patch: erikvold/prospector@55b6ec1

from prospector.

supahgreg avatar supahgreg commented on July 17, 2024

My first thought is that, after clicking a word, it should:

  1. be added to the find field
  2. removed from the suggestion list, since the user has confirmed it is the desired word

from prospector.

erikvold avatar erikvold commented on July 17, 2024

you say the word should be removed, but I don't see a reason.

removed from the suggestion list, since the user has confirmed it is the desired word

This sounds like the reason to do step 1, but not a reason to do step 2.

if (word === lowerQuery || word.slice(0, queryLen) != lowerQuery)

This would mean that when a user types "dog" that they won't see confirmation that "dog" is on the page, if it is on the page.

from prospector.

supahgreg avatar supahgreg commented on July 17, 2024

Oops, sorry. Hadn't had my coffee yet :) Will check it out this afternoon.

If the purpose is to predict the next word, it wouldn't make sense to keep a user-confirmed word in the list. Maybe words that have word as a prefix.

  • from my phone

from prospector.

Mardak avatar Mardak commented on July 17, 2024

What erikvold suggested was correct in that the words in the list provide a sanity check that the particular word is in the page. This is partially because search is still doing "match anywhere" while the suggestions are prefix matches.

from prospector.

supahgreg avatar supahgreg commented on July 17, 2024

Okay, I had been thinking of something like Swiftkey (Android).

from prospector.

erikvold avatar erikvold commented on July 17, 2024

Closed by 1646898: findSuggest: Clicking a suggestion == query should be like clicking next [r=Mardak]
Clicking a suggestion == query should be like clicking next
(cherry picked from commit 55b6ec1c36289edbe5626c48d3be3e0004a091b5)

from prospector.

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.