diff --git a/rc/fzf-modules/fzf-buffer.kak b/rc/fzf-modules/fzf-buffer.kak index 2c213a0..0d65016 100644 --- a/rc/fzf-modules/fzf-buffer.kak +++ b/rc/fzf-modules/fzf-buffer.kak @@ -11,7 +11,7 @@ map global fzf -docstring "open buffer" 'b' ': fzf-buffer' define-command -hidden fzf-buffer %{ evaluate-commands %sh{ - echo "info -title 'fzf buffer' 'Set buffer to edit in current client + echo "info -title 'fzf buffer' 'Set buffer to edit in current client. : delete selected buffer'" tmux_height=$kak_opt_fzf_tmux_height diff --git a/rc/fzf-modules/fzf-file.kak b/rc/fzf-modules/fzf-file.kak index f260688..812cbac 100644 --- a/rc/fzf-modules/fzf-file.kak +++ b/rc/fzf-modules/fzf-file.kak @@ -44,17 +44,18 @@ define-command -hidden fzf-file %{ evaluate-commands %sh{ cmd=$kak_opt_fzf_file_command ;; *) items_executable=$(printf "%s\n" "$kak_opt_fzf_file_command" | grep -o -E "[[:alpha:]]+" | head -1) - printf "%s\n" "echo -markup '{Information}''$executable'' is not supported by the script. fzf.kak may not work as you expect.'" + printf "%s\n" "echo -markup '{Information}'Warning: '$executable'' is not supported by fzf.kak.'" cmd=$kak_opt_fzf_file_command ;; esac - title="fzf file" - [ ! -z "${kak_client_env_TMUX}" ] && additional_keybindings=" -: open file in horizontal split -: open file in vertical split" + message="Open single or multiple files. : open file in new buffer. -: open file in new window $additional_keybindings" - printf "%s\n" "info -title '$title' '$message'" +: open file in new window" + [ ! -z "${kak_client_env_TMUX}" ] && tmux_keybindings=" +: open file in horizontal split +: open file in vertical split" + + printf "%s\n" "info -title 'fzf file' '$message$tmux_keybindings'" [ ! -z "${kak_client_env_TMUX}" ] && additional_flags="--expect ctrl-v --expect ctrl-s" printf "%s\n" "fzf %{edit} %{$cmd} %{-m --expect ctrl-w $additional_flags}" }}