From 8381d831cca2e2a45d2881fc26cdc99dba4de8ca Mon Sep 17 00:00:00 2001 From: andreyorst Date: Sun, 23 Sep 2018 00:24:13 +0300 Subject: [PATCH] use evaluate commands instead of execute keys --- rc/fzf.kak | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rc/fzf.kak b/rc/fzf.kak index 1db7ada..16754ba 100644 --- a/rc/fzf.kak +++ b/rc/fzf.kak @@ -95,9 +95,9 @@ define-command -override -hidden fzf-cd %{ fzf "change-directory $1" "find \( -path '*/.svn*' -o -path '*/.git*' \) -prune -o -type d -print" } -define-command -override -hidden fzf -params 2 %{ exec %sh{ +define-command -override -hidden fzf -params 2 %{ evaluate-commands %sh{ if [ -z "${kak_client_env_TMUX}" ]; then - echo ':fail "client was not started under tmux"' + echo 'fail "client was not started under tmux"' exit fi tmp=$(mktemp $(eval echo $kak_opt_fzf_tmp/kak-fzf.XXXXXX)) @@ -136,7 +136,6 @@ define-command -override -hidden fzf-buffer %{ evaluate-commands %sh{ chmod 755 $setbuf chmod 755 $delbuf ( - # todo: expect ctrl-[vw] to make execute in new windows instead eval "echo $kak_buflist | tr ' ' '\n' | sort | fzf-tmux -d 15 --color=16 -e --preview='$setbuf {}' --preview-window=up:hidden --expect ctrl-d > $tmp" if [ -s $tmp ]; then