Kate snippets

Gerald Senarclens de Grancy gerald at senarclens.eu
Thu Nov 2 14:25:29 UTC 2017


Hi,
I'm trying to create a kate snippet that depends on external data to
automate some of my tasks at work. Is there any way to achieve this?
I'm flexible wrt how the data is provided (eg. as website (ideal), via a
file on http://localhost/ or anywhere in the local file system).
I've found

String read(*String file*);

Will search the given *file* relative to the katepart/script/files
directory and return its content as a string.

on https://docs.kde.org/stable5/en/applications/katepart/dev-scripting.html
but it seems to be restricted (worked for eg.
read('quickcoding/cpp/c.template') or read('../commands/emmet.js'); but not
much further up and didn't work for a file I created in
katepart/script/files for testing purposes.
Any hints are welcome.
Thx, g

-- 
Gerald Senarclens de Grancy
http://senarclens.eu/~gerald/
Open minds on open source!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20171102/bb39cf27/attachment.html>


More information about the KWrite-Devel mailing list