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

focusinput's weird behaviour on google search box #4706

Closed
shisui98 opened this issue May 21, 2023 · 3 comments
Closed

focusinput's weird behaviour on google search box #4706

shisui98 opened this issue May 21, 2023 · 3 comments

Comments

@shisui98
Copy link

shisui98 commented May 21, 2023

  • Brief description of the problem: :focusinput has weird behaviour on Google search input box.

  • Steps to reproduce:

    1. Visit google.com.
    2. Use gi to focus input on the search bar if it's not focused already.
    3. Type in anything, in this case "Tridactyl" and hit enter.
    4. Now use gi again to focus input on the search bar.
    5. You'll see that the cursor is placed at the start/front of text and not at the end of text/line.

    I remember clearly the default behaviour to be latter (cursor at end of text) in google and it is still the default behaviour in other search engines (tested on duckduckgo and startpage). While this realy isn't a big problem, it kinda feels off when the behaviour is exclusive to Google search input.

  • My current workaround

    Easy. :bind --mode=input <C-e> text.end_of_line

  • Firefox version: 102.11.0esr (64-bit) with Tridactyl 1.23.0

  • Waterfox version: 5.1.4 (64-bit) with Tridactyl 1.23.0pre6760-a5196759 (Waterfox is a fork of Firefox)

  • URL of the website the bug happens on: Google

  • Config: viewconfig_user.json

  • Contents of ~/.tridactylrc or ~/.config/tridactyl/tridactylrc: N/A

    EDIT: Disabling javascript seems to fix the issue.

@shisui98 shisui98 changed the title focusinput's weird behaviour on Google's search box focusinput's weird behaviour on Google's search box May 21, 2023
@shisui98 shisui98 changed the title focusinput's weird behaviour on Google's search box focusinput's weird behaviour on google search box May 21, 2023
@bovine3dom
Copy link
Member

Thanks for filing this issue. I noticed it a while ago and it really annoys me too.

We might be able to add a workaround just for Google but no promises :)

@rlch
Copy link
Contributor

rlch commented Sep 22, 2023

Hey guys, thanks for raising this and providing a workaround.

I've improved the workaround a little bit so that gi is the only command required to replicate the original behaviour:
bind --mode=normal gi composite focusinput -l | text.end_of_line

Hope this helps :)

@bovine3dom
Copy link
Member

Ah, thanks, that would be easy to add as a site specific default, I'll try to remember to do it

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

No branches or pull requests

3 participants