antfu / vscode-iconify

🙂 Iconify IntelliSense for VS Code
https://marketplace.visualstudio.com/items?itemName=antfu.iconify
MIT License
453 stars 33 forks source link

feat: allow for aliasing icons #70

Closed RebeccaStevens closed 3 months ago

RebeccaStevens commented 5 months ago

Description

Allows for aliases to be defined as:

{
  "chevron-left": "ri:arrow-left-s-line",
  "chevron-up": "ri:arrow-up-s-line",
  "chevron-right": "ri:arrow-right-s-line",
  "chevron-down": "ri:arrow-down-s-line",
  // ...
}

Aliases can either be defined in the settings.json or (inclusive) in linked JSON files.

Additionally, users can opt-in to ignoring unaliased icons.

Linked Issues

fix #58

Additional context

Adds options:

RebeccaStevens commented 4 months ago

@antfu Sorry for the ping, I know you must be busy; just didn't want this to be forgotten about.

antfu commented 4 months ago

I am not sure if it's necessary to introduce so many options. Also, I think manually listing all icons one to one might be a scalable solution. I think we should better have a more generalized design.

RebeccaStevens commented 4 months ago

I am not sure if it's necessary to introduce so many options.

listing all icons one to one might be a scalable solution

I assume you meant "might not be a scalable solution".

Listing all icons one to one is what my use case calls for so I would like to have this option. Also there's already the customCollectionIdsMap for aliasing full collections.