mirror of
https://github.com/mawww/kakoune.git
synced 2024-09-11 13:00:41 +03:00
Escaping tweak in git.kak
This commit is contained in:
parent
707904a91b
commit
53d9b9b676
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user