NikitaIvanovV / ctpv

Image previews for lf file manager
https://www.nikitaivanov.com/man1/ctpv
MIT License
264 stars 23 forks source link

text/plain files not using bat #97

Open tarikkirgin opened 4 months ago

tarikkirgin commented 4 months ago

I have bat installed which works for viewing files such as .js or .ts with syntax highlighting in the terminal. However when using lf with ctpv the preview of these files are not coloured as shown below. I suppose for some reason it is falling back to cat despite the file having the MIME type text/plain.

image
ipstone commented 2 months ago

I have some similar issue when viewing file types such as *.R - text file but not showing preview. Are there options to customize the specific viewer to use, and default back to 'lf' default behavior? thanks