this post was submitted on 11 Sep 2024
27 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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
limitations of the emoji picker library, unfortunately. can only give it a list of strings to search through.
would adding "kelly" to the tags of :kelly: do it you think? it would double match then
I also am seeing in the code that we seem to put the keywords first in the array of strings for a given emote:
return [...customEmoji!.keywords.map(y => y.keyword), customEmoji!.custom_emoji.shortcode].join(',');
Maybe re-ordering that to put shortcode first would help? I haven't used that library so idk
Or maybe the library just does "once there's an exact match shrug your arms and sort it alphabetically". shit
yeah iirc, it just tries to match it the best it can and sort alphabetically.