Skip to content

(exa PR) 908: Don’t show icons when piped (also add --icons={always,auto,never})#54

Closed
cafkafk wants to merge 3 commits into
mainfrom
pr-908
Closed

(exa PR) 908: Don’t show icons when piped (also add --icons={always,auto,never})#54
cafkafk wants to merge 3 commits into
mainfrom
pr-908

Conversation

@cafkafk

@cafkafk cafkafk commented Jul 29, 2023

Copy link
Copy Markdown
Member

https:/github.com/ogham/exa/pull/908

@cafkafk cafkafk changed the title (exa PR) 908 (exa PR) 908: Don’t show icons when piped (also add --icons={always,auto,never}) Jul 29, 2023
@cafkafk cafkafk marked this pull request as draft July 30, 2023 04:20
@sbatial sbatial mentioned this pull request Jul 30, 2023
63 tasks
@cafkafk cafkafk added this to the exa pulls done milestone Jul 31, 2023
@github-actions

Copy link
Copy Markdown

This pull request is stale because it has been open for 30 days with no activity.

@PThorpe92

Copy link
Copy Markdown
Member

hmm. Moving to 1.70 stabilizes is_terminal() correct?

This could use revisiting after the move for sure, but i'm fixing it now to see whats up with it.

@ariasuni

Copy link
Copy Markdown
Contributor

@PThorpe92 I don’t understand why you removed the always option, it’s useful when you want to show icons when piped, similar to the --colour option.

@PThorpe92

PThorpe92 commented Sep 26, 2023

Copy link
Copy Markdown
Member

I'm sorry you are right, it's very possible that I fixed that locally. This just shows the initial fix of the merge conflicts here. I worked on it a bunch locally but couldn't get the dont show in TTY | piped option working in all cases. I really need to look at it again i've just been super busy.

Ok I had just enough time to clean this up and tinker with it a little, but I don't think it's ready yet. I'll have more time this weekend. @ariasuni if you want to review and let me know if anything sticks out to you.

@PThorpe92

PThorpe92 commented Oct 12, 2023

Copy link
Copy Markdown
Member

image

should close #527 and i think at least one more.

I think this should be all set now. The only thing is this will break everyone's alias's because the always, auto, never are traditionally a necessary argument flag.

@PThorpe92 PThorpe92 marked this pull request as ready for review October 12, 2023 21:21
@PThorpe92 PThorpe92 requested a review from gierens October 12, 2023 21:26
@cafkafk

cafkafk commented Oct 13, 2023

Copy link
Copy Markdown
Member Author

I think this should be all set now. The only thing is this will break everyone's alias's because the always, auto, never are traditionally a necessary argument flag.

Could we have it so --icons by itself implied --icons=auto? That way we're still almost backwards compat, and I think it's probably the most sensible option... What do you think?

@cafkafk cafkafk left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need to update bash, zsh, fish, and nushell completions, as well as the manual and README.md

@cafkafk

cafkafk commented Oct 13, 2023

Copy link
Copy Markdown
Member Author

Could you potentially reopen this as a PR by you instead, I can't make suggestions like normally on my own PR :s

@PThorpe92

Copy link
Copy Markdown
Member

Oh yup. gotta do the docs and completions still. Yeah it was wierd trying to request ur review on ur own PR :P I'll re open one

@PThorpe92

Copy link
Copy Markdown
Member

Closing to open a new one.. I added more functionality

@PThorpe92 PThorpe92 closed this Oct 16, 2023
@PThorpe92 PThorpe92 deleted the pr-908 branch October 16, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

feat: Use is-terminal crate to mimic exact ls output even with flags when being piped.

3 participants