Add shortcuts for focusing next and previous without opening articles.#1767
Add shortcuts for focusing next and previous without opening articles.#1767Frenzie merged 8 commits intoFreshRSS:devfrom
Conversation
…focus .. without opening'
|
Could you explain what you want to achieve here. I am not sure I understand your use case. Thanks |
|
Focus without opening == focus without marking read? |
|
Yes, the shortcut in AOL Reader would move focus without expanding the item or marking it as read. Here's a video of how it is now: https://gfycat.com/OldBlandAuklet Scrolling behavior from what I can remember from AOL & Google reader was a bit different. |
|
Why not keeping the same shortcuts but adding an option to keep the entries closed? This way there is only one set of keys for motion. |
|
Because then it's one or the other. The default is fine for me but I do regularly find myself going j, r. Dunno how it'd pan out in practice but I can definitely see some potential. :-) |
|
What I mean is that:
We could add an option to define the default state of an entry (open/close) and link the reading function on the open/close action. |
|
That's exactly what I mean too. That's binary. Such settings are useful if you don't like the default at all, but not if you generally like the default. |
|
I see what you mean. I still find having 2 sets of keys to move around is kinda weird. |
|
PS I think n and p specifically are weird and far apart. Something like u and i or n and m seems better. Vim uses ctrl+b/f. |
|
As long as you can reassign keys, default values are not that important. |
Really this is because I want to replicate my habits from AOL (and Google?) Reader(s), and that's how they did it. I remember them as "next" and "previous" and find that my fingers can rest on |
|
@aledeg You are our mister shortcuts :-P Is it good for you? |
I disagree and I'm sure you do too. ;-) You can't make everybody happy of course but imo you should always design as if there were no options, all the while avoiding the Apple route. Unless you assume using your left hand to press n and your right hand to press p, then n and p are objectively somewhat suboptimal. (That's the diplomatic way of phrasing it.) The pinky is the worst finger to use because it puts extra stress on the hand. On QWERTY, h and l, i and o, as well as n and m make sense ; on AZERTY maybe only h and l, and i and o.
That is where configurability comes in, imo.
I'm not "our" mister shortcuts but I did maintain a very heavily customized Opera keyboard shortcut set for over half a decade. It's vaguely similar in principle to Vimperator I suppose, although it dates back to '04 or '05. I've given the matter of keyboard layouts and keyboard shortcuts more thought than most. :-P |
|
@Frenzie @Alkarex |
|
@aledeg Cool! I misunderstood. :-) I propose i and o then? |
aledeg
left a comment
There was a problem hiding this comment.
@mdemoss First thing, thank you for you PR.
Every contribution is appreciated.
I have a few comments on it, that I would you to change before accepting it.
As you have seen in the comment section, we would like to have a different set of keys as default so they are more natural (closer on the keyboard both on QWERTY and AZERTY).
I've tested it and it working properly. One thing to change though. You've put the configuration in the navigation section. It's fine but those shortcuts don't behave as the others. By that I mean that the modifiers are not working.
So I suggest you change how the form is rendered to show that those action cannot be used on feed nor categories.
|
@aledeg Something based on element height might make more sense than window height glancing at the code ( And yes, we'd expect Shift to work. :-) |
|
@Frenzie the scrolling parameters made the experience really smooth. It didn't bothered me that it was based on window. I have no opinion on what is best for that matter. |
|
It's the kind of thing that jumps out to me as suspicious because it might inadvertently be based on an effective window height of some 600-800 without properly taking into account 200 or 2000. But like I said, might. :-) |
| 'go_website' => 'space', | ||
| 'next_entry' => 'j', | ||
| 'prev_entry' => 'k', | ||
| 'skip_next_entry' => 'n', |
There was a problem hiding this comment.
| 'skip_next_entry' => 'n', | |
| 'skip_next_entry' => 'i', |
| 'next_entry' => 'j', | ||
| 'prev_entry' => 'k', | ||
| 'skip_next_entry' => 'n', | ||
| 'skip_prev_entry' => 'p', |
There was a problem hiding this comment.
| 'skip_prev_entry' => 'p', | |
| 'skip_prev_entry' => 'o', |
|
@Alkarex I don't have permission to push to the repo. |
|
@Frenzie Ok. If you know the changes to be done, I then suggest we merge here, and you make a new PR with the remaining changes |
|
I'm not entirely sure how @aledeg envisions the config page but the two suggestions I added are probably the main thing. |
|
@Frenzie Good for me |
|
Alright, I'll stick it in a follow-up PR. |
* [fix] Finishing touches for next/previous without focus Cf. #1767. * Avoid single quote Alternative: use `’` * Minor whitespace * Minor whitespace * be explicit about skipping * add todos * overshot by one
|
I am late to the discussion, but what would you think of using 'up' / 'down' as default shortcuts for these new skip to the previous / next ? (standard in mail clients such as Outlook, GMail... and other lists) |
|
I'm not the biggest fan of that, but as long as it doesn't interfere with scrolling in opened articles I'm ambivalent toward it. |
|
Good point @Frenzie . With the current implementation, it would indeed interfere in a negative way with open articles. |
FreshRSS#1767) * add skipping option to toggleContent to use later for 'i' and 'o' hotkeys * in English config j,k are now 'open' and not 'skip', i,o are called 'focus .. without opening'
* [fix] Finishing touches for next/previous without focus Cf. FreshRSS#1767. * Avoid single quote Alternative: use `’` * Minor whitespace * Minor whitespace * be explicit about skipping * add todos * overshot by one

AOL Reader (and Google Reader, if memory serves) had these assigned to the
nandpkeys.AOL Reader called this "Items scan down/up," but I don't think that's clear.