this post was submitted on 02 Jul 2025
37 points (97.4% liked)

Lemmy

13576 readers
30 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 5 years ago
MODERATORS
 

In a recent discussion it was mentioned that the search function in Lemmy is awkward to use and could be improved. As a result I already made two small changes:

  • Change community selector to use [!community@example.com](/c/community@example.com) format (#3218)
  • Search field in community sidebar (#3217)

Are there any other UI or UX changes you can think of to improve searching in Lemmy? Im mainly looking for frontend changes, such as reorganizing the input positions, changing default values etc.

top 26 comments
sorted by: hot top controversial new old
[–] Blaze@lemmy.dbzer0.com 11 points 1 day ago

Being able to search in a community is already a good improvement

[–] Die4Ever@retrolemmy.com 7 points 1 day ago (1 children)

When you do a search and it returns a mix of communities, posts, comments, users... They all sorta jumble together in weird ways. Maybe the content type of the search should not default to "All" maybe it should default to "Posts" or even just blank (forcing the user to choose).

Also the mixed results all jumble together, communities and users are tiny lines of text compared to posts and comments, maybe they need to have borders or more spacing. And maybe add more info next to communities and users.

[–] nutomic@lemmy.ml 3 points 1 day ago (1 children)

Makes sense. My idea is to use a fixed order for the different types of results, eg always put communities first, then users etc. What do you think? For communities it would make sense to display the short description as well, and for users both post and comment count?

https://github.com/LemmyNet/lemmy-ui/pull/3219

[–] Die4Ever@retrolemmy.com 3 points 1 day ago* (last edited 1 day ago) (1 children)

Yea I don't think it makes any sense to try to sort these items against each other. Maybe section headers would be nice too, a title for the Communities: section, etc?

[–] nutomic@lemmy.ml 1 points 1 day ago

I thought about that too, have to figure out how it can be implemented (im not very good at frontend stuff).

[–] nokturne213@sopuli.xyz 5 points 1 day ago* (last edited 1 day ago) (1 children)

For post searches, could there be a [] Search Title Only? I have been reading a post and had my client crash and was unable to find the post again, despite recalling some or all of the title.

I also do a foreign word of the day and when I want to check if I am duplicating a post I have to skim through all of the posts that include that word.

[–] nutomic@lemmy.ml 4 points 1 day ago

Good point, this is one of those features which is already implemented in the backend but not added to lemmy-ui yet. Made a pull request for it.

https://github.com/LemmyNet/lemmy-ui/pull/3220/files

[–] Lazycog@sopuli.xyz 4 points 1 day ago* (last edited 1 day ago) (3 children)

I'm not a UI or UX expert, but I wonder if it would make the search page nicer if instead of the search target (form select) would be tabs instead of a dropdown since it is distinct selection from the other filters in the search?

using bootstrap tabs (I didn't put any effort into styling just added bootstrap tabs and removed the form select butto dropdown):

Search but with tabs for form select instead of button dropdown

Edit: now that I think about it, the tab might be kinda confusing unless also the other dropdowns are slightly altered to give more context in the current form selection tab, e.g. (text changes):

In community... "Any", From creator ... "Any"

But yeah I just wanted to throw out ideas, I'm not sure about them myself. The search inside a community is nice addition!

[–] who@feddit.org 2 points 1 day ago* (last edited 1 day ago) (1 children)

One thing that would be helpful about not using drop-down boxes for static options: Fewer clicks required to set up a search. Each of the drop-down boxes in use now requires the user to:

  • Read the text on the drop-down box to decide whether it's relevant
  • Move the mouse to the drop-down box
  • Click to open it
  • Read the options within
  • Move the mouse to the best fitting option
  • Click to choose the option

The first drop-down box (search type) contains only five options, which could be replaced by buttons like the existing Subscribed/Local/All buttons. It would make discovering the available options easier because they would no longer be hidden behind a drop-down, and it would reduce the number of actions required of the user.

The second drop-down box (sort type / time frame) might be a good candidate for this change, too.

As for whether tabs would be a better choice than the button-style approach currently used by Subscribed/Local/All: I'm not sure right now, as I haven't had much time to consider it. But I think things would get messy and possibly confusing if more than one of these input elements were converted to tabs, because it would mean nesting tabs within tabs. On the other hand, using a row of buttons for each category would allow them to coexist neatly, fit the existing visual style, and avoid adding the complexity of another widget type for users to navigate.

[–] Lazycog@sopuli.xyz 1 points 1 day ago

I had a look and determined I need bit more time for this all than just today (long work day and a lot of additional info + need to get into lemmy-ui codebase a bit).

You've got some good points there, thank you! I'm not a UI or UX expert but it's a bit of a challenge reducing the amount of clicks and still keeping it mobile friendly without creating a screen full of options with several scrolls needed to reach the actual search, but I agree the goal should be less-actions.

I think once I have a bit of a grasp on the project I'll try and submit my suggestion.

[–] nutomic@lemmy.ml 3 points 1 day ago (1 children)

The tabs could make sense, but then they should be between the search bar and results, because each tab has the same buttons. You can make a pull request with what you have so far and then we can discuss it in detail.

[–] Lazycog@sopuli.xyz 2 points 1 day ago (1 children)

Ah good point!

I'll hopefully manage to set up lemmy-ui locally at home after work and make that pull request - I edited that in with webdev tools since didn't want to lose that thought before I get home (sorry if this just pollutes the discussion).

[–] nutomic@lemmy.ml 2 points 1 day ago (1 children)

No worries. Make sure to follow the documentation on join-lemmy.org for development, and use the release/v0.19 branch for both lemmy and lemmy-ui as the main branch is currently broken due to 1.0 changes.

[–] Lazycog@sopuli.xyz 2 points 1 day ago

Will do, thank you!

[–] Die4Ever@retrolemmy.com 3 points 1 day ago (1 children)

I think if you do this, then the tabs for communities, users, and URL would no longer have the drop down to choose community because it's meaningless for them. They probably wouldn't have the "Top All Time" filter either. There could probably be more differences for each tab, maybe this is the way to go.

[–] Lazycog@sopuli.xyz 3 points 1 day ago

Yeah there's a lot to consider here, good points. The language specific texts too to make it more search selection context based. This would need to be thought through to not make it more confusing.

[–] Die4Ever@retrolemmy.com 3 points 1 day ago (1 children)

As far as I remember, the loading indicator disappears when the local search is finished and the search appears to be done, even when the remote search is continuing. This makes finding a new remote community pretty awkward.

[–] nutomic@lemmy.ml 5 points 1 day ago

Right, this is because it currently uses two separate api calls for search and resolve object. It will be fixed in 1.0 with https://github.com/LemmyNet/lemmy/pull/5752.

[–] geneva_convenience@lemmy.ml 1 points 1 day ago (1 children)

When resizing Lemmy in browser to half screen by dragging it to the side my top bar with communities and create post dissapears.

[–] Die4Ever@retrolemmy.com 2 points 1 day ago (1 children)

have you tried clicking the hamburger menu in the top right?

[–] geneva_convenience@lemmy.ml 2 points 20 hours ago (1 children)

Ah thanks there it is. I thought it would be next to the other big buttons

[–] Die4Ever@retrolemmy.com 1 points 19 hours ago (1 children)

I have taken a bit to realize this before too. Maybe the hamburger button could be highlighted better when the page is in that narrow layout?

[–] geneva_convenience@lemmy.ml 1 points 19 hours ago

I think the communities button is especially important because it's mainly how I navigate Lemmy. Create post is handy too. Create community not really.

@Nutomic can we get these buttons back in smaller view?

[–] ladfrombrad@lemdro.id 1 points 1 day ago* (last edited 1 day ago) (1 children)

One of my most favourite things was watching the wizards over in r/BotDefense killing shitbots enmass via the open API weddit had until spez got even more greedy.

I know it's not directly tied to what you're asking via the UI, but I am interested in how you could help some of those excellent bot hunters of day gone yonder.

<3

[–] nutomic@lemmy.ml 3 points 1 day ago

Lemmy has an open API, and instance admins have even more data available by accessing the database directly. One of the lemmy.world admins is also working on a feature for vote analytics, though at Lemmy's current size it seems very low priority.

[–] Sandouq_Dyatha@lemmy.ml -4 points 1 day ago

add a big button that says "kill this redditor" you just press it and lemmy assassins kill the guy... Also add lemmy gold.