Thanks to @aglidden for the PR work

Direct link to userscript -> https://github.com/vmavromatis/Lemmy-keyboard-navigation/raw/main/lemmy-keyboard-navigation.user.js

other discussions
 

What is it?

Lemmy Keyboard Navigation is a RES-like userscript that allows you to navigate Lemmy with the keyboard. Supports both HJKL and arrow navigation.

What's new

  • Due to popular demand, default navigation is now HJKL (aka RES or Vim-style). Change vimKeyNavigation into false if you wish to use Keyboard Arrows instead.
  • Enter key for comments collapse โކ
  • S key for save post/comment ๐Ÿ’พ
  • R key to go to community of a post ๐ŸŒ
  • Now also available as a Chrome Extension, however it's still at version 1.8, waiting for Google to approve 1.9, should be there in few days.

Feel free to provide feedback and of course PRs are always welcome! Special thanks to @aglidden for the major contributions.

 

Feel free to give it a spin and add any feature requests on github!

 

Forked from @boobslider100@lem.ee's script - I just modified it to navigate Lemmy with arrows instead. I find it much easier than using J/K. Right/Left arrows have dual usage also, as they can both change the page and jump to next/previous same level comment :)

Down = Next post / comment
Up = Previous post / comment
Right = Next page / parent comment
Left = Previous page / parent comment
A = Upvote
Z = Downvote
X = Expand
C = View Comments
Enter = View Link

I made it for me but feel free to give it a go and let me know what you think!