From dffd68a8cad12de7542b751bf1ab15888610065f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 13 Dec 2013 14:00:14 +0000 Subject: [PATCH] honor jumpclient for grep --- src/rc/grep.kak | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rc/grep.kak b/src/rc/grep.kak index ecebdfd7..58dbedb2 100644 --- a/src/rc/grep.kak +++ b/src/rc/grep.kak @@ -26,4 +26,9 @@ hook global WinSetOption filetype=grep %{ hook global WinSetOption filetype=(?!grep).* %{ rmhl grep-highlight; rmhooks buffer grep-hooks } -def jump %{ exec 'xs^([^:]+):(\d+):(\d+)?'; edit %reg{1} %reg{2} %reg{3} } +decl str jumpclient + +def jump %{ + exec 'xs^([^:]+):(\d+):(\d+)?' + eval -try-client %opt{jumpclient} edit %reg{1} %reg{2} %reg{3} +}