Use separate terminal commands for the FZF window and for opening new windows
This commit is contained in:
parent
010e395041
commit
62a3de575c
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue