1
0
Fork 0

Use separate terminal commands for the FZF window and for opening new windows

This commit is contained in:
Cat /dev/Nulo 2022-02-03 13:34:24 -03:00
parent 010e395041
commit 62a3de575c

View file

@ -79,11 +79,16 @@ str fzf_vertical_map 'ctrl-v'
declare-option -docstring "mapping to execute action in new horizontal split" \
str fzf_horizontal_map 'ctrl-s'
declare-option -docstring 'command to use to create new window when not using tmux.
declare-option -docstring 'command to use to create the FZF window when not using tmux.
Default value: terminal kak -c %val{session} -e "%arg{@}"' \
str fzf_terminal_command 'terminal kak -c %val{session} -e "%arg{@}"'
declare-option -docstring 'command to use to create a new window (ctrl-w) when not using tmux.
Default value: terminal kak -c %val{session} -e "%arg{@}"' \
str fzf_new_terminal_command 'terminal kak -c %val{session} -e "%arg{@}"'
declare-option -docstring "use main selection as default query for fzf if the selection is longer than 1 char." \
bool fzf_use_main_selection true
@ -107,7 +112,7 @@ fzf-window -params .. %{ evaluate-commands %sh{
if [ -n "${kak_client_env_TMUX:-}" ]; then
printf "%s\n" 'tmux-terminal-window kak -c %val{session} -e "%arg{@}"'
else
printf "%s\n" "${kak_opt_fzf_terminal_command:?}"
printf "%s\n" "${kak_opt_fzf_new_terminal_command:?}"
fi
}}