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

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

Open
Oglo12 opened this issue May 12, 2023 · 2 comments
Open

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

Oglo12 opened this issue May 12, 2023 · 2 comments

Comments

@Oglo12
Copy link

Oglo12 commented May 12, 2023

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
Copy link

eggbean commented May 13, 2023

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

@kirill-lappo-dg7
Copy link

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.

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

No branches or pull requests

3 participants