Open siikamiika opened 6 years ago
This comes up from time to time. The devil is in the details. What to do is the page scrolls a bit? What if new links appear? What if the same hint has been used with two links in non-overlapping viewports, but now both are visible? What do we do about all of these issues, with the added complexity that some of the links are in different frames.
If you want to know what to type for a particular link, then I suggested filtered hints...
Didn't think of the issue with overlapping viewports. It sure complicates things, but maybe you could work around it by preventing the use of the hint on the same page again for links other than the one you already followed. I also don't know how you could track it's the same link if it's regenerated after you click something (maybe it's a link to #
but has an onclick).
What do you mean with frames? I don't think Vimium works with iframes or at least the ones I know of after using Vimium for 1 day (Twitter widgets).
I tried the fitered hints feature but it was ineffective in my opinion and you couldn't use it to filter links that don't have text or have text that requires an IME to input.
I think this feature would speed up working with single page applications or other sites that dynamically add and remove links from the page.
For example:
view 0
and use vimium hints to click an element that doesn't navigate away from the single page application but goes toview 1
. The hint forview 1
isa
.view 2
to check something, and use hints again.view 2
has some extra links in it. The hint is not relevant to this example.view 1
. The hint forview 1
is nota
.Step 3. with the feature: the hint is
a
.I can try to implement the feature myself but I have never used CoffeeScript before and I don't know anything about the code base yet. Also, maybe not enable it automatically for everybody if it would be too heavy on CPU.
I'm using Vimium-FF on Firefox but I don't know how different it's from the code in this repository if at all.