Name/value pairs for config.setting.enum?


#1

Is it possible to pass name/value pairs to the enum property of a package’s setting? Something like this?

config:
  someSetting:
    type: 'integer'
    default: 0
    enum:
      name1: 0
      name2: 1
      name3: 2
      # etc

Then atom.config.get 'package.someSetting' would return 0 if the user has selected name1 in the select box.