Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I reach the shell, web or menu commands from the Kate editor's JavaScript?

You can extend the KDE Kate editor with JavaScript, and control e.g. the undo buffer.

I would like to call e.g. HTML Tidy from inside such a script, but I cannot find any bindings from inside the JavaScript environment to access the shell, the web, the menus or anything else that would make it possible to reach out. It seems to be a completely self contained world, where everything needs to be coded from scratch.

I have made HTML Tidy work as a plain command line script inside Kate, but alas, your undo buffers get destroyed.

like image 697
jeorgen Avatar asked Nov 13 '22 14:11

jeorgen


1 Answers

Look at the text filter plugin. It meets your needs. I use it with a perl script that automatically inserts (and removes) instrumentation into source code.

But a shell would also be very useful. I want to be able to automate various source control activities.

like image 82
Malcolm Boura Avatar answered Nov 16 '22 04:11

Malcolm Boura