Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: synonyms for icon names #40

Open
jakamusic opened this issue Dec 15, 2022 · 4 comments
Open

Feature request: synonyms for icon names #40

jakamusic opened this issue Dec 15, 2022 · 4 comments

Comments

@jakamusic
Copy link

Description

It would be super helpful for the plugin to be able to find icons based on a set of synonyms.

Example

in Fluent UI the X icon is called dismiss but to be able to find it also by exit, times, close ...

Implementation idea

Define a set of synonyms for all icon packs to be the same and then compare search term with names and alternatives (connected words), it is a lot of effort though.

Possible issues

With this approach, some icons that do not fit the search terms could be displayed - but is it better to show too many sometimes with one of them being correct or to always show just the exact match?

Possible solution for this issue: a setting to search literally or expanded.


I understand this is a BIG feature request, but it's just something I've been thinking of for a while.

@cyberalien
Copy link
Member

Problem with that is list of synonyms needs to be created and maintained. This cannot be a generic dictionary, it needs to be specific to icons.

That is not a simple task. If there is a library or something that can be used for it, I can try integrating it in search engine, but otherwise there is very little chance of this happening due to time constraints.

@jakamusic
Copy link
Author

Yep, though so. Yeah, the issue with a library would be that those are not necessarily synonyms per-se, more like alternative words designer use.

I'm just thinking here, but what if we were to do a dictionary for the most used icons like:

Trash: bin, can
Dismiss: cancel, remove, exit, times, close
Plus: add
...

One other thing I'm thinking about is, some of the icon providers have their own websites with search, which works in a similar fashion to what I'm describing.

For example if you search for remove on IonIcons it also shows icon called close. Same for Hero icons.

I'm not sure how you implement icon packs, but if that's maybe something to consider, that some of them are already doing it?

@cyberalien
Copy link
Member

Yes, some icon sets do have that data, but it is specific to that icon set. Those keywords might not be suitable for other icons and it won't have keywords for icons not in icon set.

It probably can be used as base for dictionary, but there is still an issue of maintenance. Those lists can only be used as base, not as full dictionary because they are not complete.

@jakamusic
Copy link
Author

Completely understand. I'll keep my eyes peeled and keep thinking of a better and more maintainable approach than the ones above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants