summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-03-02 02:08:17 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-03-02 02:08:17 +0000
commit4ba99f7d6f7b36ebecd397315dc225655391e2cb (patch)
treec8e2f34c92fd4c06d8870f8a741113f6c24f9941
parent30093413f797074d1d5a4ef5878540a3bfc5ad3e (diff)
Update documentation
-rw-r--r--README.asciidoc3
-rw-r--r--doc/interfacing.asciidoc4
2 files changed, 4 insertions, 3 deletions
diff --git a/README.asciidoc b/README.asciidoc
index ed79004e..e0801da6 100644
--- a/README.asciidoc
+++ b/README.asciidoc
@@ -55,7 +55,6 @@ Kakoune dependencies are:
* boost (>= 1.50)
* ncurses with wide-characters support (>= 5.3, generally refered as libncursesw)
* bash (kak scripts use some bash specific features)
- * socat (used by kak scripts to write to kak control socket)
To build, just type *make* in the src directory
@@ -100,6 +99,8 @@ Just running *kak* launch a new kak session with a client on local terminal.
the session name to be specified with -s. In this mode, the Kakoune
server will keep running even if there is no connected client, and
will quit when receiving SIGTERM.
+ * +-p <session>+: read stdin, and then send its content to the given session
+ this way kak act as a remote control.
At startup, if +-n+ is not specified, Kakoune will try to source the file
../share/kak/kakrc relative to the kak binary. This kak file will then try
diff --git a/doc/interfacing.asciidoc b/doc/interfacing.asciidoc
index e636ccea..328357f9 100644
--- a/doc/interfacing.asciidoc
+++ b/doc/interfacing.asciidoc
@@ -28,7 +28,7 @@ For example, we can echo a message in Kakoune in 10 seconds with:
:nop %sh{ (
sleep 10
echo "eval -client '$kak_client' 'echo sleep ended'" |
- socat stdin UNIX-CONNECT:/tmp/kak-${kak_session}
+ kak -p ${kak_session}
) >& /dev/null < /dev/null & }
----
@@ -118,6 +118,6 @@ nop %sh{ ( # launch a detached shell
completions="$line.$column@$kak_timestamp:$candidates"
# write to Kakoune socket for the buffer that triggered the completion
echo "set buffer=${kak_bufname} completions '$completions'" |
- socat stdin UNIX-SOCKET:/tmp/kak-${kak_session}
+ kak -p ${kak_session}
) >& /dev/null < /dev/null & }
-----