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

Provide -u / -uu flag #1277

Closed
hktonylee opened this issue Mar 7, 2023 · 4 comments
Closed

Provide -u / -uu flag #1277

hktonylee opened this issue Mar 7, 2023 · 4 comments

Comments

@hktonylee
Copy link

hktonylee commented Mar 7, 2023

Hi team, fd is a really awesome tool. I have been using it everyday :) Thanks for all the hard work!

Now the problem is that, I also use ripgrep. They have a flag to search for -I / --no-ignore by -u, and search for hidden files -H / --hidden by -uu. (They also have -uuu to search for binary file but that doesn't apply to us)

I think it is better to provide this flag in fd so as to reduce cognitive loading.

@hktonylee hktonylee changed the title Provide a -u / -uu flag Provide -u / -uu flag Mar 7, 2023
@tavianator
Copy link
Collaborator

tavianator commented Mar 7, 2023

In fact fd does support -u: https://man.archlinux.org/man/fd.1#u,

It's not mentioned in the README though.

@hktonylee
Copy link
Author

hktonylee commented Mar 8, 2023

Ohh thank you for speedy response! I am using Ubuntu 20.04 that's why I couldn't find in man-page. It is still v7.4.0

@FlashSheridan
Copy link

A heads-up that in 8.4.0, -u means --no-ignore --hidden, but in 8.3.1, -u means --no-ignore, with “'-uu' is an alias for '--no-ignore --hidden'”. This meant that instructions I’d written based on 8.4.0 missed important files in 8.3.1.

@sharkdp
Copy link
Owner

sharkdp commented May 25, 2023

A heads-up that in 8.4.0, -u means --no-ignore --hidden, but in 8.3.1, -u means --no-ignore, with “'-uu' is an alias for '--no-ignore --hidden'”. This meant that instructions I’d written based on 8.4.0 missed important files in 8.3.1.

Sorry for this. There was a long discussion about this in #840. And it's mentioned in the release notes here: https://github.com/sharkdp/fd/releases/tag/v8.4.0

We generally really try hard not to introduce breaking changes like this.

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

4 participants