diff --git a/rc/make.kak b/rc/make.kak index 003d8d8d..a9727917 100644 --- a/rc/make.kak +++ b/rc/make.kak @@ -23,13 +23,15 @@ hook global WinSetOption filetype=make %{ hook global WinSetOption filetype=(?!make).* %{ rmhl make; rmhooks buffer make-hooks } +decl str jumpclient + def errjump -docstring 'Jump to error location' %{ try %{ exec gll "Entering directory" exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(\d+):[^\n]+\'" l - edit %rec{%reg{1}/%reg{2}} %reg{3} %reg{4} + eval -try-client %opt{jumpclient} edit %rec{%reg{1}/%reg{2}} %reg{3} %reg{4} } catch %{ exec ghgl s "([^:]+):(\d+):(\d+):[^\n]+\'" l - edit %reg{1} %reg{2} %reg{3} + eval -try-client %opt{jumpclient} edit %reg{1} %reg{2} %reg{3} } }