In {grep,make}-{next,prev}, display the selected error/match in the toolsclient

This commit is contained in:
Maxime Coste 2015-09-19 11:02:24 +01:00
parent d2c4d22d1f
commit 37d7b027e0
2 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,7 @@ def grep-next -docstring 'Jump to next grep match' %{
exec "%opt{_grep_current_line}g<a-l>/^[^:]+:\d+:<ret>"
grep-jump
}
try %{ eval -client %opt{toolsclient} %{ exec %opt{_grep_current_line}g } }
}
def grep-prev -docstring 'Jump to previous grep match' %{
@ -57,4 +58,5 @@ def grep-prev -docstring 'Jump to previous grep match' %{
exec "%opt{_grep_current_line}g<a-/>^[^:]+:\d+:<ret>"
grep-jump
}
try %{ eval -client %opt{toolsclient} %{ exec %opt{_grep_current_line}g } }
}

View File

@ -52,6 +52,7 @@ def make-next -docstring 'Jump to next error' %{
exec "%opt{_make_current_error_line}g<a-l>/[0-9]+: (?:fatal )?error:<ret>"
make-jump
}
try %{ eval -client %opt{toolsclient} %{ exec %opt{_make_current_error_line}g } }
}
def make-prev -docstring 'Jump to previous error' %{
@ -60,4 +61,5 @@ def make-prev -docstring 'Jump to previous error' %{
exec "%opt{_make_current_error_line}g<a-h><a-/>[0-9]+: (?:fatal )?error:<ret>"
make-jump
}
try %{ eval -client %opt{toolsclient} %{ exec %opt{_make_current_error_line}g } }
}