mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-24 20:13:00 +03:00
make,grep: focus jumpclient when jumping to location
This commit is contained in:
parent
95f6f0bae9
commit
960f823bcd
@ -31,4 +31,5 @@ decl str jumpclient
|
||||
def jump %{
|
||||
exec 'xs^([^:]+):(\d+):(\d+)?<ret>'
|
||||
eval -try-client %opt{jumpclient} edit %reg{1} %reg{2} %reg{3}
|
||||
try %{ focus %opt{jumpclient} }
|
||||
}
|
||||
|
@ -30,8 +30,10 @@ def errjump -docstring 'Jump to error location' %{
|
||||
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}
|
||||
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}
|
||||
try %{ focus %opt{jumpclient} }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user