Kate Snippets
Various KDE Extensions
Score 72%
Description:

A plugin for the KDE editor Kate providing smart text snippets.
Simply doubleclick on snippet to get it inserted into your current code.

Small, but extremely useful :-)


Installation:

make -f Makefile.cvs
./configure
make
make install (as root)

Kate -> Settings -> Configure Kate -> Plugins
Last changelog:

12 years ago

The plugin made its way into the KDE CVS (kdeaddons/kate/snippets)

The plugin is now officially included in KDE3.4 (package kdeaddons)

dirklindner

9 years ago

I like this plugin,
but it is better for me if
the snippets stored in separates files.
So i make a few changes for this plugin which do that .
http://lindnerei.de/downloads/kate-plugins-snippet.tar.gz
this changes are based on the plugin
from kdeaddons-3.5.4.
The snippets will be stored into
$home/snippets

Greets Dirk

Report

philipacamaniac

12 years ago

Really like your plugin.

However, in most other advanced text editors (on other platforms), a "Clip Library" organizes what you call Snippets into libraries, or books.

If we could implement that functionality, that would complete this nearly-perfect plugin. And then add the ability to import/export SnippetBooks rather than individual Snippets. Custom SnippetBooks could be uploaded to kde-files.org or someplace.

Here is an example - I download an XHTML SnippetBook from kde-files.org, and import the Book into the Snippet plugin. Now I choose XHTML Tags from a dropdown menu within the Snippet Sidebar, and viola! I'm shown a list of tasty valid XHTML tags to use at my disposal.

SnippetBook ideas (anyone could make these and upload them if the functionality was there):

XHTML Tags
HTML Character Entities
CSS Tags
CSS Color Codes
W3C Doctype Declarations
Regular Expressions
C++
Javascript
etc, etc...

I'll take a look at the code to see if I can conjur up the feature. If I can, I'll send you the code.

SCREENSHOT (MOCKUP ONLY): http://www.philipandjenny.com/wp-content/SnippetBooks.png

Report

philipacamaniac

12 years ago

Vote for this additional feature: http://bugs.kde.org/show_bug.cgi?id=106582

Report

venson

12 years ago

I've packaged an RPM and emailed it to the author. Hope more people use it. :)

Report

sodamnmad

12 years ago

that seems sweet! i'm gonna check it out when i get home

Report

brockers

12 years ago

Ya, I can see this as trouble... I am already wondering how I could have live without it. Any chance that you have a handy way to export our snipplets so we don't have to re-create them for every machine.

Bobby

Report

C

Erdling

12 years ago

Right now there's no im-/export for the snippets.
But an easy way to copy snippets is by copying "~/.kde/share/config/katesnippetspluginrc"

Report

C

Erdling

12 years ago

The plugin made its way into the KDE CVS (kdeaddons/kate/snippets)

Report

SubAtomic

12 years ago

I wasn't sure how useful this would be when I first looked at it but now having used it a little I can say that this is an excellent add on. Well done.

Report

cullmann

12 years ago

hi,
even in the current state (without using kate's template stuff), it seems really usable for quick'n'dirty snippet managment, do you want to add it to kdeaddons as kate plugin and maintain it there?

Report

C

Erdling

12 years ago

Yes sure, adding it to kdeaddons was my plan :-)

Report

yurkjes

12 years ago

Kate in CVS has a new template system. I believe the current shortcut is ctrl+shift+alt+T :). It tries to follow the same template definitions used in eclipse. If you use a custom implementation to do this yourself, perhaps you can rework it to use the new template system which means your work can get accepted into Kate itself :)

I haven't had a chance to play with it yet but I hear it also lets the user TAB around the various inputs required for the template. So you might have something like if ($condition) { ... } and when you insert it, the $condition part is automatically highlighted etc...

Report

Superstoned

12 years ago

I'd like to have a .deb :D

and other projects have several files, so it SHOULD be possible...

tnx for the work!

Report

C

Erdling

12 years ago

they indeed have several files, but only one is allowed to be hosted here.
all the other files are lying around elsewhere.

Report

C

Erdling

12 years ago

Hi, there is also a generic rpm and a source rpm available (thanks to Satish)
But one can only upload one file per project here...
So please let me know if you want them,too.

Report

C

Erdling

12 years ago

Hi, there is also a generic rpm and a source rpm available.
But one can only upload one file per project here...
So please let me know if you want them,too.

Report

12 years ago

The plugin made its way into the KDE CVS (kdeaddons/kate/snippets)

The plugin is now officially included in KDE3.4 (package kdeaddons)

product-maker 38 106

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.2
updated Apr 25 2005
added Sep 21 2004
downloads today
0
page views today 0