You are not logged in.

#1101 2011-10-03 05:48:52

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: Ranger, a textbased filemanager

hut wrote:
sant527 wrote:
if f.extension in ('pdf', ):
                                return self.either(c, 'foxitreader', 'okular'
, 'gimp')

Between the two lines, add

c.flags += 'd'

Thank you

hut wrote:
sant527 wrote:

Also I want ranger to show the size of the directories ( not the number of files) but the size in MB or GB. And I want to sort  as per this size.

That is currently not supported

atleast can it sort the file size option from smaller to larger. in the "du" command

Offline

#1102 2011-10-03 12:40:57

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

Re: Ranger, a textbased filemanager

sant527 wrote:
hut wrote:
sant527 wrote:

Also I want ranger to show the size of the directories ( not the number of files) but the size in MB or GB. And I want to sort  as per this size.

That is currently not supported

atleast can it sort the file size option from smaller to larger. in the "du" command

Yup, that's what the dU key binding is for. It takes longer though, since it has to wait until all sizes had been calculated before it can sort.


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

Offline

#1103 2011-10-04 14:43:15

aksr
Member
Registered: 2011-03-16
Posts: 14

Re: Ranger, a textbased filemanager

Hut,

I added the code to ~/.config/ranger/keys.py for `move to trash` from https://wiki.archlinux.org/index.php/Ranger .
But it's not working. I'm using latest Ranger.
BTW, excellent FM.

Offline

#1104 2011-10-04 17:06:53

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

Re: Ranger, a textbased filemanager

The new version's heavily revamped.

A straight port goes like this (UNTESTED) in your rc.conf:

map DD shell mv -t /home/myname/.Trash %s

I prefer trash-cli so use this:

map DD shell trash-put %s

The advantage is that you get timestamps, restore, etc..

Last edited by Veedrac (2011-10-04 17:07:27)

Offline

#1105 2011-10-04 18:35:36

aksr
Member
Registered: 2011-03-16
Posts: 14

Re: Ranger, a textbased filemanager

I found out that I must enter command-mode(:), then to press `DD`. Is this supposed to be like this ?

Offline

#1106 2011-10-04 19:07:15

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

Re: Ranger, a textbased filemanager

aksr wrote:

I found out that I must enter command-mode(:), then to press `DD`. Is this supposed to be like this ?

No. Can you post your rc.conf or your keys.py etc.? It'd help me see what happened.

Last edited by Veedrac (2011-10-04 20:15:48)

Offline

#1107 2011-10-05 16:50:45

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

Re: Ranger, a textbased filemanager

aksr wrote:

I found out that I must enter command-mode(:), then to press `DD`. Is this supposed to be like this ?

Maybe you accidently wrote "cmap" instead of "map"?


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

Offline

#1108 2011-10-05 17:25:17

Sirsurthur
Member
Registered: 2009-02-02
Posts: 124

Re: Ranger, a textbased filemanager

Hi Hut,

With latest pull of ranger-git, I have a bug when I type <r> (for open with) then "nano". Nothing is happening (file is not opening). Instead I got this warning in my terminal :

[~]$ ranger
Failed to run: ('nano', <ranger.core.runner.Context object at 0x9e3448c>)

Best regards,
Sirsurthur

Offline

#1109 2011-10-05 17:48:03

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

Re: Ranger, a textbased filemanager

Sirsurthur wrote:

Hi Hut,

With latest pull of ranger-git, I have a bug when I type <r> (for open with) then "nano". Nothing is happening (file is not opening). Instead I got this warning in my terminal :

[~]$ ranger
Failed to run: ('nano', <ranger.core.runner.Context object at 0x9e3448c>)

Best regards,
Sirsurthur

Thank you and sorry for the inconvenience. Fixed

By the way, if you set the environment variable EDITOR=nano, it will always run nano (on text files anyway). No need to mess with apps.py.

Last edited by hut (2011-10-05 17:50:26)


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

Offline

#1110 2011-10-08 19:43:26

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

Re: Ranger, a textbased filemanager

Update: --copy-config is obsolete. Ranger now automatically copies configuration files filled with documentation to your ~/.config/ranger. Disable with --dont-copy-config.

Please test ranger thoroughly, I'm eager to make another release! :)

The difference between stable and master has already become too big, and I think that master is actually more stable than the stable branch...

96 files changed, 4407 insertions(+), 5824 deletions(-)

Last edited by hut (2011-10-09 15:29:02)


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

Offline

#1111 2011-10-08 20:13:45

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

Re: Ranger, a textbased filemanager

What motivated this change? I would have thought it made sense the first way.

Offline

#1112 2011-10-08 20:40:21

Revolt
Member
From: Portugal
Registered: 2009-06-11
Posts: 71
Website

Re: Ranger, a textbased filemanager

==> Running setup.py...
error: can't copy 'ranger/data/config_examples': doesn't exist or not a regular file

I get this while installing ranger-git so I guess it is related to the latest version.

I also think it made much more sense the way it was before (regarding the config files).

Offline

#1113 2011-10-08 20:47:06

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

Re: Ranger, a textbased filemanager

1. If you copy the defaults with --copy-config=all and update later, your configs are not updated. If the defaults are fixed in upstream, they will still be broken for you. Ranger doesn't copy the defaults anymore, instead it copies documented examples which do nothing by default.

2. It seems more user-friendly to me if there are some examples in your config directory, put there automatically.

What do you object with? The automatical copying or the coping of examples instead of defaults?



Revolt wrote:
==> Running setup.py...
error: can't copy 'ranger/data/config_examples': doesn't exist or not a regular file

I get this while installing ranger-git so I guess it is related to the latest version.

I also think it made much more sense the way it was before (regarding the config files).

Silly setup script. Fixed, thanks.

Last edited by hut (2011-10-08 20:53:11)


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

Offline

#1114 2011-10-08 21:02:17

Revolt
Member
From: Portugal
Registered: 2009-06-11
Posts: 71
Website

Re: Ranger, a textbased filemanager

I agree with you regarding the copied configs having only commented examples that do nothing. However, I don't really see the point in automatically copying them unless the user really does want to configure stuff (in which case running ranger --copy-config is simple enough). However, this is a super minor issue and doesn't really bother me at all wink

Offline

#1115 2011-10-08 21:21:11

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

Re: Ranger, a textbased filemanager

Same here, especially as I don't like loose config files lying around. I like the documentation-only approach, but automatically copying seems inconvenient, especially when you don't want to configure ranger. It doesn't really affect me - I've already got a config - but it seems like a very odd choice.

Last edited by Veedrac (2011-10-08 21:21:25)

Offline

#1116 2011-10-09 15:29:35

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

Re: Ranger, a textbased filemanager

Okay, I'm convinced that automatically copying configs is too intrusive. I reverted the changes for now.


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

Offline

#1117 2011-10-11 21:11:19

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

Re: Ranger, a textbased filemanager

ranger 1.5.0 is out.
There's not much new if you used ranger-git before, but there are lots of (backward-incompatible) changes for ranger-stable users.
Changelog is on http://ranger.nongnu.org/


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

Offline

#1118 2011-10-11 21:23:57

SquareRoot
Member
From: Granville, Ohio USA
Registered: 2011-10-08
Posts: 7

Re: Ranger, a textbased filemanager

Greetings,

New Ranger user here. Nice FM, thanks for all your efforts hut!

After reviewing this thread and not finding an answer to my concern, I was hoping the forum could help....

I prefer not to have <RIGHT> nor "l" edit a file.

I prefer only <CR> edit a file.

Seems to me that "move right=1" should not default to edit.

Any ideas?

Offline

#1119 2011-10-11 21:31:05

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

Re: Ranger, a textbased filemanager

SquareRoot: Uhm... you'll have to code this.

map l eval fm.env.cf.is_directory and fm.move(right=1)
copymap l <right>

Last edited by hut (2011-10-11 21:34:29)


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

Offline

#1120 2011-10-11 21:48:55

SquareRoot
Member
From: Granville, Ohio USA
Registered: 2011-10-08
Posts: 7

Re: Ranger, a textbased filemanager

hut,

Excellent! That works.
Your support is amazing and this tool is SO flexible!

I suffer from MC finger memory and notice that F1, F3, F4, and F5 do not seem to work.
F7, F8, and F10 do work.
Not sure about F6 yet.

Any ideas?

Offline

#1121 2011-10-11 22:30:38

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

Re: Ranger, a textbased filemanager

They work for me. What do you expect them to do? Note that F5 and F6 are like pressing "yy" (copy) and "dd" (cut) in vim. So in order to start copying/cutting, you have to move to the destination and press "pp" (for paste) first.


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

Offline

#1122 2011-10-11 23:03:58

SquareRoot
Member
From: Granville, Ohio USA
Registered: 2011-10-08
Posts: 7

Re: Ranger, a textbased filemanager

OK, confirmed F5 and F6 work as well as F7, F8, F10.

F1, F3, and F4 still not working.

Offline

#1123 2011-10-11 23:14:26

SquareRoot
Member
From: Granville, Ohio USA
Registered: 2011-10-08
Posts: 7

Re: Ranger, a textbased filemanager

xterm - all Fn work.

gnome terminal - F1 does not work.

urxvt - F1, F3, F4 does not work.

Offline

#1124 2011-10-11 23:17:54

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

Re: Ranger, a textbased filemanager

SquareRoot, I wrote you a mail. Let's not debug this here.


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

Offline

#1125 2011-10-12 00:47:27

igndenok
Member
From: Sidoarjo, Indonesia
Registered: 2010-06-07
Posts: 160

Re: Ranger, a textbased filemanager

hut, I can't use search, touch, delete file (I use `map DD delete yes'), and maybe there's others.
Error message (using ranger-git, no problem with 20111009)

global name 'parse' is not defined

Ask, and it shall be given you.
Seek, and ye shall find.
Knock, and it shall be opened unto you.

Offline

Board footer

Powered by FluxBB