vimium-c icon indicating copy to clipboard operation
vimium-c copied to clipboard

Feature request: automatic LinkHints on page ready

Open gilbh opened this issue 2 years ago • 13 comments

Is it possible to have the f function (I think it is called LinkHints) re-appear after I click a specific letter/link? I am not sure if that would be helpful if the link take to another page, but when staying in the same page, having the option for such a "sticky" mode of LinkHints is invaluable for continuing to open sub-menus etc.

Thanks for all your great work!

gilbh avatar Jun 19 '22 22:06 gilbh

There has been a command named LinkHints.activateWithQueue (<a-f>). And you may press Alt in LinkHints mode to toggle queue mode.

When LinkHints is showing and not in Filtered-Hints mode, then a Tab will reinit it, and you may see more hint markers for newly added links and buttons (https://github.com/gdh1995/vimium-c/issues/519) .

gdh1995 avatar Jun 19 '22 22:06 gdh1995

Fantastic, but I think there are drop-down menus for which the LinkHints does not work (even when I am using <a-f>. The website I encounter this is behind a user/pw (it's my bank), so I can't share the URL, but here's the screenshot: image You can see that the area I circled in green color does not have letters (what you see as letters there is actually below the sub-menu that opened).

gilbh avatar Jun 19 '22 23:06 gilbh

If the menu shows after LinkHints re-inits itself, you may press Tab to make Linkhints reinit again and then it should show hints for new elements.

If some elements are still not hinted, please see https://github.com/gdh1995/vimium-c/wiki/Add-or-remove-hints to configure parameters of LinkHints.

gdh1995 avatar Jun 20 '22 00:06 gdh1995

Tab did it. Great!!

gilbh avatar Jun 20 '22 01:06 gilbh

A related question: is there a "persistent" LinkHints mode? That is, that LinkHints is always on when entering a new page? I think to would be cool!

gilbh avatar Jun 27 '22 21:06 gilbh

No there's no plan to make LinkHints always show - it's impossible to auto select a suitable time point to show LinkHints, because page content may change frequently.

gdh1995 avatar Jun 28 '22 01:06 gdh1995

Thanks. I did not think of this problem, but I think that even a one second delay from entering the page until LinkHints come up would be tolerable (even if things change in the page after, which is rare). In my mind at least, this is a major added value, because it really pivots the browsing experience into vimium-c. Thank you for your consideration.

gilbh avatar Jun 28 '22 13:06 gilbh

Is there an option to let hjkl scrolling work while hints are shown, and redraw the hints on each scroll?

neta540 avatar Aug 19 '22 16:08 neta540

@neta540 Well, not available up to now, unless you can tolerate latency of 50ms between hint markers disappearing and showing again, no holding-on-to-scroll-longer, and the lose of LinkHints mode and options info:

mapKey <j:l> <v-lh_j>
run <v-lh_j> scrollDown+reset+LinkHints.activate

Maybe I'll add this feature in a future version, but I haven't decided yet.

gdh1995 avatar Aug 20 '22 03:08 gdh1995

Here to ask about the presistant LinkHints mode plans

Yarden-zamir avatar Aug 08 '23 12:08 Yarden-zamir

A future version will auto detect more clickable targets and then make the Tab key on a second LinkHints not so necessary as now.

While persistant LinkHints mode is not in a plan yet.

gdh1995 avatar Aug 17 '23 15:08 gdh1995

Who do we need to bribe to get PLM support then? For people who want to use the keyboard esclusivley this extension is bliss, but the overhead of having to "opt in" every page load is high and I would rather flip a switch that makes sure I need to "opt out" instead.

Yarden-zamir avatar Aug 20 '23 11:08 Yarden-zamir

OKay now I accept this idea, but I have no much time in recent months, so I may add this feature in, um, maybe 2024.

gdh1995 avatar Aug 27 '23 13:08 gdh1995