You are not logged in.

#1751 2013-08-05 04:15:00

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: Ranger, a textbased filemanager

Offline

#1752 2013-08-05 04:20:58

Veedrac
Member
Registered: 2011-07-19
Posts: 81

Re: Ranger, a textbased filemanager

z1lt0id wrote:

Does anyone else here have any issues with urxvt and displaying image previews with w3m?

Probably. As hut said, the whole thing's a hack. What's wrong and what have you tried. Have you tried the "--debug" flag, and what happens then?

Offline

#1753 2013-08-05 04:32:18

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: Ranger, a textbased filemanager

it works with urxvt from community

Edit: you need to edit the config's default in rangers configs.

Last edited by bleach (2013-08-05 10:40:10)

Offline

#1754 2013-08-05 04:33:24

psli
Member
From: Santa Clara, CA
Registered: 2012-10-18
Posts: 8

Re: Ranger, a textbased filemanager

Try commenting out URxvt.depth: 32 in your .Xresources file.

EDIT: Nevermind, that would also disable your transparency.

Last edited by psli (2013-08-05 04:40:08)

Offline

#1755 2013-08-05 10:30:54

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: Ranger, a textbased filemanager

psli wrote:

Try commenting out URxvt.depth: 32 in your .Xresources file.

EDIT: Nevermind, that would also disable your transparency.

So it only works if you have URxvt.depth disabled.  That is a shame.  Tested and working with that line commented out.
Is there a way to load up an instance of urxvt that disables depth purely for ranger.

EDIT:
So I noticed if I did this.

urxvt -depth 16

Ranger works with previews.  It comes up with a warning message though but it doesn't really matter.

urxvt: no visual found for requested depth 16, using default visual.

Last edited by z1lt0id (2013-08-05 10:47:10)

Offline

#1756 2013-08-05 10:48:10

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: Ranger, a textbased filemanager

I have never had an issue with urxvt and ranger with inbeded images(w3m) do you get some kind of error?

also do you have it enabled in  your ranger config.

Offline

#1757 2013-08-05 10:57:06

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: Ranger, a textbased filemanager

bleach wrote:

I have never had an issue with urxvt and ranger with inbeded images(w3m) do you get some kind of error?

also do you have it enabled in  your ranger config.

I do have it enabled.  When urxvt depth is set to 32 in .Xdefaults it brings up the error message.

failed to execute w3mimgdisplay

But if I disable the urxvt depth the image shows up.

Offline

#1758 2013-08-09 05:09:24

nil
Member
Registered: 2012-10-15
Posts: 33

Re: Ranger, a textbased filemanager

Is there any way to hide specific segments of the interface? In particular, I've been wanting to hide the user@host thing for a long time, not just setting the fg and bg to be the same color.

Offline

#1759 2013-08-09 05:52:44

loop
Member
Registered: 2011-05-06
Posts: 58

Re: Ranger, a textbased filemanager

@nil, you can comment out lines:

bar.add(self.fm.username, 'hostname', clr, fixed=True)
bar.add('@', 'hostname', clr, fixed=True)
bar.add(self.fm.hostname, 'hostname', clr, fixed=True)
bar.add(':', 'hostname', clr, fixed=True)

in ~/.ranger/ranger/gui/widgets/titlebar.py

Offline

#1760 2013-08-09 06:01:16

nil
Member
Registered: 2012-10-15
Posts: 33

Re: Ranger, a textbased filemanager

loop wrote:

@nil, you can comment out lines:

bar.add(self.fm.username, 'hostname', clr, fixed=True)
bar.add('@', 'hostname', clr, fixed=True)
bar.add(self.fm.hostname, 'hostname', clr, fixed=True)
bar.add(':', 'hostname', clr, fixed=True)

in ~/.ranger/ranger/gui/widgets/titlebar.py

Awesome, thanks! Looks like I know where to where to change the other segments too. For the record, the file path for me was /usr/lib/python3.3/site-packages/ranger/gui/widgets/titlebar.py

Offline

#1761 2013-08-11 07:33:00

nil
Member
Registered: 2012-10-15
Posts: 33

Re: Ranger, a textbased filemanager

Is it possible to close ranger at some directory and have ranger automatically start up at the directory it quits in? I don't think there's a default option for this, but perhaps some workaround? I was thinking of remapping 'q' to do something like, bookmark current directory, and then quit. Then I would alias ranger so that it would open that bookmark, although as far as I know, ranger only takes explicit file paths.

Offline

#1762 2013-08-11 10:57:24

loop
Member
Registered: 2011-05-06
Posts: 58

Re: Ranger, a textbased filemanager

@nil, ranger stores the last opened directory to bookmark "'" (single quote). So, you can press '' (quote key twice) after ranger restart. Maybe there is the way to run this thing automatically at sturtup, I'm not sure.

Offline

#1763 2013-08-11 13:51:07

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Ranger, a textbased filemanager

Hi guys,

I am currently diving into ranger.

Question: How can I create a zip archive by selecting multiple files/folders in ranger?

Offline

#1764 2013-08-11 14:02:01

loop
Member
Registered: 2011-05-06
Posts: 58

Re: Ranger, a textbased filemanager

Hi, @orschiro, you can use the compress command.

Offline

#1765 2013-08-11 15:30:07

Veedrac
Member
Registered: 2011-07-19
Posts: 81

Re: Ranger, a textbased filemanager

Just as a reminder, the recommended place for questions has moved to the Q&A

Offline

#1766 2013-08-14 16:27:06

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: Ranger, a textbased filemanager

Hi Hut, I am now using Stable 1.6.1, I used to use the "extracthere" command from the Arch Wiki, now when I try to use it it's gives an error,

Global Name "CommandLoader" is not defined.

Any idea what this is? Has something changed in this version?

Thanks for any help


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#1767 2013-08-15 06:05:28

Veedrac
Member
Registered: 2011-07-19
Posts: 81

Re: Ranger, a textbased filemanager

jk121960 wrote:

Hi Hut, I am now using Stable 1.6.1, I used to use the "extracthere" command from the Arch Wiki, now when I try to use it it's gives an error,

Global Name "CommandLoader" is not defined.

Any idea what this is? Has something changed in this version?

I assume you missed the

from ranger.core.loader import CommandLoader

part.

As an aside, if you have atool you should just be able to do "r1", though, no?

Offline

#1768 2013-08-15 11:19:49

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: Ranger, a textbased filemanager

Huh?, Thanks for that It had been so ling since I got that command out of the wiki, that I didn't remember adding that reference. I just moved code from version to version. I added it and everything is fine.

thanks very much for your help.

Last edited by jk121960 (2013-08-15 11:20:34)


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#1769 2013-08-15 21:07:29

szebenyib
Member
From: LHBP
Registered: 2011-10-18
Posts: 68

Re: Ranger, a textbased filemanager

Hi!
Have any of you met problems with sorting? It seems to happen with unicode characters.
The sorting happens like this:
abc...xyz...Áö etc. So the 'normal' English alphabet comes first with unique characters to my language (Hungarian) afterwards which should not be the case.
It should be like: aábc....mnoóöőp...z
I have installed python-chardet as suggested on the homepage of ranger, however it did not help.

Offline

#1770 2013-08-16 06:26:51

loop
Member
Registered: 2011-05-06
Posts: 58

Re: Ranger, a textbased filemanager

I have unicode problems too, but not with the "scout" command. E.g. I have a filename with an uppercased versions of the character "Д" in it. When I run scout with lowercase version of the char:

scout -rtsfi д

it has no effect on the mentioned filename, but the ignore case is enabled (-i) though. If I hit the uppercase character to scout- it works fine.

Offline

#1771 2013-08-20 09:19:13

freek
Member
From: the Netherlands
Registered: 2008-07-21
Posts: 73
Website

Re: Ranger, a textbased filemanager

Maybe silly but .. statusbar is on top .. how do I get it on the bottum ?

Last edited by freek (2013-08-20 09:20:18)


there's no business like .. your own business

Offline

#1772 2013-08-21 12:40:16

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Ranger, a textbased filemanager

freek wrote:

Maybe silly but .. statusbar is on top .. how do I get it on the bottum ?

rc.conf

# Draw the status bar on top of the browser window (default: bottom)
set status_bar_on_top false

Offline

#1773 2013-08-21 17:20:31

freek
Member
From: the Netherlands
Registered: 2008-07-21
Posts: 73
Website

Re: Ranger, a textbased filemanager

OK100 wrote:
freek wrote:

Maybe silly but .. statusbar is on top .. how do I get it on the bottum ?

rc.conf

# Draw the status bar on top of the browser window (default: bottom)
set status_bar_on_top false

That's what I thought .. but didn't work

 :set status_bar_on_top false 

add

 set staus_bar_on_top false 

to rc.conf (.config/ranger/rc.conf and /usr/share/ranger/ranger/config/rc.conf)

why ?

debian testing / ranger-stable 1.6.0 - Python 2.7.5+


there's no business like .. your own business

Offline

#1774 2013-08-22 13:51:59

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

Re: Ranger, a textbased filemanager

freek wrote:
OK100 wrote:
freek wrote:

Maybe silly but .. statusbar is on top .. how do I get it on the bottum ?

rc.conf

# Draw the status bar on top of the browser window (default: bottom)
set status_bar_on_top false

That's what I thought .. but didn't work

 :set status_bar_on_top false 

add

 set staus_bar_on_top false 

to rc.conf (.config/ranger/rc.conf and /usr/share/ranger/ranger/config/rc.conf)

why ?

debian testing / ranger-stable 1.6.0 - Python 2.7.5+

The statusbar is at the bottom by default. You probably mean the title bar. See here: http://ranger.carina.uberspace.de/qa/24 … -title-bar


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

Offline

#1775 2013-08-24 14:57:35

havoc
Member
Registered: 2009-04-10
Posts: 9

Re: Ranger, a textbased filemanager

How to use wine program in rifle.conf?

I have Microsoft Office installed in wine, and there is simple scripts ~/bin/word:

#!/bin/bash
env WINEPREFIX="/home/havoc/win32" wine C:\\Program\ Files\\Microsoft\ Office\\Office12\\WINWORD.EXE $@

In ranger, i can correctly open docx file using command

:shell word %f 

Then i add settings in rifle.conf:

ext docx?,   X, flag f = word "$@" 

But in ranger, when open a docx file, there is just an empty Word. The file name is not passed to Word.

What's the correct way? thanks

Last edited by havoc (2013-08-27 15:58:23)

Offline

Board footer

Powered by FluxBB