Multiple snippets key?


#1

Hey. I’ve just wanted wonderful texteditor like Atom :smile:

I have a question for snippets.
language-javascript ( is default offical package ) indicates follow sentences.

  'getElementById':
    'prefix': 'get'
    'body': 'getElementById(${1:\'${2:id}\'})'
  'getElementsByClassName':
    'prefix': 'get'
    'body': 'getElementsByClassName(${1:\'${2:className}\'})'
  'getElementsByName':
    'prefix': 'get'
    'body': 'getElementsByName(${1:\'${2:name}\'})'
  'getElementsByTagName':
    'prefix': 'get'
    'body': 'getElementsByTagName(${1:\'${2:tagName}\'})'

at this time, prefix ‘get’ has 4 body.
Actually only the last is activated. others doesn’t work!

is it bug or miss?
I wanna choose body from same prefix when necessary :stuck_out_tongue:


#2

Also just noticed as well. Detailed report for Ruby language noted here.


#3

C has also same problem.
it seems atom’s architect problem. thanks you.