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

Ctrl+T search doesn't give directories as a result, only files #245

Open
DavidColson opened this issue Jan 24, 2024 · 4 comments
Open

Ctrl+T search doesn't give directories as a result, only files #245

DavidColson opened this issue Jan 24, 2024 · 4 comments

Comments

@DavidColson
Copy link

DavidColson commented Jan 24, 2024

Using this with Powershell 7.4.1 (Windows 10), when I press Ctrl+T and type, the only results I get are for files, never directories, which makes it difficult to use this for commands where I don't want files.

I have searched around but have not figured out what I am doing wrong or if this is a bug?

@DavidColson
Copy link
Author

I don't know if it's feasible, but related to this issue, it would be cool if there was a command for searching directories, and a separate one for searching for files.

@DavidColson
Copy link
Author

I've seemingly fixed this by installed fd, setting -EnableFd to true and setting the following environment variables:

FZF_DEFAULT_COMMAND=fd
FZF_ALT_C_COMMAND=fd -t d

However this has broken the colouring of text and I have not been able to fix this. Making FZF_DEFAULT_COMMAND=fd --color always just causes the output to be rendered badly.

@kelleyma49
Copy link
Owner

kelleyma49 commented Feb 3, 2024

By default, it uses the built-in fzf filesystem walking command as this is the fastest on Windows. Using FZF_DEFAULT_COMMAND or passing options through std-in is significantly slower.

I submitted a PR to add the option to filter directories, but it was rejected by fzf's author: junegunn/fzf#3464. I'm not sure to do here

@iholston
Copy link

Any update on this? Is there currently any way to include directories in the search without installing fd?

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

No branches or pull requests

3 participants