vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Feature request: Repeat last click

Open tobimensch opened this issue 7 years ago • 5 comments

Example: I'm on youtube and hit f to "click" on the start/stop button. I have to hit "SE" so I do. But then I scroll down by a little bit and hit f again to unpause the video, and now it's showing a different key combination (i.e. "AF").

This is cumbersome. If vimium could simply remember the last link (or whatever else) that was clicked and there was a shortcut for it (for example the dot key "."), it would make repeat "clicking" easier and on top of that it would also work when you have scrolled down to the comment area and the link/button isn't visible anymore.

tobimensch avatar Sep 21 '16 09:09 tobimensch

Definitely in support of this. Would make it much easier to repeatedly click on things like "Next" arrows in, for example, Google Calendar.

wcox13 avatar Dec 05 '18 21:12 wcox13

If vimium could simply remember the last link (or whatever else) that was clicked and there was a shortcut for it

If you think this through, you'll realise that it's considerably harder than is obvious at first. The problem is that different links are visible at different times. Even without scrolling, the number of visible links can change, so there is no algorithm which can correctly give links their previous hint.

This is one of the reasons why (IMHO) filtered hints are superior.

smblott-github avatar Dec 26 '18 08:12 smblott-github

My thoughts are keeping a buffer of what link was pressed last (not the hint that was last used). When . is pressed, check if that link is still visible. If it is, click it. Otherwise, do nothing.

rnd256 avatar Dec 27 '18 00:12 rnd256

OK. What's the use case?

Keep in mind Vimium's design goals.

smblott-github avatar Dec 27 '18 06:12 smblott-github

Hi, one use case could also be when you shop something and want to add some more items of the same thing.

monkeybeans avatar Sep 21 '23 20:09 monkeybeans