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 · 6 comments
Open
7 of 10 tasks

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

hugeying opened this issue Sep 26, 2024 · 6 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

@junegunn
Copy link
Owner

junegunn commented Feb 9, 2025

I can't reproduce the problem.

Does this work as expected and show files under ..?

tmux display-popup -E -d $(pwd) fzf --walker-root ../

What's your tmux version?

@gchan
Copy link

gchan commented Feb 9, 2025

My reproduction steps above no longer raises the issue for me. And the command you provided also works and displays files under ..

I believe the issue is now resolved but @hugeying can confirm.

I'm now on tmux 3.5a which was released in Oct 5, 2024. I'm unsure which version I was on before but it was likely the same version of tmux.

@junegunn
Copy link
Owner

Thanks @gchan for the clarification.

@gchan
Copy link

gchan commented Feb 10, 2025

For clarity, the problem no exists for me on fzf 0.59.0 (brew)

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