From 76ac7ab663e228b5ae1c91511ba41523129f5ea6 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 29 Jun 2018 18:23:49 +0300 Subject: [PATCH] rc git: Highlight the `delete` operation when rebasing --- 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 c3e82ef8..34ee0cba 100644 --- a/rc/base/git.kak +++ b/rc/base/git.kak @@ -18,7 +18,7 @@ hook global BufCreate .*git-rebase-todo %{ hook -group git-rebase-highlight global WinSetOption filetype=git-rebase %{ add-highlighter window group git-rebase-highlight add-highlighter window/git-rebase-highlight regex "#[^\n]*\n" 0:cyan,default - add-highlighter window/git-rebase-highlight regex "^(pick|edit|reword|squash|fixup|exec|[persfx]) (\w+)" 1:green 2:magenta + add-highlighter window/git-rebase-highlight regex "^(pick|edit|reword|squash|fixup|exec|delete|[persfxd]) (\w+)" 1:green 2:magenta } hook -group git-rebase-highlight global WinSetOption filetype=(?!git-rebase).* %{ remove-highlighter window/git-rebase-highlight }