exa icon indicating copy to clipboard operation
exa copied to clipboard

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

Open Oglo12 opened this issue 1 year ago • 2 comments

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

Oglo12 avatar May 12 '23 23:05 Oglo12

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

eggbean avatar May 13 '23 04:05 eggbean

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.

kirill-lappo-dg7 avatar Jan 03 '24 12:01 kirill-lappo-dg7