News for hackers. Stuff that matters.
Re:Kakoune Code Editor by lf-non on Tuesday January 18, 2022 @01:19AM (#29975769)
Is the extension language kakounescript documented somewhere ? I am having a hard time finding a reference. I wish they just used lua/js though.
Re:Kakoune Code Editor by raiguard on Tuesday January 18, 2022 @01:33AM (#29975862)
Kak is mostly self-documenting, but there are a few :doc pages that give more detail. Of particular interest are the commands [0] and command parsing [1] pages. Those will get you started.

Kakscript does not have any control flow beyond a simple try/catch mechanism - for anything complex, you use shell scripting [2]. It is both a blessing and a curse - making it extremely easy to integrate with other tools, but causing some pain if you don't know shell scripting already.

[0]: https://github.com/mawww/kakoune/blob/master/doc/pages/comma...

[1]: https://github.com/mawww/kakoune/blob/master/doc/pages/comma...

[2]: https://github.com/mawww/kakoune/blob/master/doc/pages/expan...