tailwindlabs / heroicons

A set of free MIT-licensed high-quality SVG icons for UI development.
https://heroicons.com
MIT License
21.33k stars 1.28k forks source link

[Feature] Search-aliases for the website #282

Closed EtienneBruines closed 3 years ago

EtienneBruines commented 3 years ago

As an example: I'm looking for an icon to offer multiple languages in my application. So I search for "language", "international", and no results. Only after a while, I attempt to search for "translate" -- at which point I actually end up finding the icon.

It would be nice if the search at https://heroicons.com/ would also show me the translate icon (which is the only valid name for the icon) if I searched for things like language.

(I am not proposing to actually allow LanguageIcon and TranslateIcon to result in the same icon when using in e.g. Vue; even though that might be nice, the scope of this issue is only to allow fuzzy searching by means of aliases.)


Update: apparently document shows up when searching for pdf. Interesting...

EtienneBruines commented 3 years ago

Found it!

https://github.com/tailwindlabs/heroicons.com/blob/master/src/data/tags.js