From 37d7b027e068483246bf3b8877d27229e9cb183f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 19 Sep 2015 11:02:24 +0100 Subject: [PATCH] In {grep,make}-{next,prev}, display the selected error/match in the toolsclient --- rc/grep.kak | 2 ++ rc/make.kak | 2 ++ 2 files changed, 4 insertions(+) diff --git a/rc/grep.kak b/rc/grep.kak index eb91b667..36a497e3 100644 --- a/rc/grep.kak +++ b/rc/grep.kak @@ -49,6 +49,7 @@ def grep-next -docstring 'Jump to next grep match' %{ exec "%opt{_grep_current_line}g/^[^:]+:\d+:" 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^[^:]+:\d+:" grep-jump } + try %{ eval -client %opt{toolsclient} %{ exec %opt{_grep_current_line}g } } } diff --git a/rc/make.kak b/rc/make.kak index 995f7748..c4122326 100644 --- a/rc/make.kak +++ b/rc/make.kak @@ -52,6 +52,7 @@ def make-next -docstring 'Jump to next error' %{ exec "%opt{_make_current_error_line}g/[0-9]+: (?:fatal )?error:" 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[0-9]+: (?:fatal )?error:" make-jump } + try %{ eval -client %opt{toolsclient} %{ exec %opt{_make_current_error_line}g } } }