From d647e817a44c7d60a035c159a7d041e70f816668 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 21 Feb 2013 13:39:31 +0100 Subject: [PATCH] grep,make: bind normal mode return to jump --- src/rc/grep.kak | 1 + src/rc/make.kak | 1 + 2 files changed, 2 insertions(+) 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; }