1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-24 16:15:38 +03:00

make.kak: display error description in the status line on errjump

This commit is contained in:
Maxime Coste 2014-06-18 19:12:11 +01:00
parent 3ef5bf53d5
commit 62707aa82d

View File

@ -28,12 +28,12 @@ decl str jumpclient
def errjump -docstring 'Jump to error location' %{
try %{
exec gll<a-?> "Entering directory" <ret>
exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(\d+):[^\n]+\'" <ret>l
eval -try-client %opt{jumpclient} edit %rec{%reg{1}/%reg{2}} %reg{3} %reg{4}
exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(\d+):([^\n]+)\'" <ret>l
eval -try-client %opt{jumpclient} %rec{edit %reg{1}/%reg{2} %reg{3} %reg{4}; echo -color Information '%reg{5}'}
try %{ focus %opt{jumpclient} }
} catch %{
exec ghgl s "([^:]+):(\d+):(\d+):[^\n]+\'" <ret>l
eval -try-client %opt{jumpclient} edit %reg{1} %reg{2} %reg{3}
exec ghgl s "([^:]+):(\d+):(\d+):([^\n]+)\'" <ret>l
eval -try-client %opt{jumpclient} %rec{edit %reg{1} %reg{2} %reg{3}; echo -color Information '%reg{4}'}
try %{ focus %opt{jumpclient} }
}
}