Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Multiple snippets, same prefix #43

Open
willdady opened this issue May 11, 2014 · 4 comments
Open

Multiple snippets, same prefix #43

willdady opened this issue May 11, 2014 · 4 comments

Comments

@willdady
Copy link

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.

@7even
Copy link

7even commented Jun 19, 2014

👍

@zmiimz
Copy link

zmiimz commented May 6, 2016

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?

@ZelphirKaltstahl
Copy link

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

@50Wliu
Copy link
Contributor

50Wliu commented Oct 24, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants