1
0
Fork 0

Merge pull request #74 from krobelus/split-window-in-client-pane

create fzf split-window in the calling client's pane
This commit is contained in:
Andrey Orst 2019-10-09 12:53:05 +03:00 committed by GitHub
commit c6e894a033
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,7 +202,7 @@ fzf -params .. %{ evaluate-commands %sh{
# if height contains `%' then `-p' will be used # if height contains `%' then `-p' will be used
[ -n "${tmux_height%%*%}" ] && measure="-l" || measure="-p" [ -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 # `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 else
cmd="${kak_opt_fzf_terminal_command%% *} %{${fzfcmd}}" cmd="${kak_opt_fzf_terminal_command%% *} %{${fzfcmd}}"
fi fi