Skip to content

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

@musl

Description

@musl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions