allen: (Default)
allen ([personal profile] allen) wrote in [site community profile] dw_suggestions2017-03-27 11:11 pm

Quick jump to next/previous entry

Title:
Quick jump to next/previous entry


Area:
reading page


Summary:
Add a javascript function to skip to the next or previous entry in your reading page. The function would be available either through a sticky element for desktop, or through a swipe gesture for mobile.


Description:
This is kind of like the Jump Links suggestion (which it looks like was accepted but lost in the bugzilla crash), but with a few differences.


The problem that it's supposed to solve is for when you end up with some long, uncut entries on your reading page (like from changelog or an RSS feed). And then you want to go to the next entry, but end up hitting page down a whole lot. Or worse, you're in mobile and you have to scroll down and keep scrolling and scrolling...


So the idea is to have a javascript function available to scroll to the next (or previous) entry in your page. This could be made available with a sticky module which would be available either in one of the sidebars or (if you don't have a sidebar) at the top of the main entry area. It would have just a 'Next' and 'Previous' button, which would take you to the next or previous entry in your reading list.


We could also include a jquery touch plugin that would add the same functionality with, say, a two-finger swipe up or down.



Edit 2017-04-24 I don't see much love for the sticky idea, but having a way to configure an optional shortcut has at least some support. So now I'm thinking a new tab in My Account Settings for Shortcuts, which would have options for

Enable keyboard shortcuts (checkbox, default unchecked)
Next (text field, default j)
Previous (text field, default k)
Enable touch shorcuts (checkbox, default unchecked)
Next (options for swipe/disabled, 1,2,or 3 fingers, and up/down/left/right)
Previous (options for swipe/disabled, 1,2,or 3 fingers, and up/down/left/right)

I could also add a way to make a link call the JS function so that anyone who wanted to use links instead of key bindings or touch gestures could just include those in their styles.

Poll #18201 Quick jump to next/previous entry
Open to: Registered Users, detailed results viewable to: All, participants: 26


This suggestion:

View Answers

Should be implemented as-is.
5 (19.2%)

Should be implemented with changes. (please comment)
4 (15.4%)

Shouldn't be implemented.
10 (38.5%)

(I have no opinion)
5 (19.2%)

(Other: please comment)
2 (7.7%)

denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2017-04-17 01:32 pm (UTC)(link)
As long as it's something people can disable (or not enable in the first place), like a S2 module or whatever, it may make it over to Github even if it gets a lot of No votes, unless somebody gives me a really good reason why not...

matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)

[personal profile] matgb 2017-04-17 04:04 pm (UTC)(link)
I found the original post to be slightly confusing but the comments have clarified the plan, and I think I like it but it'd need careful consideration: I also, for example, loath floating headers that aren't helping me, but this floating could help me if done right.

As a specific example, have you tried the Opera Mobile browser? if you fast scroll on that it will display an arrow in the scroll direction as a transparent overlay in thumb position, press it and you go direct to the top or bottom depending on scroll direction: incredibly helpful in many cases but not exactly what we'd want.

Aside: in Gmail j/k are next/previous email and [/] are next/previous+archive, very useful functions and those keyboard uses are great.

We're basically looking for a trigger to have the screen scroll to the next anchor of a given type, which given the very well marked up styles DW uses is fairly easy to establish/amend: I think it'd be better to have it stylable, I personally would prefer it on the right of my screen as floating up/down arrows for example but I'd imagine that would really annoy others.