1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-28 06:08:05 +03:00

grep,make: bind normal mode return to jump

This commit is contained in:
Maxime Coste 2013-02-21 13:39:31 +01:00
parent efc0a8bc07
commit d647e817a4
2 changed files with 2 additions and 0 deletions

View File

@ -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 <c-m> jump
}
hook global WinSetOption filetype=(?!grep).* %{ rmhl grep-highlight; }

View File

@ -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 <c-m> errjump
}
hook global WinSetOption filetype=(?!make).* %{ rmhl make-highlight; }