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

Feature Request: Please add a flag to force syntax highlighting. #271

Open
musl opened this issue Apr 23, 2023 · 1 comment
Open

Feature Request: Please add a flag to force syntax highlighting. #271

musl opened this issue Apr 23, 2023 · 1 comment

Comments

@musl
Copy link

musl commented Apr 23, 2023

The Ask

Please add a flag like --color-always/-C to force syntax highlighting even in the absence of a tty.

A Use Case

I'd like to be able to use vimcat with fzf and other tools within my Vim configs. I want to configure vim and fzf to run vimcat to highlight preview windows and the like.

Right now, when vimcat is run by fzf/vim will check to see if it has a tty, fail to find one, and skip highlighting. This means my preview windows, etc do not have highlighting as desired.

I suspect there are other use cases as well, given how ls, jq, and other tools provide a similar flag to force colored output.

@musl
Copy link
Author

musl commented Apr 23, 2023

Thanks for considering this request. ❤️

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

1 participant