atom / snippets

Atom snippets package
MIT License
204 stars 102 forks source link

Sometimes they work, sometimes they don't #156

Closed arielnoname closed 9 years ago

arielnoname commented 9 years ago

I've tried different ways.

They work just after been coded, for 1 or two times and then they stop working. I've tried different ways (examples):

'.text.html, .text.php':
  'Image PlaceHolder':
    'prefix': 'nnplaceholder'
    'body': '<img src="http://placehold.it/500x200">'

'*':
  'Image PlaceHolder':
    'prefix': 'nnplaceholder'
    'body': '<img src="http://placehold.it/500x200">'

'.text.html.basic,  .text.html.php':
  'Image PlaceHolder':
    'prefix': 'nnplaceholder'
    'body': '<img src="http://placehold.it/500x200">'

'text.html.basic,  text.html.php':
  'Image PlaceHolder':
    'prefix': 'nnplaceholder'
    'body': '<img src="http://placehold.it/500x200">'

I don't know if anyone has the same issue

lee-dohm commented 9 years ago

How about just:

'.text.html':
  'Image Placeholder':
    'prefix': 'nnplaceholder'
    'body': '<img src="http://placehold.it/500x200">'

Also you realize that CSON works much like JSON in that it is an object notation and when you redefine a key, it overwrites any previous value? So if you have this:

'.text.html, .text.php':
  'Image PlaceHolder':
    'prefix': 'nnplaceholder'
    'body': '<img src="http://placehold.it/500x200">'
'.text.html, .text.php':
  'Some other snippet':
    'prefix': 'something'
    'body': 'somestuff'

The only snippet you'll see is "Some other snippet".

arielnoname commented 9 years ago

You are my sunshine