I installed with zplug
:
zplug "junegunn/fzf-bin", from:gh-r, as:command, rename-to:fzf, use:"*${(L)$(uname -s)}*amd64*"
zplug "junegunn/fzf", use:"shell/*.zsh", defer:2
zplug "peco/peco", as:command, from:gh-r, use:"*${(L)$(uname -s)}*amd64*"
zplug "lincheney/fzf-tab-completion", use:"zsh/fzf-zsh-completion.sh"
Observe that I also have zsl-autosuggestions
and zsh-completions
installed.
The options/functions – I tried to comment which one of them caused No such widget
:
autoload -Uz async && async
autoload -Uz add-zsh-hook
autoload -Uz compinit && compinit
autoload -Uz url-quote-magic
autoload -Uz vcs_info
setopt autocd
setopt append_history
setopt auto_list
setopt auto_menu
setopt auto_pushd
setopt extended_history
setopt hist_expire_dups_first
setopt hist_find_no_dups
setopt hist_ignore_dups
setopt hist_ignore_all_dups
setopt hist_reduce_blanks
setopt hist_save_no_dups
setopt hist_ignore_space
setopt inc_append_history
setopt interactive_comments
setopt magic_equal_subst
setopt print_eight_bit
setopt print_exit_value
setopt prompt_subst
setopt pushd_ignore_dups
setopt share_history
setopt transient_rprompt
watch=(notme)
LOGCHECK=60
REPORTTIME=5
The keybindings – bindkey '^I' fzf_completions
was caused by No such widget
. But if I commented it, and pressed Tab, it still would give No such widget `1'
.
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey '^I' fzf_completions
KEYTIMEOUT=1
WORDCHARS='*?_-[]~=./&;!#$%^(){}<>'
The checks:
if zplug check "junegunn/fzf-bin"; then
export FZF_DEFAULT_OPTS="--height 40% --reverse --border --inline-info --color=dark,bg+:235,hl+:10,pointer:5"
fi
if zplug check "zsh-users/zsh-autosuggestions"; then
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ACB31D,bg=#0087AF,bold,underline"
fi
if zplug check "junegunn/fzf-bin"; then
alias base="base64"
alias decode="decode64"
alias encode="encode64"
fi
The completions – I also tried to comment each one of them to solve, but the problem is unclear:
zstyle ':completion::complete:*' gain-privileges 1
zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:descriptions' format '%U%F{yellow}%d%f%u'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*' completer _expand _complete _ignored _approximate
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
zstyle ':completion:*' rehash true
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
zstyle ':completion:*' verbose yes
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
The origin of the cause remains unclear. I can not figure which caused it.
bindkey '^I' fzf_completions
to do? Google suggests that nothing defines such a widget.git grep fzf_completions
turns up zero hits. There is a widget calledfzf_completion
though. Typo in your code?