shopware6-phpstorm-plugin
shopware6-phpstorm-plugin copied to clipboard
sw-icon autocomplete
When using icons such as {% sw_icon 'bag' %} it would be great if an autocomplete can be provided to select the icon from available ones. For admin and storefront too if easily possible.
Great idea, lets dont stop on this point.
We could autocomplete in storefront the style parameter known keys, like:
- pack
- Find all available packs in shopware and plugins, who provide the icon identifier (when the namespace is chosen first, it should be considered)
- namespace
- Find all namespaces, who provide the icon identifier (when the pack is chosen first, it should be considered)
I personally never used sw_icon.
- Where are the files for autocomplete
- Can that path be different per extension?
- What is icon namespace?
- What pack?
Storefront
- Where are the files for autocomplete
-
<Namespace>/src/Resources/app/storefront/dist/assets/icon/<pack>/*.svg
-
- Can that path be different per extension?
- What is icon namespace?
- PluginName like Storefront, FroshTools
- What pack?
- Multiple folders in icon folder to delivier different styles of icons like bold, italic or random names
For more info and further attributes: Docs