skim
skim copied to clipboard
not getting colors with --ansi
I see that someone https://github.com/lotabout/skim/issues/245 had a problem with colors and tested with the commands below and it was that the newer version had it fixed, but for me I still have the problem. I have 0.9.4 version of sk.
no colors, just black and white:
fd --color always | sk --ansi
If I run without --ansi
I get:
?[38;5;81msanakirja/?[0m?[38;5;81mkks1/?[0m04_ha.xml
in the output in skim pager, and pressing enter returns me to cmd prompt with colors shown properly of the selected entry in the prompt.
colors work normally in fzf:
fd --color always | fzf --ansi
In fzf the no --ansi version works similarly as in sk, showing those color codes and when selecting one I get it colored on cmd prompt.
I would have a use for skim as a viewer for these dictionary files in xml but the colors are important and they are not working there either:
sk --ansi -c 'bat -f /home/xxx/mnt/languages/karjalan_kieli/sanakirja/*/*.xml '
With grep I get colors though:
sk --ansi -i -c 'grep -rI --color=always --line-number "{}" .'