Vieb icon indicating copy to clipboard operation
Vieb copied to clipboard

Move Pointer to Next/Previous Link

Open ottopiramuthu opened this issue 3 years ago • 2 comments

Checklist

Addition or change In a lot of text-based browsers there are shortcuts for moving the cursor to the next link on the page. For example, see the last few shortcuts under "Page/Cursor motion" here for W3M. It would be nice if Vieb also had an action to move the pointer to the next/previous link.

Alternatives considered You can open hints from pointer mode, but I want a way to cycle through adjacent links on a page.

ottopiramuthu avatar Sep 14 '21 03:09 ottopiramuthu

What would be the "order" of links on the page? The height and optionally the width? The order of the characters you need to press? Order inside the DOM? Something else entirely? I personally can't decide between them, as for me it doesn't feel like there is a proper order of links on a page, but I do see the value in having something like this, just unsure how...

Jelmerro avatar Sep 19 '21 15:09 Jelmerro

With text-based browsers it is usually the order inside the DOM. I would say it is similar to in mainstream browsers when you focus an element and press <Tab>. I don't see much of a difference between using the DOM and ordering them left-to-right, top-to-bottom.

The one benefit I see for using position on the page is that then you can have the notion of going "up/down/left/right" rather than "forward/backward" in the link list. But to take advantage of that you would need 4 more actions. I would prefer using the DOM, since it is more familiar, but if you find a way to intuitively make the spatial movement, I wouldn't mind that. Qutebrowser has this implemented as a setting. It would be nice if you could implement both ways of navigating links and leave it up to the user which one they want as well.

ottopiramuthu avatar Sep 19 '21 15:09 ottopiramuthu