You are not logged in.
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
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
Is it possible to change the fg color for the progressbar?
Offline
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
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
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
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
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
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.
Last edited by Hund (2015-05-20 18:05:26)
Offline
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.
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
Offline
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.
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.
Offline
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
Offline
class Solarized(ColorScheme):
progress_bar_color = 172lines 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.
Offline
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.
Offline
@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
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.
@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.
Offline
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
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.
Oh, I forgot to mention it, I did add it and it didnt work. I'll hop on your channel!
Offline
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
spcmd: not possible atm. . 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
hut: Thank you for the quick reply! I'm sorry to hear that. I've opened a new issue, I hope that someone will have an idea about it.
The issue: Make it possible to set a solid background color for the "empty spaces" of the columns.
Offline
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
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
@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
@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