tweak messages
This commit is contained in:
parent
f4d4ad40f5
commit
fa7d53c6bc
2 changed files with 9 additions and 8 deletions
|
@ -11,7 +11,7 @@
|
||||||
map global fzf -docstring "open buffer" 'b' '<esc>: fzf-buffer<ret>'
|
map global fzf -docstring "open buffer" 'b' '<esc>: fzf-buffer<ret>'
|
||||||
|
|
||||||
define-command -hidden fzf-buffer %{ evaluate-commands %sh{
|
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.
|
||||||
<c-d>: delete selected buffer'"
|
<c-d>: delete selected buffer'"
|
||||||
|
|
||||||
tmux_height=$kak_opt_fzf_tmux_height
|
tmux_height=$kak_opt_fzf_tmux_height
|
||||||
|
|
|
@ -44,17 +44,18 @@ define-command -hidden fzf-file %{ evaluate-commands %sh{
|
||||||
cmd=$kak_opt_fzf_file_command ;;
|
cmd=$kak_opt_fzf_file_command ;;
|
||||||
*)
|
*)
|
||||||
items_executable=$(printf "%s\n" "$kak_opt_fzf_file_command" | grep -o -E "[[:alpha:]]+" | head -1)
|
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 ;;
|
cmd=$kak_opt_fzf_file_command ;;
|
||||||
esac
|
esac
|
||||||
title="fzf file"
|
|
||||||
[ ! -z "${kak_client_env_TMUX}" ] && additional_keybindings="
|
|
||||||
<c-s>: open file in horizontal split
|
|
||||||
<c-v>: open file in vertical split"
|
|
||||||
message="Open single or multiple files.
|
message="Open single or multiple files.
|
||||||
<ret>: open file in new buffer.
|
<ret>: open file in new buffer.
|
||||||
<c-w>: open file in new window $additional_keybindings"
|
<c-w>: open file in new window"
|
||||||
printf "%s\n" "info -title '$title' '$message'"
|
[ ! -z "${kak_client_env_TMUX}" ] && tmux_keybindings="
|
||||||
|
<c-s>: open file in horizontal split
|
||||||
|
<c-v>: 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"
|
[ ! -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}"
|
printf "%s\n" "fzf %{edit} %{$cmd} %{-m --expect ctrl-w $additional_flags}"
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue