move paren to command, add quotes
This commit is contained in:
parent
68f1105014
commit
c44072b9bd
1 changed files with 2 additions and 2 deletions
|
@ -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 %{%<a-|>cat<space>><space>$buffer_content<ret>;}"
|
||||
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}"
|
||||
}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue