diff --git a/rc/tools/git.kak b/rc/tools/git.kak index d7e25186..80af81e0 100644 --- a/rc/tools/git.kak +++ b/rc/tools/git.kak @@ -167,6 +167,7 @@ define-command -params 1.. \ printf %s "evaluate-commands -try-client '$kak_opt_docsclient' ' edit! -fifo ${output} *git* set-option buffer filetype ${filetype} + $(hide_blame) hook -always -once buffer BufCloseFifo .* '' nop %sh{ rm -r $(dirname ${output}) } $(printf %s "${on_close_fifo}" | sed "s/'/''''/g") @@ -176,9 +177,10 @@ define-command -params 1.. \ hide_blame() { printf %s " - set-option buffer=$kak_bufname git_blame_flags $kak_timestamp - set-option buffer=$kak_bufname git_blame '' + set-option buffer git_blame_flags $kak_timestamp + set-option buffer git_blame %{} remove-highlighter window/git-blame + unmap window normal %{:git blame-jump} " } @@ -204,6 +206,8 @@ define-command -params 1.. \ }" eval $(cat ${kak_response_fifo}) eval "$prepare_git_blame_args" + echo 'map window normal %{:git blame-jump}' + echo 'echo -markup {Information}Press to jump to blamed commit' ( cd_bufdir printf %s "evaluate-commands -client '$kak_client' %{