You are not logged in.

#1 2018-10-17 19:51:02

momu
Member
Registered: 2017-10-14
Posts: 137

[S] ranger: match text preview color scheme with terminal color scheme

Here is a screenshot of ranger previewing a text file on mine setup.
https://i.imgur.com/yWnxtCe.jpg
As you can see, the preview doesn't look very nice. Not only that, it also looks completely different to the terminal color scheme I'm using.
I've seen screenshots of ranger when text preview color scheme matched completely to the one of the terminal. How can I make mine match too?

Last edited by momu (2018-10-19 21:12:06)

Offline

#2 2018-10-17 23:59:25

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,092
Website

Re: [S] ranger: match text preview color scheme with terminal color scheme

momu wrote:

Here is a screenshot of ranger previewing a text file on mine setup.
https://i.imgur.com/yWnxtCe.jpg
As you can see, the preview doesn't look very nice. Not only that, it also looks completely different to the terminal color scheme I'm using.
I've seen screenshots of ranger when text preview color scheme matched completely to the one of the terminal. How can I make mine match too?

I have replaced your inline image with a link. Please reread the Code of Conduct regarding image sizes and use thumbnails from now on. Thank you.

All the best,

-HG

Offline

#3 2018-10-19 21:10:41

momu
Member
Registered: 2017-10-14
Posts: 137

Re: [S] ranger: match text preview color scheme with terminal color scheme

I found it.

In ~/.config/ranger/scope.sh find the line that says

highlight_format=xterm256

and change it to

highlight_format=ansi

Here is a proof.

Offline

Board footer

Powered by FluxBB