Skip to content

[BUG] $realpath seems to be empty #575

Description

@vvatikiotis

Describe the bug

This used to work, $realpath had the path of the "selection". Now it's empty

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 '...'
  2. Press Tab
  3. See error

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: MacOS 15.7.5
  • zsh version: zsh 5.9 (arm64-apple-darwin24.0)

Ordering of fzf-tab is correct. The following used to work and I was using it daily.

zstyle ':fzf-tab:complete:*' fzf-bindings \
  'ctrl-e:execute({_FTB_INIT_}nvim "$realpath" 5)' \
  "ctrl-t:transform:[[ {fzf:prompt} =~ right ]] && echo 'change-prompt(down> )+change-preview-window(60%,down,wrap)+refresh-preview' || echo 'change-prompt(right> )+change-preview-window(60%,right,wrap)+refresh-preview'"

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