From 30093413f797074d1d5a4ef5878540a3bfc5ad3e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 2 Mar 2014 02:05:38 +0000 Subject: [PATCH] Replace uses of socat with kak -p --- rc/clang.kak | 2 +- rc/ctags.kak | 4 ++-- rc/git-tools.kak | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rc/clang.kak b/rc/clang.kak index 3b840d8d..25bb3ad9 100644 --- a/rc/clang.kak +++ b/rc/clang.kak @@ -23,7 +23,7 @@ def clang-complete %{ for cmp in ${output}; do completions="${completions}:${cmp}" done - echo "eval -client $kak_client %[ echo completed; set buffer completions '${completions}' ]" | socat -u stdin UNIX-CONNECT:/tmp/kak-${kak_session} + echo "eval -client $kak_client %[ echo completed; set buffer completions '${completions}' ]" | kak -p ${kak_session} ) >& /dev/null < /dev/null & } } diff --git a/rc/ctags.kak b/rc/ctags.kak index bfc0c2fc..b68c7a48 100644 --- a/rc/ctags.kak +++ b/rc/ctags.kak @@ -33,7 +33,7 @@ def tag-complete %{ eval -draft %{ compl=${compl//:/\\:} compl=${compl//$'\n'/:} compl="${kak_cursor_line}.${kak_cursor_column}+${#kak_selection}@${kak_timestamp}:${compl}" - echo "set buffer=$kak_bufname completions '${compl}'" | socat -u stdin UNIX-CONNECT:/tmp/kak-${kak_session} + echo "set buffer=$kak_bufname completions '${compl}'" | kak -p ${kak_session} ) >& /dev/null < /dev/null & } }} @@ -69,6 +69,6 @@ def gentags -docstring 'generate tag file asynchronously' %{ else msg="tags generation failed" fi - echo "eval -client $kak_client echo -color Information '${msg}'" | socat -u stdin UNIX-CONNECT:/tmp/kak-${kak_session} + echo "eval -client $kak_client echo -color Information '${msg}'" | kak -p ${kak_session} ) >& /dev/null < /dev/null & } } diff --git a/rc/git-tools.kak b/rc/git-tools.kak index 8fbb51e6..71cd410c 100644 --- a/rc/git-tools.kak +++ b/rc/git-tools.kak @@ -41,7 +41,7 @@ def -shell-params git %{ %sh{ echo "eval -client '$kak_client' %{ try %{ addhl flag_lines magenta git_blame_flags } set buffer=$kak_buffile git_blame_flags '' - }" | socat -u stdin UNIX-CONNECT:/tmp/kak-${kak_session} + }" | kak -p ${kak_session} declare -A authors declare -A dates send_flags() { @@ -51,7 +51,7 @@ def -shell-params git %{ %sh{ for (( i=1; $i < $count; i++ )); do flag="$flag:$(($line+$i))|black|$text" done - echo "set -add buffer=$kak_buffile git_blame_flags %{${flag}}" | socat -u stdin UNIX-CONNECT:/tmp/kak-${kak_session} + echo "set -add buffer=$kak_buffile git_blame_flags %{${flag}}" | kak -p ${kak_session} } git blame --incremental $kak_buffile | ( while read blame_line; do if [[ $blame_line =~ ([0-9a-f]{40}).([0-9]+).([0-9]+).([0-9]+) ]]; then