RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
727 stars 114 forks source link

Custom filenames pattern #27

Closed osipxd closed 3 years ago

osipxd commented 3 years ago

It would be great to have the possibility to customize the filenames pattern.
It can be done with capture group references. Something like:

common:
  icons:
    nameRegex: '^(\d\d) \\ ([A-Za-z0-9 ]+)$'
    filename: 'icon_$2_$1'

32 \ Profile -> icon_profile_32