snippets icon indicating copy to clipboard operation
snippets copied to clipboard

Multiple snippets, same prefix

Open willdady opened this issue 11 years ago • 4 comments

Would be great if it was possible to create multiple snippets with the same prefix which presented a dropdown of the matching snippets upon pressing tab.

Sublime currently behaves this way (though you don't even need to press tab). For example in Sublime if I start typing "backbone" the autocomplete dropdown presents me with the various snippets I have for creating backbone.js Views, Models etc... I don't need to remember a different prefix for each.

willdady avatar May 11 '14 06:05 willdady

:+1:

7even avatar Jun 19 '14 10:06 7even

Any news? This is a limitation of snippets functionality, currently atom shows only last one from the list of snippets with the same prefix.

Ok, adding different numbers of spaces in the prefix keyword almost solves this issue - I can see a list with "the same" snippet prefixes and with different descriptions and bodies. almost - one needs now to count number of spaces in each same-prefix-snippet?

zmiimz avatar May 06 '16 14:05 zmiimz

I'd also like to see this enhancement happen. +1

ZelphirKaltstahl avatar Sep 20 '16 11:09 ZelphirKaltstahl

I'm pretty sure this is a limitation of the CSON parser, which only returns the last value for a given key.

winstliu avatar Oct 24 '17 22:10 winstliu