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

Preserving color when piping to bat #101

Closed
dslgr opened this issue May 6, 2022 · 3 comments · Fixed by #103
Closed

Preserving color when piping to bat #101

dslgr opened this issue May 6, 2022 · 3 comments · Fixed by #103

Comments

@dslgr
Copy link

dslgr commented May 6, 2022

Hi,
Is there a way that the color could be preserved when piping to bat? That would help with browsing through many pages of results. Thanks!

@dslgr
Copy link
Author

dslgr commented May 7, 2022

It also doesn't appear that color is preserved when tre is used as a preview for fzf commands. That may also relate. Maybe there could be a color option like bat has (https://github.com/sharkdp/bat#fzf)?

@dduan
Copy link
Owner

dduan commented May 8, 2022

do you mean a flag like --color=always, similar to fd or rg?

@dslgr
Copy link
Author

dslgr commented May 8, 2022

Yep! --color=always would be great!

dduan added a commit that referenced this issue May 14, 2022
dduan added a commit that referenced this issue May 14, 2022
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

Successfully merging a pull request may close this issue.

2 participants