Replace uses of socat with kak -p <session>

This commit is contained in:
Maxime Coste 2014-03-02 02:05:38 +00:00
parent 11c62e583c
commit 30093413f7
3 changed files with 5 additions and 5 deletions

View File

@ -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 &
}
}

View File

@ -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 & }
}

View File

@ -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