Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In tmux, vim .fzf/**<tab> search path problem #4011

Open
7 of 10 tasks
hugeying opened this issue Sep 26, 2024 · 2 comments
Open
7 of 10 tasks

In tmux, vim .fzf/**<tab> search path problem #4011

hugeying opened this issue Sep 26, 2024 · 2 comments

Comments

@hugeying
Copy link

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.54.2 (brew)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

set the following:

export FZF_DEFAULT_COMMAND='fd --type f --hidden --exclude .git'
export FZF_DEFAULT_OPTS='--tmux 70%'

In tmux, vim .fzf/**<tab> the search path is in the current directory, not in the .fzf/

img

@junegunn
Copy link
Owner

I can't reproduce the problem. Please make sure you have the latest version of fzf and that you have set it up using the right method.

https://github.com/junegunn/fzf?tab=readme-ov-file#setting-up-shell-integration

@gchan
Copy link

gchan commented Jan 1, 2025

@junegunn , @hugeying

I have encountered the same issue

fzf v0.57.0 (brew)
MacOS
zsh

To reproduce:

EDIT: Easy way to reproduce:

fzf --walker=dir,follow --walker-root=../ --tmux

This works as expected

fzf --walker=dir,follow --walker-root=../

More complex way to reproduce:

~/.zshrc:

source <(fzf --zsh)
export FZF_DEFAULT_OPTS='--tmux'

cd ../**<tab> returns files in the current directory, not directories in the child directory.
cd my-dir/**<tab> also exhibits the same behaviour

unset FZF_DEFAULT_OPTS resolves the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants