-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
can't find dot files? #634
Comments
The default commands fzf uses do not include hidden files. If you want hidden files in the list, you have to define your own For example: export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""' |
When I try |
@nimamo Have you checked the command itself ( |
@junegunn Yes and it works as expected. |
@nimamo How about |
@junegunn This command works. I tried the same procedure ( |
- By following the solution posted in junegunn/fzf#634 - Set it up for both bash and zsh
solution posted in junegunn/fzf#634
The command to use rg (ripgrep) instead of ag (the_silver_searcher):
|
I get the following |
See if |
A faster command for ripgrep is
which does not search the content of files. |
export FZF_DEFAULT_COMMAND='rg --files --follow --no-ignore-vcs --hidden -g "!{node_modules/,.git/}"' This works for me! |
@junegunn I would like to include dot files and exclude
But I am not sure I am getting the original behaviour. Can you advise what to add to my |
Thank you @Mel28vin! @junegunn As it seems to be a quite a common use case to want to include dot files or files descending from a dot directory, I think it would be very helpful is this as easy to configure directly in fzf with a dedicated setting (that can be set with It has also been discussed in the related fzf.vim junegunn/fzf.vim#194 |
Tweaking Mel28vin's command so it ignores node_module and .git sub-directories: export FZF_DEFAULT_COMMAND="rg --files --follow --no-ignore-vcs --hidden -g '!{**/node_modules/*,**/.git/*}'" Relevant ripgrep thread. |
junegunn/fzf#634 (comment) Signed-off-by: flavono123 <[email protected]>
I can't find any dot files as .vimrc, .bashrc. Is it supported?
The text was updated successfully, but these errors were encountered: