One of my favorite things about Lemmy is how everyone uses *GPL licenses for their code. Y'all rock! ❤️
❤️ FOSS ❤️
Does this come with a quick key for hiding a thread?
The only thing I miss from that other site / RES is being able to scroll by just hitting H, H, H etc for 'hide', stopping to actually enter a thread, or skip it to read later.
The benefit being that I'd hop on a couple hours later, and those posts would still be hidden.
With Lemmy, I see a LOT of the same threads. Some of its because of reposts to different communities, but a lot of it's because the stuff I already sifted through is still lingering the next time I hop on.
Yep - Enter key hides the thread!
Hell yeah! I'll definitely be giving this a shot!
I am Loving this script. Thank You
Adding a comment so people can experiment more in this thread.
There's a bunch of cli clients though, without the overhead of a browser.
Not to say it wouldnt be useful for some people.
Hey, I just discovered this and discovered that you seem to be the developer of it.
It seems to be broken in at least two ways, and doing some very unexpected (at least insomuch as it attempts to replicate RES behaviour, and also IMO how I would expect it to behave) things with alternative keyboard layouts.
Broken: upvoting posts. If I have a post selected and press "a", it takes me to the post in the poster's instance, the same as clicking the little fediverse logo. If I press "z", it upvotes. Voting works fine on comments with a = upvote, z = downvote.
"Disable arrow key scrolling" also seems to disable the use of arrow keys inside of a text box.
Keyboard layouts: in short, you seem to be using event.code
, which detects which physical hardware key is depressed, instead of event.key
, which detects the character that was typed. It means that if I want to move forward and backward, I have to press the key I would normally expect to type h/t.
To be clear: this is not wrong necessarily. It's actually sort of my preferred way for video games to do things, so I can type the keys in the space that WASD are and move around, for example. But as my personal preference, and my experience of how most browser extensions do things (including RES), this is not how I'd prefer it to be done.
I use Dvorak, which by coincidence keeps a and m in the same places as QWERTY (as well as the number keys), but moves everything else around to be more efficient and ergonomic. It also has the benefit of putting j and k where QWERTY has c and v, allowing for convenient one-handed use of the "next" and "previous" comment buttons along with upvoting, while keeping the right hand on the mouse for scrolling. And I could easily reach to the numpad enter key with my mouse hand to collapse a section (side note: using event.code
means only the main enter key works. Using event.key
, both enter keys are Enter
). QWERTY requires two hands on the keyboard.
You Should Know
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.
Rule 11- Posts must actually be true: Disiniformation, trolling, and being misleading will not be tolerated. Repeated or egregious attempts will earn you a ban. This also applies to filing reports: If you continually file false reports YOU WILL BE BANNED! We can see who reports what, and shenanigans will not be tolerated.
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!