kak: add diffr hook

This commit is contained in:
lelgenio 2021-05-21 20:44:21 -03:00
parent 0539446036
commit ed1c38db57
1 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,15 @@ evaluate-commands %sh{
done
}
define-command diffr %{ try %{
execute-keys -draft 'ggxsdiff<ret>'
execute-keys -draft '%<a-;>J| diffr<ret>'
ansi-render
} }
hook global BufReadFifo .* diffr
hook global BufOpenFile .* diffr
hook global BufOpenFile .* %{
modeline-parse
}