lusakasa / saka-key

A keyboard interface to the web
https://key.saka.io
MIT License
860 stars 70 forks source link

Commands for next/previous page #176

Open technomancy opened 6 years ago

technomancy commented 6 years ago

It looks like in src/modes/command/client/commands/navigation.js there's functions for nextPage and previousPage but they just log to the console and don't do anything.

Is it planned that these will allow following <link rel="next" href="..."> type elements?

neilmacintyre commented 6 years ago

I am going to start to work on this issue.

neilmacintyre commented 6 years ago

Okay so I added and about to merge it into the master branch. The big issue with implementing this is that very few sites use the <link rel="next"> convention for establishing the next and previous links. Even Google, who seems to have started the convention does not use it on their search site. Perhaps in the future I will add some way to bind the next page link to specific link on a given url but for now that seems like a bit much.

mcepl commented 5 years ago

This would be actually quite lovely. First, <link rel="next"> is used in fact by quite number of generated documentation sites (e.g., https://docs.python.org/3/library/stdtypes.html), where it truly belongs, but also it is possible to add these elements via some other extensions / Greasemonkey scripts, etc., so it could be quite useful (I am sure, for example, fanfiction.net and archiveofourown.org will get one from as soon as this is available).