exa icon indicating copy to clipboard operation
exa copied to clipboard

No way to disable --icons on pipe

Open alextorma opened this issue 5 years ago • 4 comments
trafficstars

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

alextorma avatar Jun 24 '20 06:06 alextorma

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

pagerc avatar Aug 12 '20 17:08 pagerc

--icons=WHEN would be ideal indeed.

nicdumz avatar May 18 '21 12:05 nicdumz

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.

ariasuni avatar Jul 06 '21 22:07 ariasuni

  • 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!

TymekDev avatar Oct 20 '22 08:10 TymekDev