1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-08-16 16:20:38 +03:00

Escaping tweak in git.kak

This commit is contained in:
Maxime Coste 2024-02-06 20:50:14 +11:00
parent 707904a91b
commit 53d9b9b676

View File

@ -166,16 +166,16 @@ define-command -params 1.. \
mkfifo ${output}
( git "$@" > ${output} 2>&1 & ) > /dev/null 2>&1 < /dev/null
printf %s "evaluate-commands -try-client '$kak_opt_docsclient' '
printf %s "evaluate-commands -try-client '$kak_opt_docsclient' %{
edit! -fifo ${output} *git*
set-option buffer filetype ${filetype}
$(hide_blame)
set-option buffer git_blob %{}
hook -always -once buffer BufCloseFifo .* ''
hook -always -once buffer BufCloseFifo .* %{
nop %sh{ rm -r $(dirname ${output}) }
$(printf %s "${on_close_fifo}" | sed "s/'/''''/g")
''
'"
$(printf %s "${on_close_fifo}" | sed s/\'/\'\'/g)
}
}"
}
hide_blame() {