vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Can not focus on the code section in Stackoverflow

Open Black-Smith-Of-Fire opened this issue 1 year ago • 3 comments

When I press f there are no tags in the code section of stackoverflow.

This makes it difficult to scroll in the code section of the page.

Screenshot from 2024-12-13 23-55-47

Please see to this problem .

Thank you so much for this wonderful plugin , by the way :)

Black-Smith-Of-Fire avatar Dec 13 '24 18:12 Black-Smith-Of-Fire

As user, I find it it very reasonable that f doesn't move focus. f is for navigation links.

This seems more like a use case for a similar way to move focus, and perhaps at the same time (or in a similar feature) select what to select and yank. Perhaps by putting navigation links on all DOM elements with unique text content, and/or a simple way to visually navigate the DOM ... and ultimately change to visual mode to select a part of the text.

kiilerix avatar Jan 05 '25 11:01 kiilerix

So how do I scroll the code section ?

Black-Smith-Of-Fire avatar Mar 26 '25 13:03 Black-Smith-Of-Fire

That is a good question. I don't think vimium provides a good answer. Someone would have to invest in implementing it. Hopefully without shoehorning it into f.

But while navigation links are easy to find in the DOM, I see no generic easy and reliable way that an extension possibly could enumerate the elements that the user might want to scroll or give focus. It might need a site specific solution.

For stackoverflow, one workaround could be to hit tab something like 20 times.

kiilerix avatar Mar 26 '25 15:03 kiilerix