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

In link-hint filtering mode, the link is not activated even though 'Require Enter' is unchecked #4651

Open
roeniss opened this issue Mar 17, 2025 · 4 comments

Comments

@roeniss
Copy link

roeniss commented Mar 17, 2025

Describe the bug

In link-hint filtering mode, the doc says "if there's only one candidate left, the link will be activate automatically" (ref), but it doesn't.

In Vimium options - Miscellaneous options, I did:

  • check: Use the link's name and characters for link-hint filtering
  • uncheck: Require Enter when filtering hints

Image

Expected behavior

When there's only one applicable link left, the link is activated automatically.

Side note

  • When I checked Use the link's name and characters for link-hint filtering, Characters used for link hints is changed to 0123456789
  • When there become only one link by typing digits, it activated automatically.

To Reproduce

Steps to reproduce the behavior:

  1. Set two options like above
  2. Open https://github.com/philc/vimium
  3. f -> pu
  4. There is (I hope) only one link left, the 'Pull Request' tab. but it only get highlighted and not activated. To activate the link, I have to type additional 1.

Verions

  • Chrome: 134.0.6998.89 (arm64)
  • Vimium: 2.1.2
@UncleSnail
Copy link
Contributor

UncleSnail commented Mar 19, 2025

I can confirm, I seem to be getting this bug as well in Firefox. The link becomes highlighted so that either "enter" or "1" will follow.
(Note that in my tests, using pu is not enough to get a single result as in the reproduce steps. There is a 2nd result. However, on other tests, the behavior does seem wrong.)

@roeniss
Copy link
Author

roeniss commented Mar 20, 2025

using pu is not enough to get a single result as in the reproduce steps

I also found that pu is not enough, yeah...

f -> pul -> 'Pull Request' tab becomes like focused state, but never activated (like clicked)

picture 1: pu

Image

picture 2: pul (focused)

Image

picture 3: pull (focused... more?)

Image

(The more I typed, the darker it gets. I'm not sure if it's spec or not)

@UncleSnail
Copy link
Contributor

Image

(The more I typed, the darker it gets. I'm not sure if it's spec or not)

That does honestly sound like a "bug" of being re-highlighted with each new character, but it could be intentional. I don't feel like looking into it because it doesn't seem like a big deal at the moment. If someone else wants to confirm this is happening and fix the issue if it is one, that could be good.

@roeniss
Copy link
Author

roeniss commented Mar 20, 2025

I agree with you. For this issue, let's focus on the original one only.

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

2 participants