Run external process from kate script?
My use cases are
- kate script calling one-off external processes and adding their output to the document
- kate script interacting with long running processes through stdin-stdout
Ideally if V4 (QJSEngine) supported wasm and kate scripts allowed loading wasm files, I would have compiled my external libraries into wasm and used them from a script.
Case 1: I could partly make do by using Kate external tools to select text, pass them into the external process and paste the stdout into the document but I also need more fine grained access to the document.
Case 2: On the surface, this looks like it could have been an lsp but implementing the lsp protocol for tiny use cases is overkill for when a use case is too simple for lsp and too complex to be purely implemented in javascript - like a script that automatically adds docstrings to functions by calling chatgpt.