From 9fafb1aba1a276520622692ce9cf83f80434af1d Mon Sep 17 00:00:00 2001 From: Philippe Daouadi Date: Fri, 18 Aug 2017 16:06:17 +0200 Subject: [PATCH 2/2] Show error when using go-jump and jq is not installed --- rc/extra/go-tools.kak | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rc/extra/go-tools.kak b/rc/extra/go-tools.kak index 268067ac..af9d9909 100644 --- a/rc/extra/go-tools.kak +++ b/rc/extra/go-tools.kak @@ -5,6 +5,12 @@ # Needs the following tools in the path: # - jq for json deserializaton +%sh{ + if ! jq --version > /dev/null 2>&1; then + echo 'echo -debug %{Dependency unmet: jq, please install it to use go-tools}' + fi +} + # Auto-completion # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾