JoshMcguigan / estream

Vim plugin to take back the quickfix window
Apache License 2.0
53 stars 1 forks source link

Keep color #8

Open AckslD opened 3 years ago

AckslD commented 3 years ago

I'm looking to use estream to populate the quickfix list of what's in a terminal-buffer window. However, if I pipe the output to estream the color of the output is not kept. Is there a way to keep the color while still getting the formatted error messages?

JoshMcguigan commented 3 years ago

Hi @AckslD! I'm not sure of this, but I think a likely cause of this is the process you are piping to estream detecting it is being piped and disabling color output. There may be some way to work around this, depending on what exactly that process is. I'm not sure if that would cause any issues within estream though, as I haven't tried it.

AckslD commented 3 years ago

Thanks for your reply @JoshMcguigan! In the end I wrote some custom scripts that in the background copies the content of the terminal buffer, filters that through estream and then populates the quickfixlist based on that. In this way I can populate the quickfixlist while still having colored output. A bit hacky but seems to work pretty well :)