vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Creating a way to use the F command to hover and not click.

Open ghost opened this issue 7 years ago • 23 comments

Many website such as Amazon use menus that need to be hovered over instead of clicked to open up more items.

If we could add in some way of using the F command to "hover the mouse" instead of clicking.

ghost avatar Nov 22 '17 11:11 ghost

I'm not sure if it'll work on every site though, some might be listening to onMouseEnter (amazon does for their menu-aim thing), some websites might be using :hover psuedo class, not sure if it's possible, but definitely a good feature to add.

Maybe instead of F we can go for something else? since it's a little lesser used feature than link, right? maybe on H for hover?

cyberhck avatar Dec 04 '17 08:12 cyberhck

Perhaps we should add something like...

map X LinkHints.activateMode hover
map X LinkHints.activateMode copyLinkText
map X LinkHints.activateMode openInNewWindow

(and so on).

smblott-github avatar Dec 04 '17 08:12 smblott-github

IMO better would be

map X LinkHints.activateMode action=hover
map X LinkHints.activateMode action=copyText
map X LinkHints.activateMode action=copyUrl
map X LinkHints.activateMode action=openWindow

this also opens us up to do things like

map X LinkHints.activateMode action=click shift=true ctrl=true

I'm not a big fan of the naked options, since it could really limit our flexibility later, and opens us up to nonsense like

map X LinkHints.activateMode hover copyLinkText

But yes, we should do something like this.

mrmr1993 avatar Dec 04 '17 13:12 mrmr1993

Agreed.

smblott-github avatar Dec 04 '17 13:12 smblott-github

Thought about the same thing today, it'd be awesome. Any updates on this?

everyonesdesign avatar Feb 01 '19 15:02 everyonesdesign

Also want to know if someone had an idea on how to solve this :)

Also wouldn't it suffice to just place the mouse cursor above the link?

Trollwut avatar Jun 03 '19 21:06 Trollwut

Is there a feature to hover with Vimium already or is there a plan until when it will be supported?

alexanderfarr avatar Aug 29 '20 09:08 alexanderfarr

#3097 should have fixed this. @alexanderfarr

gdh1995 avatar Aug 29 '20 11:08 gdh1995

Can someone explain how I can hover something? I fear I'm too stupid to understand it in the linked MR.

Trollwut avatar Aug 29 '20 16:08 Trollwut

This MR adds a new option (aka.; parameter) to the command of LinkHints.activateMode. So you just need to open the option page, map a key sequence to the command and append an option of "action=hover" to the end of the line.

---Original--- From: "Trollwut"<[email protected]> Date: Sun, Aug 30, 2020 00:24 AM To: "philc/vimium"<[email protected]>; Cc: "Comment"<[email protected]>;"Dahan Gong"<[email protected]>; Subject: Re: [philc/vimium] Creating a way to use the F command to hover and not click. (#2829)

Can someone explain how I can hover something? I fear I'm too stupid to understand it in the linked MR.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

gdh1995 avatar Aug 29 '20 17:08 gdh1995

This worked for me:

  • map e LinkHints.activateMode action=hover

The &nbsp; stuff is just confusing

PS. Tested on Amazon and it works, for Aliexpress it doesn't work.

duckyb avatar Sep 13 '20 13:09 duckyb

Can confirm Alibaba-related websites still cannot use this hover capability. Is there anything that I am missing here?

YusufGandhi avatar Oct 16 '20 08:10 YusufGandhi

@YusufGandhi Could you provide snapshot or detailed place of the buttons?

BTW, hover only means to use a simulated event to let page JS run something, while it won't make browsers show link URLs at the bottom-left corner.

gdh1995 avatar Oct 16 '20 08:10 gdh1995

2020-10-16_16-12-51 (1) @gdh1995 this is the animated gif. I am using e as the hover mapping. However, when I tried to hover the "Sell on AliExpress" by pressing AA, it didn't reveal the menu.

YusufGandhi avatar Oct 16 '20 09:10 YusufGandhi

The page uses CSS to act on hover (.ng-sub:hover .ng-sub-list), and web extensions have no API to change CSS states, so there's nothing Vimium can do to show the menu.

gdh1995 avatar Oct 16 '20 09:10 gdh1995

@gdh1995 ah, I see. so, it works when it's JS and won't work for CSS hover, correct?

YusufGandhi avatar Oct 16 '20 11:10 YusufGandhi

Yes.

gdh1995 avatar Oct 16 '20 11:10 gdh1995

This is necessary to react on FB with anything other than 'like`. I tried the above hover trick, but it didn't work.

jaymzh avatar Feb 12 '21 07:02 jaymzh

Any way to cancel the hover?

WoxWik avatar Apr 28 '21 16:04 WoxWik

@WoxWik Escape next to a hover action will execute an "unhover" action. For example, on Wikipedia a "hover" action on a link shows a card, and Escape will make the card disappear.

gdh1995 avatar Apr 30 '21 08:04 gdh1995

Does the feature in #3097 work with Filtered Hints mode? I was not able to get the mapped key to work, possibly because it was clashing with the filtering mode and it thought that I was typing more of the link I wanted to filter to.

hxu avatar Feb 28 '22 06:02 hxu

@hxu This doesn't affect Filtered Hints.

gdh1995 avatar Feb 28 '22 08:02 gdh1995

issue should be closed, see comment above, #3097 works, solution is added to wiki here: https://github.com/philc/vimium/wiki/Tips-and-Tricks#hovering-over-links-using-linkhints

mmikeww avatar Mar 12 '24 15:03 mmikeww