From eec8239c788657858002559de96265697bc16a8b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 17 May 2017 20:19:56 +0100 Subject: [PATCH] Highlight 'copied' file action in git-commit buffers --- rc/base/git.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/base/git.kak b/rc/base/git.kak index f5f37bbc..7648f435 100644 --- a/rc/base/git.kak +++ b/rc/base/git.kak @@ -7,7 +7,7 @@ hook -group git-commit-highlight global WinSetOption filetype=git-commit %{ add-highlighter -group git-commit-highlight regex "\`[^\n]{1,50}" 0:yellow add-highlighter -group git-commit-highlight regex "\`[^\n]*\n\h*(?!#)([^\n]*)\n?" 1:default,red add-highlighter -group git-commit-highlight regex "^\h*#[^\n]*\n" 0:cyan,default - add-highlighter -group git-commit-highlight regex "\b(?:(modified)|(deleted)|(new file)|(renamed)):([^\n]*)\n" 1:yellow 2:red 3:green 4:blue 5:magenta + add-highlighter -group git-commit-highlight regex "\b(?:(modified)|(deleted)|(new file)|(renamed|copied)):([^\n]*)\n" 1:yellow 2:red 3:green 4:blue 5:magenta add-highlighter -group git-commit-highlight ref diff # highlight potential diffs from the -v option }