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

NO_COLOR support #550

Closed
rektide opened this issue Mar 17, 2020 · 3 comments · Fixed by #551
Closed

NO_COLOR support #550

rektide opened this issue Mar 17, 2020 · 3 comments · Fixed by #551

Comments

@rektide
Copy link

rektide commented Mar 17, 2020

Hello. Lovely tool.

I find myself doing a bunch of fd whatever | cat to strip out colors.

Would be lovely to have support for NO_COLOR! Would give users are more consistent way to control this behavior.

Lovely tool. Played with it briefly a while back but after a recent mention from @dimfeld I've been using it quite consistently. It alleviated my specific gripe, which was ripgrep being ridiculously faster than find & needing less filtering after. Thanks ever much.

@sharkdp
Copy link
Owner

sharkdp commented Mar 18, 2020

Thank you for the feedback!

I find myself doing a bunch of fd whatever | cat to strip out colors.

Why? Simply because you don't like the colorized output? Note that the ANSI escape codes auto-disable when you pipe to another process.

Also, have you seen that colors can be deactivated using --color=never?

Would be lovely to have support for NO_COLOR! Would give users are more consistent way to control this behavior.

Sounds good to me.

@sharkdp
Copy link
Owner

sharkdp commented Mar 19, 2020

closed in #551 by @metadave

@sharkdp
Copy link
Owner

sharkdp commented Mar 22, 2020

Released in fd 7.5.0

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

Successfully merging a pull request may close this issue.

2 participants