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
  • @[email protected]
    link
    fedilink
    12
    edit-2
    11 months ago

    I just started using this a few hours ago and it’s a game-changer.

    A few notes:

    1. 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.

    2. 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 *:

    @match https://lemmy.ml/*

    • afoutopatisaOP
      link
      5
      edit-2
      11 months ago

      Thank you, will fix both - DONE

  • Nix
    link
    fedilink
    811 months ago

    any chance its possible to commit these shortcuts to the actual lemmy-ui so its natively supported?

      • @minorninth
        link
        211 months ago

        I’d create a GitHub issue and discuss it with the developers first. As long as users can opt out it might be reasonable.

        But having a lot of people use the extension in the meantime would prove the demand.

      • Deebster
        link
        fedilink
        English
        111 months ago

        j/k is what I’m used to from vim, RES, etc

          • Deebster
            link
            fedilink
            English
            211 months ago

            Oh yeah, I’m just saying that j/k is pretty widely used.

            Also, I think it’s more comfortable because they’re on the home row whereas the cursor keys aren’t. Configurability is always good though.

    • afoutopatisaOP
      link
      711 months ago

      Fixed! Thank you for the reminder, I just wrote it hastily

      • Deebster
        link
        fedilink
        English
        211 months ago

        In your post’s text body, you must include the reason “Why YSK:”

        You haven’t fixed it, btw

        • afoutopatisaOP
          link
          English
          111 months ago

          Sorry I’m just getting to know this place, I just tried now, will that work?

          • Deebster
            link
            fedilink
            English
            211 months ago

            Looks good 👍 (Let’s ignore rule 4 😉)

            • afoutopatisaOP
              link
              English
              211 months ago

              Too many rules 😅 But hey it’s open source so I won’t be drowning in money from this lol

  • @varaki
    link
    4
    edit-2
    10 months ago

    deleted by creator

    • afoutopatisaOP
      link
      111 months ago

      Never heard it but looks interesting I’ll check it out! But I do would wonder if it can do things like expand/collapse posts such as this script.

  • afoutopatisaOP
    link
    311 months ago

    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]
  • @flustered
    link
    211 months ago

    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?

    • afoutopatisaOP
      link
      4
      edit-2
      11 months ago

      I never heard of Vimium before, looks cool :)

      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
      

      It’s like a videogame 😛

  • @[email protected]
    link
    fedilink
    English
    211 months ago

    YSK: You can now navigate Lemmy with keyboard arrows
    YSK: You can use a web-browser script to navigate Lemmy with keyboard arrows

  • @DelvianSeek
    link
    211 months ago

    Omg thank you! I’ve been missing this so much!