Kate plugin for marking text

Matej Cepl <[email protected]> Sat, 26 Mar 2005 15:30:03 -0500
Newsgroups gmane.linux.debian.user.kde,gmane.comp.kde.devel.kate
Organization Northeastern University, Boston, MA
Message-ID <[email protected]>
Hi,

I would love to have a plugin for kate (katepart? kwritepart?), which wou=
ld
be marking selection in the curly braces based tags. What I mean is that =
i
would like to have a key shortcut which would

 this selected text

change into

 {category}this selected text{/category}

where "category" would be obtained through a dialog box.

I can do this with KVim, but I am getting so unhappy with how vim streche=
s
my brain and this will be probably *a lot of* marking, so I would much
prefer more civilized environment of Kate (no flame intended -- I know an=
d
I have used vim for couple of years -- see the signature of this message =
--
think that I went mad).

Can anybody advice me how to do this with the current kate (Kate: 2.3.2,
KDE: 3.3.2, Qt: 3.3.3) and DCOP-based external scripts? Can I assign a
shortcut to such script?

Or do I have to go for CVS-HEAD kate? Is there a way how to compile just
kate from CVS and leave the rest of my KDE more or less intact? I really =
do
not want to have whole kdebase (or whole KDE for that matter) from CVS, a=
nd
of I do not want to spend a day (or how much time it would take with this
poor 450MHz computer to compile whole KDE) with this.

Thanks for any help,

Mat=ECj

--=20
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
=20
Q: Is vi an easy editor to learn, is it intuitive?
A: Yes, some of us think so. But most people think that we are
   crazy.
    -- vi FAQ


--=20
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]=
.org