
Kate Snippets
Various KDE 1.-4. Improvements
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
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
15 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)
15 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
13 years ago
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
15 years ago
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
15 years ago
Report
venson
16 years ago
Report
sodamnmad
16 years ago
Report
brockers
16 years ago
Bobby
Report
Erdling
16 years ago
But an easy way to copy snippets is by copying "~/.kde/share/config/katesnippetspluginrc"
Report
Erdling
16 years ago
Report
SubAtomic
16 years ago
Report
cullmann
16 years ago
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
Erdling
16 years ago
Report
yurkjes
16 years ago
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
16 years ago
and other projects have several files, so it SHOULD be possible...
tnx for the work!
Report
Erdling
16 years ago
all the other files are lying around elsewhere.
Report
Erdling
16 years ago
But one can only upload one file per project here...
So please let me know if you want them,too.
Report
Erdling
16 years ago
But one can only upload one file per project here...
So please let me know if you want them,too.
Report