fzf-tab icon indicating copy to clipboard operation
fzf-tab copied to clipboard

[BUG] error msg "xclip: J:=__: No such file or directory" when press the TAB button for the first time

Open gitduk opened this issue 3 years ago • 0 comments

Describe the bug

A clear and concise description of what the bug is.

I can make sure:

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

To Reproduce

Steps to reproduce the behavior:

  1. Type 'any char'
  2. Press Tab
  3. Error:
  4. Error expanding alias:

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

  • OS: Ubuntu Linux
  • zsh version: zsh 5.8.1 (x86_64-ubuntu-linux-gnu)

Minimal zshrc

If applicable, add a minimal zshrc to help us analyze.

# Xresources
[[ -f "$HOME/.Xresources" ]] && xrdb -merge "$HOME/.Xresources" 2>/dev/null

# fzf configure
[[ -f $HOME/.fzf.zsh ]] && source $HOME/.fzf.zsh

# custom widgets
[[ -f "$HOME/.custom/widgets.zsh" ]] && source $HOME/.custom/widgets.zsh

# complete
[[ -f "$ZSH_CUSTOM/complete.zsh" ]] && source $ZSH_CUSTOM/complete.zsh

# plugins
[[ -f "$ZSH_CUSTOM/plugins.zsh" ]] && source $ZSH_CUSTOM/plugins.zsh

# widgets
[[ -f "$ZSH_CUSTOM/widgets.zsh" ]] && source $ZSH_CUSTOM/widgets.zsh

# ohmyzsh
[[ -f "$ZSH/oh-my-zsh.sh" ]] && source $ZSH/oh-my-zsh.sh

...

plugins=(
  cp
  wd
  sudo
  rsync
  poetry
  dotenv
  zoxide
  fzf-tab
  extract
  thefuck
  urltools
  globalias
  gitignore
  shell-proxy
  command-not-found
  colored-man-pages
  zsh-autosuggestions
  zsh-syntax-highlighting
)

...

# disable sort when completing `git checkout`
zstyle ':completion:*:git-checkout:*' sort false
# set descriptions format to enable group support
zstyle ':completion:*:descriptions' format '[%d]'
# set list-colors to enable filename colorizing
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
# preview directory's content with exa when completing cd
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 --color=always $realpath'
# switch group using `,` and `.`
zstyle ':fzf-tab:*' switch-group ',' '.'
zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup

# enable hidden files completion
_comp_options+=(globdots)
if command -v enable-fzf-tab >/dev/null; then
  enable-fzf-tab
fi

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).

gitduk avatar Aug 10 '22 04:08 gitduk