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

Enabling colourisation of tree output requires forcing #20

Closed
davidjb opened this issue May 12, 2015 · 2 comments
Closed

Enabling colourisation of tree output requires forcing #20

davidjb opened this issue May 12, 2015 · 2 comments

Comments

@davidjb
Copy link
Contributor

davidjb commented May 12, 2015

I'm using the latest sidebar from Git and finding that the output in the sidebar isn't coloured, whereas if I run tree (version 1.7.0) directly, it is coloured. I added:

set -g @sidebar-tree-command 'tree -C'

to my tmux.conf and now it's forcing coloured output, which works in the sidebar. I'm not sure what the difference here is; apparently tree considers $LS_COLORS, which is already set in my environment.

Is this a bug / should coloured output be the standard? If not, I'd suggest adding the config line to the FAQs.

@davidjb davidjb changed the title Enabling colourisation of tree output? Enabling colourisation of tree output requires forcing May 12, 2015
@bruno-
Copy link
Member

bruno- commented May 12, 2015

Hey,
please check here on why we reverted colored tree output to plain one. In short, a user might choose another pager (example view) that can't interpret ansi color codes and he/she might think it's a bug.

Yes, adding a config line to FAQ in the readme is welcome. Just please make sure to mention the above limitation.

Thanks

@davidjb
Copy link
Contributor Author

davidjb commented May 13, 2015

Thanks for the background, got it now. I'll open a PR shortly!

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

2 participants