Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Clicking a suggestion == query should be like clicking next #32

Closed
erikvold opened this issue Nov 7, 2010 · 7 comments
Closed

Clicking a suggestion == query should be like clicking next #32

erikvold opened this issue Nov 7, 2010 · 7 comments

Comments

@erikvold
Copy link
Contributor

erikvold commented Nov 7, 2010

When I see a suggestion I'll click on the one I want, then by instinct I'll click it again to try to get the next result, but this does nothing atm.

@erikvold
Copy link
Contributor Author

erikvold commented Nov 7, 2010

Patch: erikvold/prospector@55b6ec1

@supahgreg
Copy link
Contributor

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

@erikvold
Copy link
Contributor Author

erikvold commented Nov 8, 2010

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.

@supahgreg
Copy link
Contributor

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

@Mardak
Copy link
Member

Mardak commented Nov 9, 2010

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.

@supahgreg
Copy link
Contributor

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

@erikvold
Copy link
Contributor Author

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)

Mardak pushed a commit that referenced this issue Nov 2, 2012
granting white-listed hosts access to "webapps-manage" Services
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants