Colorize hexadecimal colors

pastel can be used to get a readable text color but it would require shelling out, which I want to avoid for speed and simplicity.

pastel textcolor '#a5cdff' | pastel format hex
# => #000000

Thank you for explaining it, now it’s clear! One last question, any reason why you use:

    execute-keys 'gtGbx'

instead of

    execute-keys '%'

To only consider the visible part of the buffer. It can have an impact on big files and is not useful to highlight non visible parts.

1 Like