eraserhd / kak-ansi

Kakoune support for rendering ANSI-colored text.
https://github.com/eraserhd/kak-ansi
The Unlicense
41 stars 5 forks source link

Add ansi-enable and ansi-disable commands #5

Closed SeerLite closed 3 years ago

SeerLite commented 3 years ago

To be used in custom hooks in user configuration:

hook global BufCreate '\*make\*' ansi-enable
SeerLite commented 3 years ago

I updated the README and also added ansi-disable.

@eraserhd What do you think about replacing render/clear commands with enable/disable commands? I can't see many uses for only render/clear but maybe I'm missing something

eraserhd commented 3 years ago

Regarding replacing render/clear with enable/disable... I'm not really sure.

I'm all for a simpler interface. Assuming ansi-enable renders the buffer and ansi-disable clears the highlighting for the buffer, here are a few thoughts:

Ok, so I think I'd propose: