205
submitted 1 year ago* (last edited 1 year ago) by afoutopatisa@lemmy.world to c/youshouldknow@lemmy.world

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
Enter = View Link
top 26 comments
sorted by: hot top controversial new old
[-] remer@lemmy.ml 12 points 1 year ago* (last edited 1 year 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/*

[-] afoutopatisa@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

Thank you, will fix both - DONE

[-] nix@merv.news 8 points 1 year ago

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

[-] afoutopatisa@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

I can try but no promises

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.

[-] minorninth@lemmy.world 2 points 1 year 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.

[-] afoutopatisa@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

There is an issue on lemmy-ui tracker https://github.com/LemmyNet/lemmy-ui/issues/984 apparently there is now also a WIP PR for it, yay :) However it seems to be with j,k keys, something which doesn't suit me, I prefer arrows.

[-] Deebster@lemmyrs.org 1 points 1 year ago

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

[-] afoutopatisa@lemmy.world 1 points 1 year ago

Hey that's solvable! 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!

[-] Deebster@lemmyrs.org 2 points 1 year 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.

[-] magmaus3@szmer.info 7 points 1 year ago* (last edited 1 year ago)

Why should I know about it? (rule 2)

[-] afoutopatisa@lemmy.world 7 points 1 year ago

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

[-] Deebster@lemmyrs.org 2 points 1 year ago

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

You haven't fixed it, btw

[-] afoutopatisa@lemmy.world 1 points 1 year ago

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

[-] Deebster@lemmyrs.org 2 points 1 year ago

Looks good πŸ‘ (Let's ignore rule 4 πŸ˜‰)

[-] afoutopatisa@lemmy.world 2 points 1 year ago

Too many rules πŸ˜… But hey it's open source so I won't be drowning in money from this lol

[-] varaki@lemmy.world 4 points 1 year ago

Ever heard of surfingkeys? πŸ˜ƒ If you're a neovim/vim enthusiast like me, you'll enjoy this πŸ˜ƒ

[-] afoutopatisa@lemmy.world 1 points 1 year 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.

[-] grte@lemmy.ca 4 points 1 year ago

I notice vim keys also work (for scrolling at least.)

[-] afoutopatisa@lemmy.world 3 points 1 year 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 @howdy@thesimplecorner.org ⚑
[-] DelvianSeek@lemmy.world 2 points 1 year ago

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

[-] flustered@lemmy.world 2 points 1 year 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?

[-] afoutopatisa@lemmy.world 1 points 1 year ago

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!

[-] notsofunnycomment@mander.xyz 2 points 1 year ago* (last edited 1 year ago)
[-] afoutopatisa@lemmy.world 4 points 1 year ago* (last edited 1 year 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 πŸ˜›

[-] Kissaki@feddit.de 2 points 1 year ago

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

[-] afoutopatisa@lemmy.world 1 points 1 year ago

Much clearer. Fixed!

load more comments
view more: next β€Ί
this post was submitted on 09 Jul 2023
205 points (100.0% liked)

You Should Know

32964 readers
10 users here now

YSK - for all the things that can make your life easier!

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must begin with YSK.

All posts must begin with YSK. If you're a Mastodon user, then include YSK after @youshouldknow. This is a community to share tips and tricks that will help you improve your life.



Rule 2- Your post body text must include the reason "Why" YSK:

**In your post's text body, you must include the reason "Why" YSK: It’s helpful for readability, and informs readers about the importance of the content. **



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Posts and comments which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding non-YSK posts.

Provided it is about the community itself, you may post non-YSK posts using the [META] tag on your post title.



Rule 7- You can't harass or disturb other members.

If you harass or discriminate against any individual member, you will be removed.

If you are a member, sympathizer or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people and you were provably vocal about your hate, then you will be banned on sight.

For further explanation, clarification and feedback about this rule, you may follow this link.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- The majority of bots aren't allowed to participate here.

Unless included in our Whitelist for Bots, your bot will not be allowed to participate in this community. To have your bot whitelisted, please contact the moderators for a short review.



Partnered Communities:

You can view our partnered communities list by following this link. To partner with our community and be included, you are free to message the moderators or comment on a pinned post.

Community Moderation

For inquiry on becoming a moderator of this community, you may comment on the pinned post of the time, or simply shoot a message to the current moderators.

Credits

Our icon(masterpiece) was made by @clen15!

founded 1 year ago
MODERATORS