In {grep,make}-{next,prev}, display the selected error/match in the toolsclient
This commit is contained in:
parent
d2c4d22d1f
commit
37d7b027e0
|
@ -49,6 +49,7 @@ def grep-next -docstring 'Jump to next grep match' %{
|
||||||
exec "%opt{_grep_current_line}g<a-l>/^[^:]+:\d+:<ret>"
|
exec "%opt{_grep_current_line}g<a-l>/^[^:]+:\d+:<ret>"
|
||||||
grep-jump
|
grep-jump
|
||||||
}
|
}
|
||||||
|
try %{ eval -client %opt{toolsclient} %{ exec %opt{_grep_current_line}g } }
|
||||||
}
|
}
|
||||||
|
|
||||||
def grep-prev -docstring 'Jump to previous grep match' %{
|
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>"
|
exec "%opt{_grep_current_line}g<a-/>^[^:]+:\d+:<ret>"
|
||||||
grep-jump
|
grep-jump
|
||||||
}
|
}
|
||||||
|
try %{ eval -client %opt{toolsclient} %{ exec %opt{_grep_current_line}g } }
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>"
|
exec "%opt{_make_current_error_line}g<a-l>/[0-9]+: (?:fatal )?error:<ret>"
|
||||||
make-jump
|
make-jump
|
||||||
}
|
}
|
||||||
|
try %{ eval -client %opt{toolsclient} %{ exec %opt{_make_current_error_line}g } }
|
||||||
}
|
}
|
||||||
|
|
||||||
def make-prev -docstring 'Jump to previous error' %{
|
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>"
|
exec "%opt{_make_current_error_line}g<a-h><a-/>[0-9]+: (?:fatal )?error:<ret>"
|
||||||
make-jump
|
make-jump
|
||||||
}
|
}
|
||||||
|
try %{ eval -client %opt{toolsclient} %{ exec %opt{_make_current_error_line}g } }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user