KDevelop E-snippets

Robert Gruber R.Gruber at gmx.net
Fri Mar 23 07:32:44 UTC 2007


Hello!

-------- Original-Nachricht --------
Datum: Thu, 22 Mar 2007 22:51:09 +0100
Von: Michal \'vorner\' Vaner <vorner at ucw.cz>
An: kdevelop-devel at barney.cs.uni-potsdam.de
Betreff: KDevelop E-snippets

> resending this from GSOC web app (requested):
> 
> > Oleksandr Dymo wrote:
> > I guess the source for inspiration was this wishlist entry:
> > http://bugs.kde.org/show_bug.cgi?id=106165 right?
> 
> Partly. There was a link from the google summer of code ideas
> for KDE.
> 
> > While the idea of snippets sounds good, I have the impression
> > that snippet support as it was in KDevelop3 was not frequently
> > used.
> >
> > Could you please prepare a list of use-cases for your extended
> > snippet features? And it would also be cool to hear your ideas
> > on how to make people actually use snippets. In KDevelop4 we
> > started to work hard to make our features more easier and more
> > valuable at the same time. So I think it would be great if snippet
> > support would follow this trend.
> 
> Personaly, I do not see need for them, but the bug has favorite vote
> on it, so there are some people who want to use that. So I thought
> I might enjoy writing it for them. (for the use cases, ask them,
> please - but you could probably save your often used parts of code
> and "borrow" some from friends - if you had some nice variable
> replacements and so, it could be used as kind of static preprocessor).


For KDevelop4 I did a complete rewrite of the snippet plugin. I already  incorporate some of the basic ideas from the upper mentioned bug into KDev4's snippet plugin.

* snippets are stored as plain files on disk (shareable via smb/nfs/...)
* each snippet can have meta information 
* snippet tree allows to filter for snippets based on their meta information
* rewritten the crapy variable replacement from KDev3

As mentioned the whole snippet plugin was rewritten and cleaned up.
So it should be easy to write addidional feature for the snippets. I planed to add some more features from the whishlist, but for sure you're welcome to contribute ;)


If you plan to write any additional features, please forget about KDev3's snippet plugin and take a look at the new one from KDevelop4.

Greets, Robert


-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out




More information about the KDevelop-devel mailing list