connect.kak is also a framework for developing your own plugins.
Integration with other applications usually comes from writing a small program,
typically a shell script, and prefixed with : (e.g. :dolphin
) by convention.
Plugins can register their paths to the connect_paths
option to add their utilities,
and the same programs can be called inside Kakoune using the >
or $
commands (e.g. > :yank-ring
).
Usually, plugin authors also provide a Kakoune command for them (e.g. yank-ring
).
The basic commands for plugin crafting are:
:send
: Send commands to the client.:attach
: Reattach to the session.:get
: Get a value from a client. Example::get -quoting shell %val{selections}
.