shopware6-phpstorm-plugin icon indicating copy to clipboard operation
shopware6-phpstorm-plugin copied to clipboard

sw-icon autocomplete

Open zaifastafa opened this issue 2 years ago • 3 comments

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.

zaifastafa avatar Oct 07 '21 04:10 zaifastafa

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)

PheysX avatar Oct 07 '21 07:10 PheysX

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?

shyim avatar Oct 13 '21 22:10 shyim

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

PheysX avatar Oct 14 '21 06:10 PheysX