dduan / tre

Tree command, improved.
MIT License
845 stars 16 forks source link

Preserving color when piping to bat #101

Closed dslgr closed 2 years ago

dslgr commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

dslgr commented 2 years ago

Yep! --color=always would be great!