Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world
plugins·Lemmy Plugins and Userscriptsbyafoutopatisa

Easily Navigate Lemmy with Keyboard Arrows

Forked from @[email protected]'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!

https://github.com/vmavromatis/Lemmy-keyboard-navigationOpen linkView original on lemmy.world
14

16 replies

Rickreply
thesimplecorner.org

Thank you for the ping! We are doing a code cleanup on LemmyTools right now and will try to get this added in the next major update. I really appreciate you.

3
Rickreply
thesimplecorner.org

I actually am really enjoying the script, have you thought about adding a way back by keypress out of a post's comments? Merely a "back" button implementation? To use after you're done reading the comments or whatever. Also, maybe a key press to enter a comment box or reply to a certain comment. Those are my thoughts at the moment! Very good! I'll probably do a CDN link to your most recent via the script. Thank you so much.

3

Thank you!

I will add them all when I have time, probably this afternoon. As for "Back", I am currently using the browser back functionality (CMD+Left arrow in mac) but I can see if I can implement something smarter, maybe with one key only.

2

Version 1.7 just released!

  • New app icon ⌨️
  • Added R key to reply to a comment 💬
  • Fixed meta headers ✍️
  • Fixed all lint errors 🐛
  • Now script works automatically on all Lemmy sites, thanks to @[email protected]
2

You reached the end

Easily Navigate Lemmy with Keyboard Arrows | Spyke