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

Add a --force-colors switch #7

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

The-Compiler
Copy link
Contributor

Thanks for this tool! After hearing about it, I immediately wanted to integrate it with ranger so I can get previews in the file manager.

Unfortunately, rich has no way to force colors (Textualize/rich#343) and disables them with ranger's preview integration because the output isn't a terminal.

Thus, I added a --force-colors switch to get them back:

image

(it still requires setting COLORTERM=8bit in the environment to get proper 256color support)

@kracekumar
Copy link
Owner

Thanks for the PR. I came across the problem while developing the tool and decided to add, color support later. I'll merge the PR and make a new release soon.

@kracekumar kracekumar merged commit b02801c into kracekumar:main Mar 23, 2021
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 this pull request may close these issues.

2 participants