From f1b9f9c3019d0ff6c579951e643e5bd75b1bec0a Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 9 Oct 2019 10:39:06 +0200 Subject: [PATCH] create fzf split-window in the calling client's pane fix #73 --- rc/fzf.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/fzf.kak b/rc/fzf.kak index 391b145..49d805c 100644 --- a/rc/fzf.kak +++ b/rc/fzf.kak @@ -202,7 +202,7 @@ fzf -params .. %{ evaluate-commands %sh{ # if height contains `%' then `-p' will be used [ -n "${tmux_height%%*%}" ] && measure="-l" || measure="-p" # `terminal' doesn't support any kind of width and height parameters, so tmux panes are created by tmux itself - cmd="nop %sh{ command tmux split-window ${measure} ${tmux_height%%%*} '${fzfcmd}' }" + cmd="nop %sh{ command tmux split-window -t '${kak_client_env_TMUX_PANE}' ${measure} ${tmux_height%%%*} '${fzfcmd}' }" else cmd="${kak_opt_fzf_terminal_command%% *} %{${fzfcmd}}" fi