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 way to disable --icons on pipe #691

Open
torma616 opened this issue Jun 24, 2020 · 4 comments · May be fixed by #908
Open

No way to disable --icons on pipe #691

torma616 opened this issue Jun 24, 2020 · 4 comments · May be fixed by #908

Comments

@torma616
Copy link

exa --icons sends icons across the pipe. If there was an --icons=WHEN option, icons could be disabled when being piped similarly to --color

@torma616 torma616 changed the title No way to disable --icons on piping No way to disable --icons on pipe Jun 24, 2020
@pagerc
Copy link

pagerc commented Aug 12, 2020

It should at least default to using the same value as --color

@nicdumz
Copy link

nicdumz commented May 18, 2021

--icons=WHEN would be ideal indeed.

@ariasuni
Copy link
Collaborator

ariasuni commented Jul 6, 2021

In #905, another user suggests disabling --classify/-F options as well. I’m not sure about it though, but I guess it can be considered as a cosmetic option that makes no sense in a redirected output too.

@TymekDev
Copy link

  • ls on macOS has classifiers on by default. However, these are not displayed when piped.
  • ls on Ubuntu (ubuntu:latest Docker image) has classifiers off by default.

In both cases, having ls -F show them both in stdout and piped output. I suppose it comes down to compatibility of keeping these or usability and hiding these.

I think the WHEN approach for both --icons and --classify would be superb!

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

Successfully merging a pull request may close this issue.

5 participants