You are not logged in.

#1951 2015-05-04 17:53:34

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

New release!

2015-05-04: version 1.7.1
* Added doc/cheatsheet.svg
* Added examples/rc_emacs.conf, a config file adding emacs-like key bindings
* Added "env" keyword in rifle.conf
* Fixed ":bulkrename" command in python3
* Fixed "S" key binding not working when SHELL=fish

"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#1952 2015-05-11 14:29:55

madc0de
Member
Registered: 2009-08-29
Posts: 11

Re: Ranger, a textbased filemanager

Hello,

Is there a way to use the .hidden file with ranger?

edit: Or is there a feature like it?

Last edited by madc0de (2015-05-11 14:30:32)

Offline

#1953 2015-05-17 13:01:15

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Ranger, a textbased filemanager

Is it possible to change the fg color for the progressbar?

Offline

#1954 2015-05-18 15:23:00

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

madc0de: No, but maybe you can mod https://github.com/hut/ranger/blob/mast … _filter.py to do this

Hund: Yup, modify the colorscheme. See the man page, and https://github.com/hut/ranger/blob/mast … default.py - it's the first line in the class definition.


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#1955 2015-05-18 19:20:59

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Ranger, a textbased filemanager

hut wrote:

madc0de: No, but maybe you can mod https://github.com/hut/ranger/blob/mast … _filter.py to do this

Hund: Yup, modify the colorscheme. See the man page, and https://github.com/hut/ranger/blob/mast … default.py - it's the first line in the class definition.

I can only see a option to change the bg. Thats why I asked.

Offline

#1956 2015-05-18 23:07:10

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

Look for the place in the color scheme where "progress_bar_color" is used and change the "fg" variable where you need to.


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#1957 2015-05-19 10:43:33

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Ranger, a textbased filemanager

hut wrote:

Look for the place in the color scheme where "progress_bar_color" is used and change the "fg" variable where you need to.

            if context.loaded:
                if context.selected:
                    fg = self.progress_bar_color
                else:
                    bg = self.progress_bar_color

I dont know how to change that?

Offline

#1958 2015-05-19 18:10:05

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

Well, it's the other occurance of "progress_bar_color". The one under "elif context.in_statusbar"


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#1959 2015-05-20 18:04:05

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Ranger, a textbased filemanager

hut wrote:

Well, it's the other occurance of "progress_bar_color". The one under "elif context.in_statusbar"

I tried changing various values. Nothing happened. Could you be a bit more specific so I dont have to guess? Pretty please. wink

Last edited by Hund (2015-05-20 18:05:26)

Offline

#1960 2015-05-20 18:07:26

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Ranger, a textbased filemanager

Hund wrote:
hut wrote:

Well, it's the other occurance of "progress_bar_color". The one under "elif context.in_statusbar"

I tried changing various values. Nothing happened. Could you be a bit more specific so I dont have to guess? Pretty please. wink

unless you are speaking of a specifc theme it may depend ... you could paste bin your theme and link it i would be happy to try to help you learn how to set colors


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#1961 2015-05-20 18:55:09

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Ranger, a textbased filemanager

VanillaFunk wrote:
Hund wrote:
hut wrote:

Well, it's the other occurance of "progress_bar_color". The one under "elif context.in_statusbar"

I tried changing various values. Nothing happened. Could you be a bit more specific so I dont have to guess? Pretty please. wink

unless you are speaking of a specifc theme it may depend ... you could paste bin your theme and link it i would be happy to try to help you learn how to set colors

Thank you. smile

http://hastebin.com/zimarelobo.py

Offline

#1962 2015-05-20 19:38:15

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Ranger, a textbased filemanager

class Solarized(ColorScheme):
    progress_bar_color = 172

lines 10 and 11 in your paste ... that would be ( if i read correctly ) the color to change

I'm used to hex colors so let me take a look around and see if i can learn how those colors are picked so you dont have to just guess


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#1963 2015-05-21 12:47:12

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Ranger, a textbased filemanager

VanillaFunk wrote:

class Solarized(ColorScheme):
    progress_bar_color = 172

lines 10 and 11 in your paste ... that would be ( if i read correctly ) the color to change

I'm used to hex colors so let me take a look around and see if i can learn how those colors are picked so you dont have to just guess

But that changes the background color. I want to change the foreground color. smile

Offline

#1964 2015-05-21 12:57:23

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Ranger, a textbased filemanager

it seems like a lot of colors in this theme are defined from progress_bar_color

        elif context.in_statusbar:
            if context.permissions:
                if context.good:
                    fg = 2
                elif context.bad:
                    fg = 160
                    bg = 235
            if context.marked:
                attr |= bold | reverse
                fg = 237
                bg = 47
            if context.message:
                if context.bad:
                    attr |= bold
                    fg = 160
                    bg = 235
            if context.loaded:
                bg = self.progress_bar_color

lines 95 - 112

perhaps the statusbar fg variables can change the fg of progressbar

hope some how it helps if not i will back out here.


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#1965 2015-05-22 16:37:33

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

@Hund

Note the last line:

        elif context.in_statusbar:
            if context.permissions:
                if context.good:
                    fg = 2
                elif context.bad:
                    fg = 160
                    bg = 235
            if context.marked:
                attr |= bold | reverse
                fg = 237
                bg = 47
            if context.message:
                if context.bad:
                    attr |= bold
                    fg = 160
                    bg = 235
            if context.loaded:
                bg = self.progress_bar_color
                fg = red

Nice colorscheme btw.

Last edited by hut (2015-05-22 17:16:08)


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#1966 2015-05-22 20:20:57

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Ranger, a textbased filemanager

VanillaFunk wrote:

it seems like a lot of colors in this theme are defined from progress_bar_color

        elif context.in_statusbar:
            if context.permissions:
                if context.good:
                    fg = 2
                elif context.bad:
                    fg = 160
                    bg = 235
            if context.marked:
                attr |= bold | reverse
                fg = 237
                bg = 47
            if context.message:
                if context.bad:
                    attr |= bold
                    fg = 160
                    bg = 235
            if context.loaded:
                bg = self.progress_bar_color

lines 95 - 112

perhaps the statusbar fg variables can change the fg of progressbar

hope some how it helps if not i will back out here.

hut wrote:

@Hund

Note the last line:

        elif context.in_statusbar:
            if context.permissions:
                if context.good:
                    fg = 2
                elif context.bad:
                    fg = 160
                    bg = 235
            if context.marked:
                attr |= bold | reverse
                fg = 237
                bg = 47
            if context.message:
                if context.bad:
                    attr |= bold
                    fg = 160
                    bg = 235
            if context.loaded:
                bg = self.progress_bar_color
                fg = red

Nice colorscheme btw.

I cant solve it and I feel really stupid atm. sad Thank you for taking your time trying to help me though! I really appreciate it.

Offline

#1967 2015-05-22 20:46:41

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

Hund wrote:
VanillaFunk wrote:

it seems like a lot of colors in this theme are defined from progress_bar_color

        elif context.in_statusbar:
            if context.permissions:
                if context.good:
                    fg = 2
                elif context.bad:
                    fg = 160
                    bg = 235
            if context.marked:
                attr |= bold | reverse
                fg = 237
                bg = 47
            if context.message:
                if context.bad:
                    attr |= bold
                    fg = 160
                    bg = 235
            if context.loaded:
                bg = self.progress_bar_color

lines 95 - 112

perhaps the statusbar fg variables can change the fg of progressbar

hope some how it helps if not i will back out here.

hut wrote:

@Hund

Note the last line:

        elif context.in_statusbar:
            if context.permissions:
                if context.good:
                    fg = 2
                elif context.bad:
                    fg = 160
                    bg = 235
            if context.marked:
                attr |= bold | reverse
                fg = 237
                bg = 47
            if context.message:
                if context.bad:
                    attr |= bold
                    fg = 160
                    bg = 235
            if context.loaded:
                bg = self.progress_bar_color
                fg = red

Nice colorscheme btw.

I cant solve it and I feel really stupid atm. :( Thank you for taking your time trying to help me though! I really appreciate it.

I added a new line containing "fg = red". Try adding it too, at the same place. It should make the foreground red. Come to IRC, channel #ranger on irc.freenode.net, if you still have questions. IRC is more efficient for this kind of problem solving.


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#1968 2015-05-23 09:03:25

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Ranger, a textbased filemanager

hut wrote:
Hund wrote:
VanillaFunk wrote:

it seems like a lot of colors in this theme are defined from progress_bar_color

        elif context.in_statusbar:
            if context.permissions:
                if context.good:
                    fg = 2
                elif context.bad:
                    fg = 160
                    bg = 235
            if context.marked:
                attr |= bold | reverse
                fg = 237
                bg = 47
            if context.message:
                if context.bad:
                    attr |= bold
                    fg = 160
                    bg = 235
            if context.loaded:
                bg = self.progress_bar_color

lines 95 - 112

perhaps the statusbar fg variables can change the fg of progressbar

hope some how it helps if not i will back out here.

hut wrote:

@Hund

Note the last line:

        elif context.in_statusbar:
            if context.permissions:
                if context.good:
                    fg = 2
                elif context.bad:
                    fg = 160
                    bg = 235
            if context.marked:
                attr |= bold | reverse
                fg = 237
                bg = 47
            if context.message:
                if context.bad:
                    attr |= bold
                    fg = 160
                    bg = 235
            if context.loaded:
                bg = self.progress_bar_color
                fg = red

Nice colorscheme btw.

I cant solve it and I feel really stupid atm. sad Thank you for taking your time trying to help me though! I really appreciate it.

I added a new line containing "fg = red". Try adding it too, at the same place. It should make the foreground red. Come to IRC, channel #ranger on irc.freenode.net, if you still have questions. IRC is more efficient for this kind of problem solving.

Oh, I forgot to mention it, I did add it and it didnt work. I'll hop on your channel! smile

Offline

#1969 2015-05-28 08:44:36

spcmd
Member
Registered: 2015-05-18
Posts: 12

Re: Ranger, a textbased filemanager

I started using Ranger, and it's great, thank you hut!

My question is: can I somehow set a background color for the "empty" (non-context, non-filelist) parts of Ranger? I'm using a slightly transparent terminal (Termite, with bg: 0, 0, 0, 0.9), and I set the background color for the context parts, for the statusbar and for the titlebar also in my ranger colorscheme, but I'd like to set background color for the "empty spaces" in the columns too, so the whole Ranger interface would have a solid background color.

I made a screenshot, so you can see what I mean: scrot. I can see my wallpaper through Ranger. That's why I'd like to set a background color for the columns. I know that I can set the terminal background color to non-trasparent, but I'd like to use my terminal this way, and have only Ranger with a solid background color (which is non-transparent).

Offline

#1970 2015-05-28 12:16:19

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

spcmd: not possible atm. sad. If you open an issue on github ( http://github.com/hut/ranger ), someone will eventually take care of it though.


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#1971 2015-05-28 13:15:01

spcmd
Member
Registered: 2015-05-18
Posts: 12

Re: Ranger, a textbased filemanager

hut: Thank you for the quick reply! I'm sorry to hear that. sad I've opened a new issue, I hope that someone will have an idea about it. smile

The issue: Make it possible to set a solid background color for the "empty spaces" of the columns.

Offline

#1972 2015-06-04 14:58:05

Teyras
Member
Registered: 2010-07-14
Posts: 56

Re: Ranger, a textbased filemanager

Thanks for your work, hut! Is there anything I have to do for ranger to highlight syntax in C files other than installing highlight? I have found nothing else in the documentation, but highlighting in previews doesn't work.

Offline

#1973 2015-06-04 20:24:48

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: Ranger, a textbased filemanager

Great filemanager! I wonder, is there a way to search files not only in the current directory, but also in subdirectories?

UPDATE: Figured out, that one can apply a filter to the flat directory listing.

Last edited by nbd (2015-06-04 20:35:09)


bing different

Offline

#1974 2015-06-05 08:19:27

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

Re: Ranger, a textbased filemanager

@Teyras: you need scope.sh in ranger config folder ($XDG_CONFIG_HOME/ranger). The default file has highlighting support. You can copy it with

ranger --copy-config=scope

From the manual:

By default, only text files are previewed, but you can enable external preview scripts by setting the option "use_preview_script" and "preview_files" to true.

Cf. the PREVIEW section of ranger(1) for more details.

Offline

#1975 2015-06-05 11:42:07

Teyras
Member
Registered: 2010-07-14
Posts: 56

Re: Ranger, a textbased filemanager

@Ambrevar: use_preview_script complains that "Preview script undefined or not found". Is that meant to be run from ranger? If I understand it correctly, I don't need a custom scope.sh, because the default already has highlighting, right?

Offline

Board footer

Powered by FluxBB