You are not logged in.

#251 2010-04-18 20:39:34

kinhodder
Member
From: UK
Registered: 2010-04-18
Posts: 65
Website

Re: Ranger, a textbased filemanager

Wow, thanks for all your work on this, hut.

Speaking as someone whose main machine is a Mac and has been for nigh on twenty years, this is the first time I've felt at home using a file manager on Linux. Love the extensive built-in help, too.

Offline

#252 2010-04-18 21:41:57

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Ranger, a textbased filemanager

seems to work fine so far mr. hut smile

two questions:

- can you add zP (preview_directories) to the standard keys.py?
- what exactly does flushinput do?


ᶘ ᵒᴥᵒᶅ

Offline

#253 2010-04-18 21:50:02

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

Re: Ranger, a textbased filemanager

1. Yes
2. If you press many keys quickly before the first one is handled, the other keys are ignored.
It's useful if it's scrolling slowly. If you stop pressing, it will also stop scrolling :-)
But it's bad if you're copying stuff, ranger gets slow and you can't type in commands well.


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

Offline

#254 2010-04-19 01:05:44

cmlr
Member
From: Rochester, NY, USA
Registered: 2007-04-18
Posts: 99

Re: Ranger, a textbased filemanager

(1)  '%' no longer moves to the middle, but it does with the following change.  In keys.py, after
    map = keymanager.get_context('browser')
I put:
    map.dir('%', down=50, percentage=True, absolute=True)

(2)  When there's just one file or directory showing, and I delete it, then I see [empty] highlighted.  But the preview on the right doesn't change until I press <C-R>.

Offline

#255 2010-04-19 01:46:38

cmlr
Member
From: Rochester, NY, USA
Registered: 2007-04-18
Posts: 99

Re: Ranger, a textbased filemanager

'zc' and 'zd' don't work.  'zP' doesn't show up among the options when you press 'z'.

Offline

#256 2010-04-19 08:31:25

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

Re: Ranger, a textbased filemanager

Thanks, fixed. "zc" works, but... in a strange way.


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

Offline

#257 2010-04-19 10:38:39

cmlr
Member
From: Rochester, NY, USA
Registered: 2007-04-18
Posts: 99

Re: Ranger, a textbased filemanager

hut wrote:

Thanks, fixed. "zc" works, but... in a strange way.

The problem with nonempty previews of  [empty] is still there.  To repeat, this shows up when the main column has only one entry, and the preview is visible.  Deleting it means that the focus is on [empty], but the old preview still shows up unchanged.

Offline

#258 2010-04-19 15:15:05

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: Ranger, a textbased filemanager

Question: how do I use function keys in maps? I see that there is a line

map('<F1>', lambda arg: arg.fm.display_command_help(arg.wdg))

in keys.py in the console maps section, but if I try

map('<F7>', fm.open_console(cmode.COMMAND, 'mkdir '))

that doesn't do anything; I have to use KEY_F7 instead. It's no big deal, I can use that, I was just wondering.

Offline

#259 2010-04-19 16:43:23

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

Re: Ranger, a textbased filemanager

cmlr wrote:
hut wrote:

Thanks, fixed. "zc" works, but... in a strange way.

The problem with nonempty previews of  [empty] is still there.  To repeat, this shows up when the main column has only one entry, and the preview is visible.  Deleting it means that the focus is on [empty], but the old preview still shows up unchanged.

Yup. The bug has been on the TODO list for weeks, eventually I'll fix it...

eyolf wrote:

Question: how do I use function keys in maps? I see that there is a line

map('<F1>', lambda arg: arg.fm.display_command_help(arg.wdg))

in keys.py in the console maps section, but if I try

map('<F7>', fm.open_console(cmode.COMMAND, 'mkdir '))

that doesn't do anything; I have to use KEY_F7 instead. It's no big deal, I can use that, I was just wondering.

This is a bug of course. Fixed.


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

Offline

#260 2010-04-19 19:37:16

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

Re: Ranger, a textbased filemanager

Btw: Forget the plugin system. Ranger is working fine, no need to rewire everything. It would be more practical to focus on optimization now since ranger is relatively slow at copying, loading etc.


eyolf wrote:
map('<F7>', fm.open_console(cmode.COMMAND, 'mkdir '))

Since the function keys are still unused, I'm going to add midnight-commander-like hotkeys by default smile

Last edited by hut (2010-04-19 20:42:08)


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

Offline

#261 2010-04-20 02:59:21

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: Ranger, a textbased filemanager

hut wrote:

Btw: Forget the plugin system. Ranger is working fine, no need to rewire everything. It would be more practical to focus on optimization now since ranger is relatively slow at copying, loading etc.


eyolf wrote:
map('<F7>', fm.open_console(cmode.COMMAND, 'mkdir '))

Since the function keys are still unused, I'm going to add midnight-commander-like hotkeys by default smile

Excellent idea. smile

Offline

#262 2010-04-20 04:25:39

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: Ranger, a textbased filemanager

Btw: Forget the plugin system

woohoo! and perhaps a whewhew! too:)
highlights of the week are updating a brilliant and light RANGER as we now have,  and learning.

Last edited by yvonney (2010-04-22 22:44:02)

Offline

#263 2010-04-22 21:04:48

golwin
Member
From: Germany, Aachen
Registered: 2009-03-12
Posts: 35

Re: Ranger, a textbased filemanager

Wow. I'm browsing the lightweight-applications page in the wiki from time to time and just stumbled on ranger. First impression: brilliant smile
Thanks a lot hat. I guess I will now spend some time customizing and testing features wink

Last edited by golwin (2010-05-01 16:21:04)


arch64 | awesome | screen | ranger | vim | cmus | weechat | bitlbee

Offline

#264 2010-04-23 18:06:34

b4283
Member
Registered: 2008-11-26
Posts: 123

Re: Ranger, a textbased filemanager

the filter function wouldn't work..
i tried ":filter pdf" or ">filter pdf" but neither of them works.

anybody ?

Offline

#265 2010-04-24 07:54:19

cmlr
Member
From: Rochester, NY, USA
Registered: 2007-04-18
Posts: 99

Re: Ranger, a textbased filemanager

b4283 wrote:

the filter function wouldn't work..
i tried ":filter pdf" or ">filter pdf" but neither of them works.

anybody ?

Filter works for me, but only if I first execute a file and then return to directory view.  Perhaps it's a bug.

Offline

#266 2010-04-24 08:11:25

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

Re: Ranger, a textbased filemanager

You're going to have to type a R after you set the filter. There's a bug with the automatic reloading.


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

Offline

#267 2010-04-25 13:12:36

9diov
Member
Registered: 2010-04-25
Posts: 1

Re: Ranger, a textbased filemanager

Register just to say thank you. Please continue your great work, hut.

Offline

#268 2010-04-25 13:14:15

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

Re: Ranger, a textbased filemanager

Thanks smile


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

Offline

#269 2010-04-26 06:02:56

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

Re: Ranger, a textbased filemanager

Hell Hut and thanks again for this great filemanager.

Only one notice : I noticed that when I use the :find command with a word beginning or using a capital then the :find command seems not to be reactive ?

Offline

#270 2010-04-26 21:30:07

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

Re: Ranger, a textbased filemanager

eyolf wrote:

2. About tabs: would it be possible to replace the plain numbers with the directory name or (a shortened version of) the path?

You can now try the option "dirname_in_tabs", but sometimes it messes up the titlebar. Gonna fix that some day

cmlr wrote:

(2)  When there's just one file or directory showing, and I delete it, then I see [empty] highlighted.  But the preview on the right doesn't change until I press <C-R>.

Fixed that

Sirsurthur wrote:

Only one notice : I noticed that when I use the :find command with a word beginning or using a capital then the :find command seems not to be reactive ?

Yeah the algorithm was silly. It works now.

I made it use "smart case" from VIM, which means:
only lower case letters => search case insensitive
containing upper case letters => search case sensitive

hut wrote:

You're going to have to type a R after you set the filter. There's a bug with the automatic reloading.

Fixed as well.
Took me so long because I thought its going to be complicated...... but I can simply force a reload at the end of the command :)

Last edited by hut (2010-04-26 23:09:36)


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

Offline

#271 2010-04-26 23:25:43

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: Ranger, a textbased filemanager

apologies for not looking through all posts again for answer.
(I did do all 11 pages with a browser 'find' command for 'zh')

I would like RANGER to load with 'zh' already invoked.
So: I'd see all hidden files immediately and always. Do I need to do this with a script. um, a script I wouldn't know
how to write at this time that is.:)

Last edited by yvonney (2010-04-26 23:27:58)

Offline

#272 2010-04-26 23:28:18

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

Re: Ranger, a textbased filemanager

A script? not at all. Just add this line to your ~/.ranger/options.py:
show_hidden = True

If the file doesn't exist, just create it


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

Offline

#273 2010-04-26 23:29:28

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: Ranger, a textbased filemanager

I 99.9 percent thought there surely was a direct way. So, um, I don't assume!:)
FANTASTIC! So, I'm now creating the options.py file in ~/.ranger  using :touch options.py
then add the line.     show_hidden = True           NOTE: works great!

Last edited by yvonney (2010-04-26 23:34:35)

Offline

#274 2010-04-26 23:46:04

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

Re: Ranger, a textbased filemanager

Btw, in case you didn't know, all the other options are documented in here:
/usr/share/ranger/ranger/defaults/options.py


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

Offline

#275 2010-04-27 05:22:37

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

Re: Ranger, a textbased filemanager

Thanks a lot for your great work smile

Offline

Board footer

Powered by FluxBB