Keep colors when piping

Hello,

Is there a way to keep terminal color when piping command into kakoune?
example:
in a terminal:

ls | kak -ro

or inside kakoune:

!ls

You can tell ls to spit colors with --color=always and you can render them inside kakoune with kak-ansi.

4 Likes