On Tue, 25 Nov 2008 21:15:47 +0100, Colomban Wendling ban-ubuntu@club-internet.fr wrote:
Hey,
I use snippets now for a while with C, but I've recently written a Python script and instinctively tried to complete simple statements like if, else, etc, but it got C-like statements. I think this is very annoying for everyone regular with C snippets falling on a language with a non C-like syntax.
I joined a little patch to add basis of Python snippets (if, else, elif, while…) in data/snippets.conf, but I think there is probably other languages needing this.
I'm not really sure whether we should add snippets for every filetype user reporting. This might lead to a big snippets files with all its disadvantages (longer loading time, harder to maintain, ...). OTOH it might be indeed useful to have some more defaults like those for Python. So I'll add them with the note that we try to keep the default snippets short.
Regards, Enrico