ogham / exa

A modern replacement for ‘ls’.
https://the.exa.website/
MIT License
23.68k stars 659 forks source link

Make piping Exa's output leave out the icons if you added --icons. #1193

Open Oglo12 opened 1 year ago

Oglo12 commented 1 year ago

Hello, I have Exa aliased to ls, but I can't help but be bothered that piping exa --icons to another program includes the icons! I know that there is a way to fix this, after all, there is another Rust program called Bat that does this. Anyway, it would be really nice to have this fixed!

Example when piping into FZF:

image

eggbean commented 1 year ago

Yes, it even adds icons with the -1 switch, which is a bad oversight. I don't use --icons myself.

kirill-lappo-dg7 commented 11 months ago

I think it would be better to make --icons option work the same as --color option.

For ex:

--colo[u]r=WHEN    when to use terminal colours (always, auto, never)
--icons=WHEN       when to use icons (always, auto, never)

To make it compatible, auto can be a default value when just --icons is specified.