this post was submitted on 07 Mar 2024
18 points (100.0% liked)

hexbear

10261 readers
2 users here now

Now that the old Hexbear fork has been officially abandoned, this community will be used as a space for meta-discussion on the site itself.

founded 4 years ago
MODERATORS
 

for example when I type :cringe and it opens the menu for me to browse, it pulls up like 200 emotes most of which don't even have half of the word cringe in them, just way, way too many results so I couldn't find the ones actually tagged with the keyword. Am I doin something wrong?

Love the new system, thanks so much for the hard work! I think something in the searching algorithm is a bit loose? I don't know how to code in the slightest so idunno but something sure isn't right

all 11 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 8 months ago* (last edited 8 months ago)

The autofill popup definitely has some bugs especially on mobile and with so many more emotes all with their own tags in the system. Buuuuut, at least on desktop, typing :cringe is showing me things with exact title or tag matches first (the first 7 results) and then it descends into gibberish partial word/letter combo matches, which is annoying but I think expected?

If there is an issue, from what I've seen, its weird rendering on mobile, and possibly not starting scrolled to the top of the list, landing people in the middle of the gibberish results to start with instead. Does that line up with what you're seeing?

If anyone wants to look into it, we are using this library: https://github.com/zurb/tribute Calling it here: https://github.com/hexbear-collective/lemmy-ui/blob/1787a778f8cf01fb1b00262e44ae8e49f9b3ccc1/src/shared/markdown.ts#L335

Looks like we aren't setting a maximum for how many items it should load. I think it would be reasonable to do that.

[–] [email protected] 4 points 8 months ago

Yeah i noticed that when i implemented it; The js library for the inline emojis has a search functionality, and it basically finds all emojis with name/keywords that contains the letters that you are searching for, and ranks them as most matching to least. So searching 'cringe' will search for all emojis that have the letters 'c' 'r' 'i' ..., with the top ranked emojis having the most letters and in typed order.

I tried to work around it a bit but the library doesn't have any hooks for it as far as i saw.

[–] [email protected] 4 points 8 months ago* (last edited 8 months ago) (1 children)

Oh! One thing I didn't mention that I would be remiss not to: Use the emoji mart by clicking on the little smiley face at the top of the text entry box. It has better search, but displays the emotes very tiny. Totally separate system from the autocomplete popup deal I discuss in my other comment

[–] [email protected] 3 points 8 months ago (1 children)

it displays it too tiny for me, hard to see what Im looking for, thanks for mentioning though!

[–] [email protected] 1 points 8 months ago

I wonder if there's a way to make these display a little bit larger?

[–] [email protected] 1 points 8 months ago (1 children)

I've always gotten very little - cough - feedback when I've posted in c/feedback. I guess c/hexbear is always where the party is.

[–] [email protected] 1 points 8 months ago (1 children)

I don't even think it exists anymore? I looked and didn't see it, maybe I'm silly

[–] [email protected] 1 points 8 months ago (1 children)
[–] [email protected] 1 points 8 months ago (1 children)

I did that, I guess I must have typod somehow lmfao

[–] [email protected] 1 points 8 months ago

Search can be awful. I regularly get false negatives. It drives me batty.