atom / snippets

Atom snippets package
MIT License
205 stars 100 forks source link

Selection don't match snippet #223

Closed joseramonc closed 6 years ago

joseramonc commented 7 years ago

With this snippet:

'label_field':
  'prefix': 'fl'
  'body': '<%= f.label :${1:field}${2:, class: "${3:control-label}"} %>$0'

The $2 Selection works as expected when I don't input anything in $1, but when I type something in $1, $2 selects more than specified in body.

Expected $2 selection when $1 change:

screen shot 2016-11-11 at 2 39 17 pm

Acutal $2 selection when $1 change (I typed field):

screen shot 2016-11-11 at 2 39 27 pm

50Wliu commented 6 years ago

Thanks for taking the time to contribute!

We noticed that this is a duplicate of #15. You may want to subscribe there for updates.

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.

For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.