From c44072b9bdad19976870fdf8c44d19a62ff90a60 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Sun, 25 Nov 2018 16:02:05 +0300 Subject: [PATCH] move paren to command, add quotes --- rc/fzf-modules/fzf-search.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/fzf-modules/fzf-search.kak b/rc/fzf-modules/fzf-search.kak index b961e60..6041bd2 100644 --- a/rc/fzf-modules/fzf-search.kak +++ b/rc/fzf-modules/fzf-search.kak @@ -14,8 +14,8 @@ define-command -hidden fzf-buffer-search %{ evaluate-commands %sh{ title="fzf buffer search" message="Search buffer with fzf, and jump to result location" printf "%s\n" "info -title '$title' '$message'" - buffer_content=$(mktemp ${TMPDIR:-/tmp}/fzf-buff-${kak_buffile##*/}.XXXXXX) + buffer_content="$(mktemp ${TMPDIR:-/tmp}/fzf-buff-${kak_buffile##*/}.XXXXXX)" printf "%s\n" "execute-keys -draft %{%cat>$buffer_content;}" - printf "%s\n" "fzf %{execute-keys} %{(nl -b a -n ln $buffer_content} %{--reverse | cut -f 1; rm $buffer_content)} %{execute-keys gx}" + printf "%s\n" "fzf %{execute-keys} %{(nl -b a -n ln $buffer_content; rm $buffer_content)} %{--reverse | cut -f 1} %{execute-keys gx}" }}