diff --git a/rc/fzf.kak b/rc/fzf.kak index 8923562..e31c522 100644 --- a/rc/fzf.kak +++ b/rc/fzf.kak @@ -119,9 +119,9 @@ map global fzf -docstring "search in buffer" 's' ': fzf-buffer- map global fzf -docstring "find tag" 't' ': fzf-tag' map global fzf-vcs -docstring "edit file from Git tree" 'g' ': fzf-git' -map global fzf-vcs -docstring "edit file from Subversion tree" 's' ': fzf-git' -map global fzf-vcs -docstring "edit file from mercurial tree" 'h' ': fzf-git' -map global fzf-vcs -docstring "edit file from GNU Bazaar tree" 'b' ': fzf-git' +map global fzf-vcs -docstring "edit file from Subversion tree" 's' ': fzf-svn' +map global fzf-vcs -docstring "edit file from mercurial tree" 'h' ': fzf-hg' +map global fzf-vcs -docstring "edit file from GNU Bazaar tree" 'b' ': fzf-bzr' # Commands define-command -docstring "Enter fzf-mode. @@ -158,7 +158,7 @@ define-command -hidden fzf-file %{ find*|ag*|rg*|fd*) cmd=$kak_opt_fzf_file_command ;; *) - executable=$(echo $kak_opt_fzf_file_command | awk '{print $1}'| tr '(' ' ' | cut -d " " -f 2) + executable=$(echo $kak_opt_fzf_file_command | awk '{print $1'}| tr '(' ' ' | cut -d " " -f 2) echo "echo -markup '{Information}''$executable'' is not supported by the script. fzf.kak may not work as you expect.'" cmd=$kak_opt_fzf_file_command ;; esac @@ -332,7 +332,7 @@ define-command -hidden fzf -params 2..3 %{ evaluate-commands %sh{ tmp=$(mktemp $(eval echo ${TMPDIR:-/tmp}/kak-fzf.XXXXXX)) exec=$(mktemp $(eval echo ${TMPDIR:-/tmp}/kak-exec.XXXXXX)) - if [ "$(echo $items_command | awk 'print $1')" = "edit" ] && [ $kak_opt_fzf_preview = "true" ]; then + if [ "$(echo $callback | awk '{print $1}')" = "edit" ] && [ $kak_opt_fzf_preview = "true" ]; then case $kak_opt_fzf_highlighter in coderay) highlighter="coderay {}" ;;