Skip to content

Description / Alternate Names For Better Searching #1

@Michael2MacDonald

Description

@Michael2MacDonald

It would be nice if you added a description or list of alternate names so that if you know a name of an emoji but not the name that GitHub uses, you can still find it with ctrl+f
For example:
I had a hard time finding the 🎯 :dart: emoji because emojipedia.org/direct-hit lists these possible names:

  • Direct Hit
  • Archery
  • Bullseye
  • Darts

I copied and pasted all of these but I could not find :dart:. If I had typed each name instead of pasting them, then :dart: would have come up while typing 'darts', but it would be nice to be able to just copy/paste any of the names and find the emoji fast.

Here is an example of a list that kind of solves this because the descriptions are usually another common name for the emoji, but a list of every possible name would be the best.
https://vicancy.github.io/emoji/

I am sure there is an API you could use to get a list of all the names. Then you just add the list to each emoji.
The issue with this is that it might make the page messy looking but I had an idea that might or might not be possible:
Make each emoji line into a dropdown (using <details> and <summary> HTML tags) and put the list as the drop-down content.
The issue is that you can't search text that is in a collapsed dropdown with ctrl+f. I thought I could display a second (identical) list of names that would be invisible but searchable because it would be outside the dropdown. The issue is that GitHub scrubs the html so you can't use styles and some HTML tags and attributes.
If someone can find a way to make invisible text that can be searched using ctrl+f and that works within Github's limits then that would be amazing.
Here are the limits:
https://github.com/gjtorikian/html-pipeline/blob/main/lib/html/pipeline/sanitization_filter.rb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions