mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 00:42:13 +03:00
Replace uses of socat with kak -p <session>
This commit is contained in:
parent
11c62e583c
commit
30093413f7
@ -23,7 +23,7 @@ def clang-complete %{
|
|||||||
for cmp in ${output}; do
|
for cmp in ${output}; do
|
||||||
completions="${completions}:${cmp}"
|
completions="${completions}:${cmp}"
|
||||||
done
|
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 &
|
) >& /dev/null < /dev/null &
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ def tag-complete %{ eval -draft %{
|
|||||||
compl=${compl//:/\\:}
|
compl=${compl//:/\\:}
|
||||||
compl=${compl//$'\n'/:}
|
compl=${compl//$'\n'/:}
|
||||||
compl="${kak_cursor_line}.${kak_cursor_column}+${#kak_selection}@${kak_timestamp}:${compl}"
|
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 & }
|
) >& /dev/null < /dev/null & }
|
||||||
}}
|
}}
|
||||||
|
|
||||||
@ -69,6 +69,6 @@ def gentags -docstring 'generate tag file asynchronously' %{
|
|||||||
else
|
else
|
||||||
msg="tags generation failed"
|
msg="tags generation failed"
|
||||||
fi
|
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 & }
|
) >& /dev/null < /dev/null & }
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ def -shell-params git %{ %sh{
|
|||||||
echo "eval -client '$kak_client' %{
|
echo "eval -client '$kak_client' %{
|
||||||
try %{ addhl flag_lines magenta git_blame_flags }
|
try %{ addhl flag_lines magenta git_blame_flags }
|
||||||
set buffer=$kak_buffile 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 authors
|
||||||
declare -A dates
|
declare -A dates
|
||||||
send_flags() {
|
send_flags() {
|
||||||
@ -51,7 +51,7 @@ def -shell-params git %{ %sh{
|
|||||||
for (( i=1; $i < $count; i++ )); do
|
for (( i=1; $i < $count; i++ )); do
|
||||||
flag="$flag:$(($line+$i))|black|$text"
|
flag="$flag:$(($line+$i))|black|$text"
|
||||||
done
|
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
|
git blame --incremental $kak_buffile | ( while read blame_line; do
|
||||||
if [[ $blame_line =~ ([0-9a-f]{40}).([0-9]+).([0-9]+).([0-9]+) ]]; then
|
if [[ $blame_line =~ ([0-9a-f]{40}).([0-9]+).([0-9]+).([0-9]+) ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user