You are not logged in.

#151 2010-04-05 16:38:28

gaunt
Member
Registered: 2009-12-13
Posts: 62

Re: Ranger, a textbased filemanager

I've been using ranger and loving it, but I have one question.  Ranger successfully updates the view upon file creation/deletion, can it be made to update the view when file permissions or size change?  Perhaps only when marked files change?

Offline

#152 2010-04-05 16:40:34

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

Re: Ranger, a textbased filemanager

You can press the secret button Ctrl+R to update everyting.
I'll investigate why it's not automatically updated when permissions change when I have time


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

Offline

#153 2010-04-05 17:03:21

gaunt
Member
Registered: 2009-12-13
Posts: 62

Re: Ranger, a textbased filemanager

hut wrote:

You can press the secret button Ctrl+R to update everyting.

Ah!  That's quite sufficient for me - it's such a small feature it would probably eat up more cycles than it was worth.

Offline

#154 2010-04-05 19:09:17

aeosynth
Member
From: California
Registered: 2010-02-06
Posts: 114
Website

Re: Ranger, a textbased filemanager

hut wrote:

It seems like you're talking about the titlebar. Your home directory is only replaced with '~' in the window title, not the titlebar.

Ah, you're right. Can we get tilde replacement in the titlebar as well, or should I just hack the source myself?

Last edited by aeosynth (2010-04-05 19:10:05)

Offline

#155 2010-04-05 19:39:10

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

Re: Ranger, a textbased filemanager

aeosynth wrote:
hut wrote:

It seems like you're talking about the titlebar. Your home directory is only replaced with '~' in the window title, not the titlebar.

Ah, you're right. Can we get tilde replacement in the titlebar as well, or should I just hack the source myself?

I don't know. I kept it until now because it's more explicit, which helps if you often log in with different users. And so you can click on the directory names to navigate there. Maybe I'll change it though, or add an option for it


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

Offline

#156 2010-04-05 20:33:35

aeosynth
Member
From: California
Registered: 2010-02-06
Posts: 114
Website

Re: Ranger, a textbased filemanager

the username is already in the top left, though. it seems kind of redundant, imo. also, I just noticed that you can click on the username / hostname to bring up the home / root directory, cool.

Offline

#157 2010-04-06 01:22:10

Sara
Member
From: USA
Registered: 2009-07-09
Posts: 212
Website

Re: Ranger, a textbased filemanager

This is the best file manager ever. The first thing I always have to do when installing one is configure the colors, which I find to be a pain. Ranger nicely uses my own terminal's colors, a very pleasant surprise. Navigating files has never been more intuitive (for a person cli-oriented). Thank you!

I was very happy to see my PDFs open automagically in Zathura, and my images in Feh. Now I just got to make my XOJs open in Xournal.


Registed Linux User 483618

Offline

#158 2010-04-06 01:33:42

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

Re: Ranger, a textbased filemanager

Thankies.

It would be great to receive some patches for apps.py to support more programs. I can't determine them all by myself ^^

igor_b wrote:

you did a nice work with ranger!
just a question: would it be hard to add support for tabs? it would be a great feature.

Tabs are implemented. Type 1?G (or check the man page) for a brief description.

Edit: Look at it as a "half feature" though. It's not like as you know it from other file managers or web browsers because tabs in ranger have no own history, cursor position, etc. They save only the directory path. But the good thing is, I get them almost for free (like 50 lines of code) and in practice it should be perfectly fine in most cases

Last edited by hut (2010-04-06 13:12:10)


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

Offline

#159 2010-04-06 08:21:21

GGLucas
Member
From: The Netherlands
Registered: 2008-03-13
Posts: 113
Website

Re: Ranger, a textbased filemanager

Tabs! Very nice.

I was a bit confused at first though because if two tabs are in the same directory, they will always have the same scroll/cursor/selection, which seems counter-intuitive.

Offline

#160 2010-04-06 16:09:00

disturb
Member
Registered: 2009-12-18
Posts: 70

Re: Ranger, a textbased filemanager

Hey hut, may I ask why you switched development from ruby to python ?
Was surprised to find a ruby branch of ranger, how far back is it compared to your master branch ?

Offline

#161 2010-04-06 16:31:02

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

Re: Ranger, a textbased filemanager

Hi disturb.
I switched from ruby to python because imo pythons syntax is more clean and better suitable for a larger project. And I wanted to try something new =P. I still use ruby for smaller quick&dirty scripts, but it seemed like python is a good choice for ranger and I don't regret it.
I think the ruby branch is not very far from the master branch in terms of functionality, but it does lack quality. (and its not maintained anymore) Check it out yourself?


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

Offline

#162 2010-04-06 19:31:30

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

Re: Ranger, a textbased filemanager

The tab functionality is great. Only thing missing (I suppose) is some visual indication of the different tabs -- a "tabline".

A question and a request:

Q: Tagging -- how is it supposed to be used? Does it do anything other than copying paths to ~/.ranger/tagged?

Request: browsing archive files would be nice....

Offline

#163 2010-04-06 19:46:54

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

Re: Ranger, a textbased filemanager

small bug when renaming a file and then pressing the End-key:

Traceback (most recent call last):
  File "/usr/bin/ranger", line 54, in <module>
    main()
  File "/usr/share/ranger/ranger/__main__.py", line 123, in main
    my_fm.loop()
  File "/usr/share/ranger/ranger/core/fm.py", line 146, in loop
    ui.handle_key(key)
  File "/usr/share/ranger/ranger/gui/ui.py", line 132, in handle_key
    if DisplayableContainer.press(self, key):
  File "/usr/share/ranger/ranger/gui/displayable.py", line 285, in press
    focused_obj.press(key)
  File "/usr/share/ranger/ranger/gui/widgets/console.py", line 165, in press
    self.type_key(chr(keytuple[0]))
ValueError: chr() arg not in range(256)

ᶘ ᵒᴥᵒᶅ

Offline

#164 2010-04-06 19:52:13

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

Re: Ranger, a textbased filemanager

eyolf wrote:

The tab functionality is great. Only thing missing (I suppose) is some visual indication of the different tabs -- a "tabline".

http://omploader.org/vNDJuNw

eyolf wrote:

Q: Tagging -- how is it supposed to be used? Does it do anything other than copying paths to ~/.ranger/tagged?

Tagged files are marked with a *, nothing else. Use it as you wish. I think its quite useful to be able to mark files. For example to keep track of watched episodes of a TV series or read PDF files or just to mark a file that needs attention

eyolf wrote:

Request: browsing archive files would be nice....

Yeah. I don't need it though. Maybe someone who needs it (and can program) wants to implement it?

litemotiv wrote:

small bug when renaming a file and then pressing the End-key:

It has been fixed already, try updating ranger. Thanks though.

Last edited by hut (2010-04-06 19:53:28)


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

Offline

#165 2010-04-06 20:26:56

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

Re: Ranger, a textbased filemanager

hut wrote:
litemotiv wrote:

small bug when renaming a file and then pressing the End-key:

It has been fixed already, try updating ranger. Thanks though.

i'm going to buy you this numberplate:

2FAST-4U-150.JPG


ᶘ ᵒᴥᵒᶅ

Offline

#166 2010-04-07 10:03:09

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

Re: Ranger, a textbased filemanager

hut wrote:
eyolf wrote:

The tab functionality is great. Only thing missing (I suppose) is some visual indication of the different tabs -- a "tabline".

http://omploader.org/vNDJuNw

Right. It wasn't displayed, apparently because of some setting in my keys.py. After I've merged with the default keys.py file, it's all fine.  It might seem like something that shouldn't happen, though: that a setting in a keyconfig file would affect the layout.

Offline

#167 2010-04-07 15:34:03

disturb
Member
Registered: 2009-12-18
Posts: 70

Re: Ranger, a textbased filemanager

I just moved to zsh, and was looking into intergating ranger.

The following is adapted from the tip on the github page, which  works with bash, but not zsh, as well as colfm.zsh, a strangely similar project.

# source from, or add to ~/.zshrc
# Ctrl-O opens zsh at the current location, and on exit, cd into ranger's last location.
ranger () {
     command ranger "$(pwd)" <$TTY
     print -n "\033[A"
     zle && zle -I
     cd "$(grep \^\' ~/.ranger/bookmarks | cut -b3-)"
}
zle -N ranger
bindkey "^O" ranger

@hut : I couldn't figure out how to use the Alt (aka Meta) key in keys.py, how can I do that ?

Offline

#168 2010-04-07 15:46:39

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

Re: Ranger, a textbased filemanager

disturb wrote:

I just moved to zsh, and was looking into intergating ranger.

The following is adapted from the tip on the github page, which  works with bash, but not zsh, as well as colfm.zsh, a strangely similar project.

# source from, or add to ~/.zshrc
# Ctrl-O opens zsh at the current location, and on exit, cd into ranger's last location.
ranger () {
     command ranger "$(pwd)" <$TTY
     print -n "\033[A"
     zle && zle -I
     cd "$(grep \^\' ~/.ranger/bookmarks | cut -b3-)"
}
zle -N ranger
bindkey "^O" ranger

@hut : I couldn't figure out how to use the Alt (aka Meta) key in keys.py, how can I do that ?

What are you trying to achieve? cd after exit? I have no problems using my script in zsh:

ranger() {
    $(which ranger) $@ &&
    cd "$(grep \^\' ~/.ranger/bookmarks | cut -b3-)"
}

Alt keys aren't supported at the moment but should be very soon.

About colfm: when I first saw a screenshot of colfm I thought it was a modified ranger version big_smile
But it's something completely different and was most likely developed independently of ranger. I might steal some of it's features later :>


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

Offline

#169 2010-04-07 15:52:49

disturb
Member
Registered: 2009-12-18
Posts: 70

Re: Ranger, a textbased filemanager

hmm maybe there's something in my config that was conflicting, but "which ranger" return the function definition here...

➜  ~  which ranger
ranger () {
    $(which ranger) $@ && cd "$(grep \^\' ~/.ranger/bookmarks | cut -b3-)"
}
➜  ~

About colfm, indeed, it has some nice ideas too, albeit less featureful and pretty.

Anyway, please DO implement alt, much needed for an emacsen keymap tongue

cheers

Offline

#170 2010-04-07 16:01:13

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

Re: Ranger, a textbased filemanager

Oh. Use /usr/bin/ranger instead of $(which ranger) then.

EDIT:
Also, command ranger works just fine.

EDIT2:
I think the script of colfm is so complicated because otherwise it won't work with zsh's bindkey command and the invocation with ^O.

If you're ok with having to type in the name, use my shorter function

Last edited by hut (2010-04-07 16:38:19)


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

Offline

#171 2010-04-07 18:56:35

igor_b
Member
Registered: 2010-03-05
Posts: 14

Re: Ranger, a textbased filemanager

hut wrote:

Tabs are implemented. Type 1?G (or check the man page) for a brief description.

wooow! now it has everything big_smile
nicely done!

Offline

#172 2010-04-08 14:20:26

erno
Member
Registered: 2009-08-24
Posts: 71

Re: Ranger, a textbased filemanager

Can mouse usage be made optional? I sometimes click on links in the preview pane but don't want to open the file.

Offline

#173 2010-04-08 14:23:03

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

Re: Ranger, a textbased filemanager

Yeah, thats something I should have done a long time ago =P thanks for reminding me.

For now, you can use shift+click to avoid the mouse handler.

Edit: There is a boolean option for that now: mouse_enabled

Last edited by hut (2010-04-08 15:42:26)


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

Offline

#174 2010-04-08 22:46:45

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Ranger, a textbased filemanager

There are issues moving/copying files from my ext4 ~ to my fat32 thumb drive. It copies the first file, then displays "permission denied: filename" and stops. It works fine with plain cp.

Offline

#175 2010-04-08 23:39:24

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

Re: Ranger, a textbased filemanager

JohannesSM64 wrote:

There are issues moving/copying files from my ext4 ~ to my fat32 thumb drive. It copies the first file, then displays "permission denied: filename" and stops. It works fine with plain cp.

Please run ranger with --debug, try to reproduce it and show me the backtrace.
Any other details would be helpful. Does the first file get fully copied? If you skip the first file (don't mark it when you press yy) and start with the second one, does *it* get copied?


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

Offline

Board footer

Powered by FluxBB