Convention for naming snippets

Asked by Miek Gieben

Hello,

I'm writing snippets for Go and Puppet, see (https://github.com/miekg/UltiSnips) and I was wondering what
the naming convention was for the snippets.

If you have in the language something called 'package' do you name the snippet 'pkg' or just 'package'?
Another example is: const, do I use 'co' or 'const' or should I use regular expressions to make them both
work?

grtz Miek

Question information

Language:
English Edit question
Status:
Answered
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
SirVer (sirver) said :
#1

Hello Miek!

Great that you plan to contribute. There are no conventions established for UltiSnips; I do not see a big need for them either because there are not many snippets which have an overlap with other languages. I suggest choosing what seems natural for the language at hand, if some inconsistency is introduced, someone will complain and we can fix it iteratively.

Can you help with this problem?

Provide an answer of your own, or ask Miek Gieben for more information if necessary.

To post a message you must log in.