Skip to content

_ftb__main_complete command not found #529

@fjchen7

Description

@fjchen7

Describe the bug

A clear and concise description of what the bug is.

I can make sure:

  • I am using the latest version of fzf-tab
  • this is the minimal zshrc which can reproduce this bug
  • fzf-tab is loaded after compinit
  • fzf-tab is loaded after plugins which will wrap Tab, like junegunn/fzf/completion.zsh
  • fzf-tab is loaded before zsh-autosuggestions, zsh-syntax-highlighting and fast-syntax-highlighting.

To Reproduce

Steps to reproduce the behavior:

  1. Type 'cd'
  2. Press Tab
  3. See error

Expected behavior

Show completion memu.

Screenshots

Image

However sometimes it show permission denied

Image

Environment:

  • OS: macOS 15.5
  • zsh version: zsh 5.9 (arm-apple-darwin24.2.0) (/opt/homebrew/bin/zsh)
  • zimfw: 1.18.0

Minimal zshrc

.zshrc

# -----------
#  Zim setup
# -----------
# Set directory where Zim will be installed
ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
# Download zimfw plugin manager if missing.
if [[ ! -e ${ZIM_HOME}/zimfw.zsh ]]; then
  curl -fsSL --create-dirs -o ${ZIM_HOME}/zimfw.zsh \
      https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
fi
# Install missing modules and update ${ZIM_HOME}/init.zsh if missing or outdated.
if [[ ! ${ZIM_HOME}/init.zsh -nt ${ZIM_CONFIG_FILE:-${ZDOTDIR:-${HOME}}/.zimrc} ]]; then
  source ${ZIM_HOME}/zimfw.zsh init
fi
# Initialize modules.
source ${ZIM_HOME}/init.zsh

.zimrc

# Use degit instead of git submodules for faster cloning
zstyle ':zim:zmodule' use 'degit'
zstyle ':zim:completion' dumpfile "${XDG_CACHE_HOME:-$HOME/.cache}/zsh/.zcompdump"

zmodule environment
zmodule input

zmodule zsh-users/zsh-completions --fpath src
zmodule completion
zmodule Aloxaf/fzf-tab

zmodule zsh-users/zsh-autosuggestions
zmodule zsh-users/zsh-syntax-highlighting

zmodule romkatv/powerlevel10k
zmodule djui/alias-tips
zmodule ohmyzsh/ohmyzsh --root plugins/autojump

Log

If applicable, use C-x . to trigger completion and provide the log.

If there are only three lines in your log, please make sure your fzf-tab is loaded with the correct order (see the checklist above).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions