fzf-tab: -ftb-complete:11: command not found: -ftb-generate-complist
Hey!
I’ve just upgraded to the most recent version (after the major refactor) and now my fzf-tab
is not working anymore.
I had this config previously:
export FZF_TAB_OPTS=(
--expect='/'
--color='hl:$(( $#headers == 0 ? 108 : 255 ))'
--nth='2,3'
--delimiter='\0'
--tiebreak=begin -m --bind=tab:down,change:top,ctrl-space:toggle --cycle
--query='$query'
--header-lines='$#headers'
--preview-window='0%'
)
I’ve already deactivated my old configs, but when I tap TAB
to test it I got the following error:
-ftb-complete:11: command not found: -ftb-generate-complist
And then the standard zsh-autocomplete appears.
Here is a copy of my .zshrc
:
#!/usr/bin/env zsh
##
# ---- Configure tools ----
##
current_emulator=$(pstree -sA $$)
# Bash Hub
source ~/.bashhub/bashhub.zsh
# Enhancd
source ~/.enhancd/bin/init.sh
# asdf
source /opt/asdf-vm/asdf.sh
# zsh-autosuggestions
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#5E5E5E"
# Desk
[ -n "$DESK_ENV" ] && source "$DESK_ENV" || desk go shared.common
# Keychain
zstyle :omz:plugins:keychain agents gpg,ssh
zstyle :omz:plugins:keychain identities id_rsa
# compinit
autoload -U compinit
##
# ---- Load Zplugin ----
##
source ${HOME}/.zinit/bin/zinit.zsh
##
# ---- Load plugins ---
# Order sensitive plugins
zinit light "Aloxaf/fzf-tab"
# Oh-my-zsh configs that I want
zinit snippet "OMZ::lib/completion.zsh"
zinit snippet "OMZ::lib/history.zsh"
zinit snippet "OMZ::lib/key-bindings.zsh"
zinit snippet "OMZ::lib/theme-and-appearance.zsh"
zinit snippet "OMZ::lib/spectrum.zsh"
zinit snippet "OMZ::plugins/git/git.plugin.zsh"
zinit snippet "OMZ::plugins/git-extras/git-extras.plugin.zsh"
zinit snippet "OMZ::plugins/kubectl/kubectl.plugin.zsh"
zinit snippet "OMZ::plugins/fzf/fzf.plugin.zsh"
zinit snippet "OMZ::plugins/dotenv/dotenv.plugin.zsh"
zinit snippet "OMZ::plugins/keychain/keychain.plugin.zsh"
# Improving ZSH usage
zinit light "denysdovhan/spaceship-prompt"
zinit light "chrissicool/zsh-256color"
zinit light "rupa/z"
zinit light "changyuheng/fz"
zinit light "djui/alias-tips"
zinit light "supercrabtree/k"
zinit light "zsh-users/zsh-autosuggestions"
zinit light "zsh-users/zsh-syntax-highlighting"
zinit light "zsh-users/zsh-history-substring-search"
zinit light "Tarrasch/zsh-bd"
zinit light "changyuheng/zsh-interactive-cd"
zinit light "shannonmoeller/up"
zinit light "tcnksm/docker-alias"
zinit light "bonnefoa/kubectl-fzf"
zinit light "jamesob/desk"
zinit light "relastle/pmy"
zinit light "b4b4r07/emoji-cli"
zinit cdreplay -q
# Autoload tmux
if [ -z "$TMUX" ] && [[ $current_emulator == *"termite"* ]]; then
tmuxinator start default
fi
Can anyone help? Thanks 😃
EDIT 1:
If I deactivate everything from my configs (let only the fzf-tab
I got the following error when I press tab:
odelucca-pc% git _ftb__main_complete:45: command not found: _setup
odelucca-pc% git _ftb__main_complete:96: permission denied:
_ftb__main_complete:135: command not found: _complete
_ftb__main_complete:135: command not found: _ignored
_ftb__main_complete:322: permission denied:
## FOR REFERENCE, this test .zshrc was
source ${HOME}/.zinit/bin/zinit.zsh
autoload -U compinit
zinit light "Aloxaf/fzf-tab"
zinit snippet "OMZ::plugins/fzf/fzf.plugin.zsh"
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (8 by maintainers)
Commits related to this issue
- fix(preview): sometimes there is no group See #134 — committed to Aloxaf/fzf-tab by Aloxaf 4 years ago
Just change it to any command you want:
I use
$ZSH_VERSION=5.8
and run into the same issue with autoloading absolute paths not working. I think it is a Zinit bug as sourcing plugins manually which autoload using the absolute path works.https://github.com/zdharma/zinit/issues/422