kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
795 stars 36 forks source link

Is there a way to respect .gitignore? #19

Closed jan11011977 closed 6 years ago

jan11011977 commented 6 years ago

I know there is a way to make fzf respect .gitignore files on Bash, but is there a way to do it with PowerShell? I am struggling to figure it out.

kelleyma49 commented 6 years ago

There currently isn't a way, but I'll try to put something together this weekend. My thought is to respect FZF_DEFAULT_COMMAND, and then you can use ripgrep or your favorite grep tool.

kelleyma49 commented 6 years ago

The latest release (https://www.powershellgallery.com/packages/PSFzf/1.1.17) supports FZF_DEFAULT_COMMAND. You can use ripgrep or something else that respects .gitignore.

Kurren123 commented 1 month ago

No one thanked you for this @kelleyma49, so thank you, this was very useful for me