philc / vimium

The hacker's browser.
https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
MIT License
23.54k stars 2.49k forks source link

Link hint (f): aggressive / configurable duplicate links suppression #2345

Open 2tolik opened 8 years ago

2tolik commented 8 years ago

Present: many forums, galleries and random sites got duplicate "link hints" (f) which make selecting right more complicated than needed or turns a page into xmax-link-tree.

Expected: more robust or configurable mechanism to suppress duplicate links

Examples: www.reddit.com (please add more, good for test)

Google Chrome 54.0.2840.71 (Official Build) m (32-bit) Vimium 1.57

smblott-github commented 7 years ago

Here's Reddit...

snapshot

There are lots of links, indeed, but I'm not sure there are many duplicates. Filtered links hints work better here, I think, because you can blindly just start typing the com, say, of "comments".

Also, it's hard to know what are duplicates. Just because an element is an a and has a.href, doesn't mean that that href is visited you click the element. The page could have a click listener.

2tolik commented 7 years ago

Redit page has single "a href" that Title, link to comments and "Avatar" correspond to. There could be tricks on getting to it (clicks), but for Vimium point of view there must be final dictionary with some elements and corresponding URLs.
If so, it would be nice to at least give all elements that point to a single URL same number/key-code (number of combination if you specify only home-row of symbols "asdfjkl;" is limited). At best - highlight only single element with same URL (text links over images, bigger heads over small links).

ddickstein commented 7 years ago

Maybe also have a configurable option where on certain websites any links that match a set of regexes are suppressed (hidden from link tips)? Thoughts? (map from website to regex list)