Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve parsing of search query for edit button. #69

Open
gety9 opened this issue Jan 3, 2022 · 2 comments
Open

Improve parsing of search query for edit button. #69

gety9 opened this issue Jan 3, 2022 · 2 comments

Comments

@gety9
Copy link

gety9 commented Jan 3, 2022

1, When doing search, example "wireless keyboard amazon"
and then pressing "edit" button you get clean convenient to edit form:
Screenshot_20220103-133713

2, But if we leave the page and then return to it (visit another tab) and then press edit then we get less convenient to edit form:
Screenshot_20220103-133741

3, And if we tab on query form on page and then press edit, then we get even less convenient to edit form:
Screenshot_20220103-133810

In situations 2 and 3 edit query should look like in situation 1 (containing only search query itself)
it will greatly improve value of edit button cause now if user is in situation 2 or 3 he is very unlikely to edit search query but is forced to open new tab and do new search.

@gety9
Copy link
Author

gety9 commented Jan 3, 2022

p.s. by edit button i mean button "input url".

@gety9
Copy link
Author

gety9 commented Jan 5, 2022

And this should be relatively easy to do, smg like

editInputUrl
1, If Search
(we will need parser per engine, we can do 1-2 top used engines to cover 80% of users with minimal effort)
1a, If google
(if has "google.com/search?q=" parse it and return search query)
1b, if baidu
(...)
Return query
Else return full url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant