diff --git a/rc/make.kak b/rc/make.kak index ca946d55..995f7748 100644 --- a/rc/make.kak +++ b/rc/make.kak @@ -24,14 +24,14 @@ addhl -group /make line %{%opt{_make_current_error_line}} default+b hook global WinSetOption filetype=make %{ addhl ref make - hook buffer -group make-hooks NormalKey errjump + hook buffer -group make-hooks NormalKey make-jump } hook global WinSetOption filetype=(?!make).* %{ rmhl make; rmhooks buffer make-hooks } decl str jumpclient -def errjump -docstring 'Jump to error location' %{ +def make-jump -docstring 'Jump to error location' %{ try %{ exec gl "Entering directory" exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(?:(\d+):)?([^\n]+)\'" l @@ -46,18 +46,18 @@ def errjump -docstring 'Jump to error location' %{ } } -def errnext -docstring 'Jump to next error' %{ +def make-next -docstring 'Jump to next error' %{ eval -try-client %opt{jumpclient} %{ buffer '*make*' exec "%opt{_make_current_error_line}g/[0-9]+: (?:fatal )?error:" - errjump + make-jump } } -def errprev -docstring 'Jump to previous error' %{ +def make-prev -docstring 'Jump to previous error' %{ eval -try-client %opt{jumpclient} %{ buffer '*make*' exec "%opt{_make_current_error_line}g[0-9]+: (?:fatal )?error:" - errjump + make-jump } }