A tampermonkey script to navigate Lemmy with keyboard arrows - GitHub - vmavromatis/Lemmy-keyboard-navigation: A tampermonkey script to navigate Lemmy with keyboard arrows
What's this?
It's a new UserScript (typically installed with browser extensions such as Tampermonkey/Violentmonkey/Greasomonkey) which enables keyboard arrow navigation, meaning you will no longer have to use your mouse to navigate Lemmy if you're lazy like myself π
Why YSK:
For some people like me, this could be the turning point to actually start using Lemmy (few but still!). I loved Lemmy and the only thing I disliked was being unable to navigate it with a keyboard like I used to do with Reddit/RES so I created one :)
Hope this is helpful and enjoy! π
Sharing the hotkeys below, you may also find everything on the github page:
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
R = Reply
Enter = View Link
I just started using this a few hours ago and it's a game-changer.
A few notes:
Go to https://www.tampermonkey.net/ to see the extensions for Chrome, Edge, Firefox, Safari, and Opera Next. The github page only links to chrome. I'm running it on Firefox and it works great.
Edit the lemmy instance it will work with by opening the extension and going to the Dashboard. Then click the Edit icon under Actions on the right. Add your instance in the ==UserScript== section. For example, I added lemmy.ml by adding the following line, making sure to include the *:
Edit: Someone got to it first! https://github.com/LemmyNet/lemmy-ui/pull/1892 However I personally dislike the key selection :/ J,K is neither comfortable, nor intuitive. Hopefully they will make it configurable.
This is great, I used navigate reddit using RES frequently, although I like the vim navigation style (hjkl). Would we be able to change the key shortcuts?
Hey sure! You could either use boobslider's original script (from which I based mine) or just use my script and replace ArrowDown/ArrowUp with KeyJ/KeyK!
However this script will allow you to select posts/comments, upvote/downvote, expand images, view links etc. I tried to make it as simple as possible to navigate Lemmy with just your keys:
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