Scripting in Kate
by Dominik • 2012-01-21 • Developers, Users • 4 Comments
Since several releases, Kate Part has scripting support through javascript. So far, it seems it is not much used by users. Still, I stumbled over two extensions:
If you have more user defined scripts, it would be nice if you let us know! For KDE5, we plan to extend this, so applications like Kile or KDevelop can reuse Kate’s internal code.
On another note, here is a nice blog about the upcoming KDE 4.8 release
I could need the scripting functionality if it was possible to invoke an external script, push some text (e.g. the current selection) via STDIN into it and do something with the STDOUT output of the script, e.g. replace the current selection. AFAIK this is not possible with kate scripting. So I am using medit for such things.
No just KDevelop and Kile, every text field / label / lineedit / textedit / textbrower / webkit. KDE need an equivalent to Android Linkify subsystem. This would be great. There was a GSOC for that a while ago, but (i) had to give up because of internal conflict between using QtQuick/JS or KROSS. Then once it was sorted out (the final decision was that we would need two complete, competing system!?!?, I was against Kross), I had no time left and had to give up and find a real job. But that was some years ago. Having regex based text trigger and other script to kaction goodies would still be awesome for mobile and powerusers.
Why is the Kate manual not available online on the website?
It would help google and me a lot
http://docs.kde.org/stable/en/kde-baseapps/kate/index.html