diff --git a/src/rc/grep.kak b/src/rc/grep.kak index 0bd72d52..0aeaeec7 100644 --- a/src/rc/grep.kak +++ b/src/rc/grep.kak @@ -23,6 +23,7 @@ def -shell-params -file-completion \ hook global WinSetOption filetype=grep %{ addhl group grep-highlight addhl -group grep-highlight regex "^([^:]+):(\d+):" 1:cyan 2:green + hook buffer NormalKey jump } hook global WinSetOption filetype=(?!grep).* %{ rmhl grep-highlight; } diff --git a/src/rc/make.kak b/src/rc/make.kak index 73a4a293..a2a6d10f 100644 --- a/src/rc/make.kak +++ b/src/rc/make.kak @@ -18,6 +18,7 @@ def -shell-params make %{ %sh{ hook global WinSetOption filetype=make %{ addhl group make-highlight addhl -group make-highlight regex "^([^:\n]+):(\d+):(\d+):\h+(?:((?:fatal )?error)|(warning)|(note)|(required from(?: here)?))?.*?$" 1:cyan 2:green 3:green 4:red 5:yellow 6:blue 7:yellow + hook buffer NormalKey errjump } hook global WinSetOption filetype=(?!make).* %{ rmhl make-highlight; }