You are not logged in.

#476 2010-09-10 02:02:17

msx
Member
From: solar.system/earth/ar/bue/mdp
Registered: 2010-08-08
Posts: 184
Website

Re: Ranger, a textbased filemanager

Hi hut, guys

I recently discovered this little marvel on this blog post: http://kmandla.wordpress.com/2010/04/23 … -managers/ - which being as scatterbrained as I'm I think was the author's blog ¬¬
I have two questions regarding Ranger:
1. Can I help in any way to translate it to spanish?
2. Where can I find the source code to give it away to people using other distros?

Martín

Last edited by msx (2010-09-10 02:03:37)


Enjoying i3wm w/ lifebar + j4-dmenu-desktop + tab_windows / fish shell / Emacs / tmux / Konsole / KDE apps
Arch + Linux-libre kernel: ParabolaGNULinux.org

Offline

#477 2010-09-10 02:04:09

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Ranger, a textbased filemanager

msx wrote:

I have two question regarding Ranger:
1. Can I help in any way to translate it to spanish?
2. Where can I find the source code to give it away to people using other distros?
Martín

1) You could fork his github project and translate
2) Github (http://github.com/hut/ranger)

Offline

#478 2010-09-11 12:34:31

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

Re: Ranger, a textbased filemanager

msx wrote:

Hi hut, guys

I recently discovered this little marvel on this blog post: http://kmandla.wordpress.com/2010/04/23 … -managers/ - which being as scatterbrained as I'm I think was the author's blog ¬¬
I have two questions regarding Ranger:
1. Can I help in any way to translate it to spanish?
2. Where can I find the source code to give it away to people using other distros?

Martín

Hello Martín
The source code can also be found here: https://savannah.nongnu.org/projects/ranger
Just get the "latest snapshot of the master branch", or use git if you wish.
The direct url: http://git.savannah.gnu.org/cgit/ranger … ter.tar.gz

About translations:
One problem is that when features change, the documentation (plus translation) has to be updated too.
So I guess it makes sense to translate stable packages only.
Please work on the master brach, I won't change (many) features until the next stable version comes out.


There are several things which can be translated:
1. man page
2. help text (press ? in ranger)
3. README file and others
4. source code comments
5. commands, like :quit, :search, ...
I don't think 4 and 5 should be translated, Here are basic instructions on 1-3:

1. For translating the man page, edit doc/ranger.1. You can preview it easily with

man -l doc/ranger.1

2. The help texts are located in ranger/help/. Only change the content, not the filenames.
3. straight forward... README, INSTALL are the most important, I guess

Translate as much as you like and send me the result, I'll create a spanish package out of it for version 1.2.0 which is coming soon.

Last edited by hut (2010-09-11 12:35:48)


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

Offline

#479 2010-09-11 13:39:25

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

archman-cro wrote:

I've come up with an idea. Is it possible to implement a "copy/paste" bar left of the rotating slash sign (which is active when you copy files)? Something similar to pacman when it downloads packages. It'd be cool to have it, so you can know how much ~time is left to copy/move some file(s). smile

Something like this:

=> (~5% done)
==> (~10% done)
===> etc
========> etc
==================>

Hut, can you comment on this? Can it be implemented?

Offline

#480 2010-09-11 14:06:49

cbrunos
Member
Registered: 2010-07-22
Posts: 55

Re: Ranger, a textbased filemanager

Hello everybody!
Sorry if this was already asked, but how do I can easily unmount media with ranger?
Thanks!


Xmonad gets sh*t done. Fast.

Offline

#481 2010-09-11 15:28:26

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Ranger, a textbased filemanager

ignore me

Last edited by Army (2010-09-11 15:29:42)

Offline

#482 2010-09-11 15:44:41

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

cbrunos wrote:

Hello everybody!
Sorry if this was already asked, but how do I can easily unmount media with ranger?
Thanks!

I don't think ranger can mount/unmount media. I just use mount/umount in a terminal. It's easy.

Offline

#483 2010-09-11 17:16:27

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

Re: Ranger, a textbased filemanager

archman-cro wrote:
archman-cro wrote:

I've come up with an idea. Is it possible to implement a "copy/paste" bar left of the rotating slash sign (which is active when you copy files)? Something similar to pacman when it downloads packages. It'd be cool to have it, so you can know how much ~time is left to copy/move some file(s). smile

Something like this:

=> (~5% done)
==> (~10% done)
===> etc
========> etc
==================>

Hut, can you comment on this? Can it be implemented?

I've got little time for ranger at the moment, and in this time I'm working on implementing other ideas. Perhaps in the future.

archman-cro wrote:
cbrunos wrote:

Hello everybody!
Sorry if this was already asked, but how do I can easily unmount media with ranger?
Thanks!

I don't think ranger can mount/unmount media. I just use mount/umount in a terminal. It's easy.

Try selecting the root directory of the medium and type @umount<enter>
(This doesnt work ("device busy") if you started ranger from inside a directory on this medium.)


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

Offline

#484 2010-09-11 17:20:07

cbrunos
Member
Registered: 2010-07-22
Posts: 55

Re: Ranger, a textbased filemanager

hut wrote:
cbrunos wrote:

Hello everybody!
Sorry if this was already asked, but how do I can easily unmount media with ranger?
Thanks!

Try selecting the root directory of the medium and type @umount<enter>
(This doesnt work ("device busy") if you started ranger from inside a directory on this medium.)

It works! Thanks a lot, I won't be needing pcmanfm anymore ^^
This file manager is really great!


Xmonad gets sh*t done. Fast.

Offline

#485 2010-09-13 11:34:58

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

Re: Ranger, a textbased filemanager

Version 1.2 (stable) is out on the git and soon in the AUR too.

1.1.2 -> 1.2:
* !!! Changed the default configuration directory to ~/.config/ranger !!!
* Removed "Console Modes", each old mode is now a simple command
* Disabled file previews by default if ranger is used by root
* Allow to jump to specific help sections by typing two numbers, e.g. 13?
* Added keys: da, dr, ya, yr for adding and removing files from copy buffer
* Added keys: gl and gL to resolve links, see 11?
* Added key: pL to create a relative symlink
* Added %<LETTER> and %<N><LETTER> macros for the console, see 33?
* Fixed ansi codes for colors in the pager
* Use the file ~/.mime.types for mime type detection
* Several clean-ups and fixes

Planned for the next version:
1. Simplified configuration file (One vim-like rc file with a list of commands and one command definition file in python.)
The prototype for the rc file is here: http://git.savannah.gnu.org/cgit/ranger … ts/rc?h=rc
Command definitions would look pretty much like the current commands.py.
2. Perhaps lazy loading of directories for speed improvement, perhaps threads


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

Offline

#486 2010-09-15 22:21:45

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: Ranger, a textbased filemanager

discovered a really mean bug. To reproduce:

1) yy some files/folders.
2) hit pp in some folder
3) change folder

result: the files/folders that have not been copied at the time 3) happens, will be copied to the folder you switched to in 3)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#487 2010-09-15 22:35:16

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Ranger, a textbased filemanager

I actually _had_ this bug, but seems like it's gone. I wanted to report this a few posts ago when I edited my text to "Ignore me".

Offline

#488 2010-09-15 23:08:04

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

Re: Ranger, a textbased filemanager

Only one copy process runs at a time. When you start the second copy, the first will be interrupted until the second one is finished.
This is because ranger assumes the newer command is more important.
Maybe this is what you mean?


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

Offline

#489 2010-09-16 15:35:25

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

Hello,

How to open urxvt with ":terminal" in a current directory? I've tried editing "commands.py", but it doesn't open the terminal. Any hints, maybe?

Offline

#490 2010-09-16 16:11:52

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

Re: Ranger, a textbased filemanager

archman-cro wrote:

Hello,

How to open urxvt with ":terminal" in a current directory? I've tried editing "commands.py", but it doesn't open the terminal. Any hints, maybe?

In commands.py, you can change the line

self.fm.run('x-terminal-emulator', flags='d')

to

self.fm.run('urxvt', flags='d')

OR try "ln -s /usr/bin/urxvt ~/bin/x-terminal-emulator" if ~/bin is in your $PATH.


Army wrote:

I actually _had_ this bug, but seems like it's gone. I wanted to report this a few posts ago when I edited my text to "Ignore me".

Okay, the bug IS there, it happens under these circumstances: If you yank 2 or more directories, paste them and change the directory before the copying process is complete.
This is fixed in git and version 1.2.1.


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

Offline

#491 2010-09-16 16:20:07

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

hut wrote:

In commands.py, you can change the line

self.fm.run('x-terminal-emulator', flags='d')

to

self.fm.run('urxvt', flags='d')

Yeah, tried that, but it's not opening urxvt. Nothing happens.

hut wrote:

OR try "ln -s /usr/bin/urxvt ~/bin/x-terminal-emulator" if ~/bin is in your $PATH.

Hmm, I don't have ~/bin, so what should I do?
Also, I can't find any info on "x-terminal-emulator"...

Offline

#492 2010-09-16 18:28:25

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Ranger, a textbased filemanager

hut wrote:
Army wrote:

I actually _had_ this bug, but seems like it's gone. I wanted to report this a few posts ago when I edited my text to "Ignore me".

Okay, the bug IS there, it happens under these circumstances: If you yank 2 or more directories, paste them and change the directory before the copying process is complete.
This is fixed in git and version 1.2.1.

Yepp, I misunderstood the description he gave. I always had the problem, that for example when I yanked 2 big movie files and pasted them into a directory, the first one started to be copied to that directory. But in case I changed the directory while the first one was copied, the second one was copied into the directory I was in at that moment. But seems like you fixed that longer ago.

Offline

#493 2010-09-16 20:50:35

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

Re: Ranger, a textbased filemanager

archman-cro wrote:
hut wrote:

In commands.py, you can change the line

self.fm.run('x-terminal-emulator', flags='d')

to

self.fm.run('urxvt', flags='d')

Yeah, tried that, but it's not opening urxvt. Nothing happens.

Are you sure that your commands.py is at this location?
$XDG_CONFIG_HOME/ranger/commands.py
or if $XDG_CONFIG_HOME is not set:
$HOME/.config/ranger/commands.py


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

Offline

#494 2010-09-16 21:31:16

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

Yes,

cat $XDG_CONFIG_HOME/ranger/commands.py | wc -l
622

Offline

#495 2010-09-16 23:57:56

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

Re: Ranger, a textbased filemanager

archman-cro wrote:

Yes,

cat $XDG_CONFIG_HOME/ranger/commands.py | wc -l
622

No idea... Throw any useful info you got at me.

Perhaps create a new command by putting this at the end of your commands.py:

class foo(Command):
  def execute(self):
    self.fm.notify("Let's run the urxvt!")
    self.fm.run("urxvt", flags="d")

and try the command :foo.
If there is no message "Let's run the urxvt!" in the statusbar, there's something terribly wrong.


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

Offline

#496 2010-09-17 00:08:21

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

It works! Thanks, man. Now I've learned another useful thing. smile

Offline

#497 2010-09-18 02:03:56

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

Re: Ranger, a textbased filemanager

The Ranger archwiki page, http://wiki.archlinux.org/index.php/Ranger, has been marked as needing expansion.  Can anyone help with this?

Offline

#498 2010-09-18 13:55:03

ttfung
Member
Registered: 2010-05-25
Posts: 4

Re: Ranger, a textbased filemanager

I got a question: can we keep different sorting method among different tabs?

Offline

#499 2010-09-19 23:10:05

mathieui
Member
Registered: 2009-07-21
Posts: 38
Website

Re: Ranger, a textbased filemanager

I just post in here to say that I've been using ranger for a little while, and that I like it very much smile.

Offline

#500 2010-09-20 12:24:16

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

Re: Ranger, a textbased filemanager

cmlr wrote:

The Ranger archwiki page, http://wiki.archlinux.org/index.php/Ranger, has been marked as needing expansion.  Can anyone help with this?

Hmm yeah. Alright. But, maybe later. Or maybe tomorrow. I'll try to remember.

ttfung wrote:

I got a question: can we keep different sorting method among different tabs?

Nope ;( This is impossible at the moment.
But if you can use a text editor, you could hack in different sorting methods for specific directories in ranger/fsobject/directory.py line 294, add something like:

if self.path == "/home/ttfung/downloads":
    sort_func = self.sort_dict["mtime"]
elif self.path == ....
mathieui wrote:

I just post in here to say that I've been using ranger for a little while, and that I like it very much smile.

Thanks.
Wow, a customer without complaints smile


"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