From 4ba99f7d6f7b36ebecd397315dc225655391e2cb Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 2 Mar 2014 02:08:17 +0000 Subject: [PATCH] Update documentation --- README.asciidoc | 3 ++- doc/interfacing.asciidoc | 4 ++-- 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 +: 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 & } -----