Hacker News new | ask | show | jobs
by omtose 3477 days ago
Some answers as a user:

No scripting language, most of the heavy lifting done in plugin is through shell calls (asynchronously or not). Example here [1]. I personally think that it's kinda hard to grok to be honest.

Thanks to the client server architecture, it is possible to make an external UI[2].

There is no line wrapping currently. Don't know about long documents, but the editor in general is very efficient.

[1] https://github.com/mawww/kakoune/blob/master/rc/core/grep.ka...

[2] https://github.com/mawww/kakoune/blob/master/doc/json_ui.asc...

1 comments

What is your 1st example exactly? I mean, if Kak doesn't come with a scripting language, then what language is that exactly?

This is an important note to me, because i imagine i'll have to implement my own tools for common language tasks like Gofmt and Goimport.

Honestly, it would be cool if i could write plugins in any language i want, ie if it fully uses a backend editor server API.

They are just command that you could execute manually (using ':' like in vim). The difference is that all the commands in this file are executed at startup.

As I said, all the heavy lifting is done in scopes like %sh{ ... }. This way you can actually use any language you want, and it's only the piping you have to do through kakoune commands.

Most common languages (like go) already have plugins to do some basic tasks like formatting.

If you're interested in the editor, I would rather recommend reading the readme of the project[1]. There is a lot to read, and you can start making plugins once you understand it.

[1] https://github.com/mawww/kakoune

Yea i'm definitely going to try this out. Thanks!