You are not logged in.

#401 2010-07-09 09:35:06

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: Ranger, a textbased filemanager

Wow this fm rocks, need to learn the bindings and rock out with VIM!

Just one question, how would i use ranger to open xls, doc etc. with Openoffice automatically so i don't have to enter soffice manual?

Ok i got it working with this:

 def app_soffice(self, c):
        c.flags += '-headless -nologo -invisible -minimized &'
        return tup('soffice', *c)

Last edited by jelly (2010-07-10 08:23:40)

Offline

#402 2010-07-12 17:38:31

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

Re: Ranger, a textbased filemanager

jelly wrote:

Wow this fm rocks, need to learn the bindings and rock out with VIM!

Just one question, how would i use ranger to open xls, doc etc. with Openoffice automatically so i don't have to enter soffice manual?

Ok i got it working with this:

 def app_soffice(self, c):
        c.flags += '-headless -nologo -invisible -minimized &'
        return tup('soffice', *c)

Let me point out that you are misusing the "c.flags" varaible. flags are not arguments, you can type 2?G in ranger for an explanation of flags. smile
I believe the line you want is this: (it will run soffice in the background)

c.flags += 'd'

If you want to use soffice with the arguments "-headless", "-nologo", etc, you can add them to the return tuple:

return tup('soffice', '-headless', '-nologo', '-invisible', '-minimized', *c)

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

Offline

#403 2010-07-12 19:24:01

moose jaw
Member
From: Milwaukee
Registered: 2007-08-20
Posts: 104

Re: Ranger, a textbased filemanager

I've just belatedly discovered ranger and wanted to thank you for a truly excellent file manager!  It scratches an itch I didn't even know I had.

Between this and jumanji, it's been a good week of Arching for me

Offline

#404 2010-07-13 14:01:10

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

Re: Ranger, a textbased filemanager

I'm getting increasingly frustrated with the bad performance of ranger compared to other file managers.
Remembering my initial goal, to create a lightweight application, I tried out something new:

* Rewrite ranger almost from scratch on a new branch, I called it "slim ranger" for now..
* The slim ranger should look exactly like current ranger
* Its source code should be shorter than ~1000 lines
* It should start up instantly
* load directories about as fast as vifm (close to instant on decent harddisks)
* keep certain key features: bookmarks, sorting, key chains, selecting files, the "f" key for quick navigation
* have a bunch of features removed (including console, pager, task view, tabs, mouse support, launching files (with apps.py), parallel copying/moving/loading)
* use an external file launcher, like mimeo, gnome-open, whatever
* If you quit ranger and restart it, restore the old state (working directory, selected file, etc)
* Save information into environment variables to compensate for missing console. To count the words of a file for example, you can point at the file, quit ranger, type "cat $f | wc" in the shell, restart ranger and continue browsing.

I got a working version, but I'm not sure how far this is going to get and if I ever release something usable. In any case it's a nice experiment.


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

Offline

#405 2010-07-13 14:21:05

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Ranger, a textbased filemanager

I was using the old ranger and I still haven't figured out how to enable seeing hidden files. A toggle would be amazing. Let me know if this is possible of if I am asking too much.

But since you have a slim ranger... I might just get that and remove ranger. The list of things that you are doing for slim-ranger, I agree with. I personally never used the console pages or mouse support in ranger. Primary reason for me to get rid of pcmanfm and get a CLI based file manager was to be able to do it via keyboard. Dont need the file launcher either. I can always use the other bash to manually enter the command for oepning a file. or simply use dmenu.

Thanks for ranger and slim-ranger smile

Last edited by Inxsible (2010-07-13 14:21:43)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#406 2010-07-13 14:25:39

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

Re: Ranger, a textbased filemanager

ctrl+h :-)


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

Offline

#407 2010-07-15 12:42:03

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

Re: Ranger, a textbased filemanager

There are two things I want to do but can't figure out how to.

I'd like to have 3gp files played by mplayer just like avi, mkv etc. Where's this file list which I have 3gp to add to?
[edit] Just found it out, added it to /usr/lib/python2.6/site-packages/ranger/data/mime.types (I tried it with ~/.mime.types, which didn't work...)

To open odt, doc, odg, ... files with soffice, what exactly do I have to do?

Thanks :-)

Last edited by Army (2010-07-15 13:13:07)

Offline

#408 2010-07-15 16:06:14

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

Re: Ranger, a textbased filemanager

Army wrote:

There are two things I want to do but can't figure out how to.

I'd like to have 3gp files played by mplayer just like avi, mkv etc. Where's this file list which I have 3gp to add to?
[edit] Just found it out, added it to /usr/lib/python2.6/site-packages/ranger/data/mime.types (I tried it with ~/.mime.types, which didn't work...)

To open odt, doc, odg, ... files with soffice, what exactly do I have to do?

Thanks :-)

Hi army.

1. It's weird that ~/.mime.types didn't work. I'll investigate.

2. The relevant part in the source code is: ranger/defaults/apps.py


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

Offline

#409 2010-07-15 16:09:43

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

Re: Ranger, a textbased filemanager

Ok, thanks, I'll try to figure it out. Hope it will be a learning experience :-)

Offline

#410 2010-07-21 07:18:51

mentat
Member
From: France
Registered: 2009-01-13
Posts: 138
Website

Re: Ranger, a textbased filemanager

I join all other voices to say thank you very much for this very impressive software. Ranger was my filemanager graal ;-)

Do you think to put feature like the vim registers ? It will be cool to put/append files with moves like "Ayy in a register 'a' and then launch command on it (like moving a human selection files from muliple directories).

One maybe little thing I miss or didn't see is a progress indicator when you move large files. A percent number in the upper right or a bar in the 'w' mode ?

Otherwise big kudo to you, and please implement a "by me a beer" button I ll like to press it ;-)

Offline

#411 2010-07-23 12:15:23

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

Re: Ranger, a textbased filemanager

mentat wrote:

I join all other voices to say thank you very much for this very impressive software. Ranger was my filemanager graal ;-)

Thanks!

mentat wrote:

Do you think to put feature like the vim registers ? It will be cool to put/append files with moves like "Ayy in a register 'a' and then launch command on it (like moving a human selection files from muliple directories).

I guess the main issue here is that you can't access files from multiple directories at the same time. So I'm going to add a function to append a file to the set of copied files. Like yy but with appending rather than overwriting.
The copied files can be used in the console with %c, so you can even run programs on them. (e.g. !cat %c > ~/stuff)

mentat wrote:

One maybe little thing I miss or didn't see is a progress indicator when you move large files. A percent number in the upper right or a bar in the 'w' mode ?

There are no plans for a progress indicator now, maybe some time in the future.


EDIT: the new keybindings "ya"/"da" append and "yr"/"dr" remove the selection from the copied/cut files

Last edited by hut (2010-07-23 13:26:29)


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

Offline

#412 2010-07-23 17:24:18

blodorn
Member
Registered: 2009-07-13
Posts: 29

Re: Ranger, a textbased filemanager

I just want to thank you for ranger and i look forward to slim ranger very much.

Offline

#413 2010-07-24 12:56:28

mentat
Member
From: France
Registered: 2009-01-13
Posts: 138
Website

Re: Ranger, a textbased filemanager

hut wrote:

EDIT: the new keybindings "ya"/"da" append and "yr"/"dr" remove the selection from the copied/cut files

Waouh it's exactly what I'm looking for, thank you again !

mentat wrote:

One maybe little thing I miss or didn't see is a progress indicator when you move large files. A percent number in the upper right or a bar in the 'w' mode ?

hut wrote:

There are no plans for a progress indicator now, maybe some time in the future.

It's not a major feature like "ya" ;-)

Do you plan to put a buy me a beer button ?

Offline

#414 2010-07-24 21:11:11

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: Ranger, a textbased filemanager

hut wrote:

ctrl+h :-)

Thanks for this nice fm. I'm satisfied with the speed of the "normal" ranger but I've only experience with gui filemanagers (and coreutils).

For the hidden files: ctrl+h doesn't work here. Is there another way to see them?

Offline

#415 2010-07-24 21:14:18

Bolts
Member
From: Moorhead, MN
Registered: 2009-05-09
Posts: 39
Website

Re: Ranger, a textbased filemanager

Barghest: zh should also show hidden files.

Offline

#416 2010-07-24 21:24:58

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: Ranger, a textbased filemanager

Ah, thx...couldn't find it in the man page ;b

Offline

#417 2010-07-25 12:01:09

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

Re: Ranger, a textbased filemanager

Barghest wrote:
hut wrote:

ctrl+h :-)

For the hidden files: ctrl+h doesn't work here. Is there another way to see them?

That is unexpected... can you help me find the reason?

1. what python version and what operating system/linux distribution are you using?
2. what's the version of ranger? (the output of "ranger --version")
3. what number does this command print if you start it and type Ctrl+H?

python -c 'import curses; print(curses.wrapper(lambda win: win.getch()))'
mentat wrote:

Do you plan to put a buy me a beer button ?

Perhaps a "donate to needy children in uganda" button.

Last edited by hut (2010-07-25 12:06:19)


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

Offline

#418 2010-07-26 00:40:32

blodorn
Member
Registered: 2009-07-13
Posts: 29

Re: Ranger, a textbased filemanager

ctrl+h does not work for me either.

1. arch i686 EDIT: python 2.6.5
2. 1.1.1
3. 263

Last edited by blodorn (2010-07-26 17:35:19)

Offline

#419 2010-07-26 06:15:14

mentat
Member
From: France
Registered: 2009-01-13
Posts: 138
Website

Re: Ranger, a textbased filemanager

ctrl+h doesn't work for me too :

1. Python 2.6.5 on Arch ;-)
2. ranger 1.1.2
3. 263

I use "zh" to show hidden files.
Thx.

Offline

#420 2010-07-26 07:46:47

bogdan
Member
From: Aiud, Romania
Registered: 2010-07-11
Posts: 12

Re: Ranger, a textbased filemanager

Ctrl+h is broken for me also.

1. Python 2.6.5, Arch
2. 1.1.2
3. 263

Offline

#421 2010-07-26 11:26:38

q0tsa
Member
Registered: 2009-07-20
Posts: 39

Re: Ranger, a textbased filemanager

Me too.

1. Python 2.6.5, Arch
2. 1.1.2
3. 263

I checked if my terminal (lilyterm) maps Ctrl+h and it doesn't. Also I can map Ctrl+h in terminal vim for example.

Offline

#422 2010-07-26 12:18:53

72linus
Member
From: gordonsville,va
Registered: 2009-03-14
Posts: 144
Website

Re: Ranger, a textbased filemanager

Great file manager!
I added it to my nFluxOS ARCH Testing build
http://multidistro.com/downloads/newdownloads.html
hope you dont mind Hut...:|

Last edited by 72linus (2010-07-26 12:19:27)

Offline

#423 2010-07-26 13:42:09

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

Re: Ranger, a textbased filemanager

72linus wrote:

hope you dont mind Hut...:|

I'm honored.


q0tsa wrote:

Me too.

1. Python 2.6.5, Arch
2. 1.1.2
3. 263

I checked if my terminal (lilyterm) maps Ctrl+h and it doesn't. Also I can map Ctrl+h in terminal vim for example.

263 is backspace. Looks to me like ctrl+h is mapped to backspace at some point in the process that ranger has no control over. In that case, the only solution is to map backspace to "toggle hidden files" too.

May I ask one of you guys to report any other ctrl key (^A..^Z excluding special keys like ^C) for which the script prints a number over 26?


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

Offline

#424 2010-07-26 15:29:05

valium97582
Member
Registered: 2010-06-19
Posts: 126

Re: Ranger, a textbased filemanager

Hey, we can live with 'zh'!


I'm also known as zmv on IRC.

Offline

#425 2010-07-26 16:37:01

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

Re: Ranger, a textbased filemanager

Hi, been a while since I posted here. I agree with all your changes for the new "slim" branch, and I'm getting the hang of Python, so I might be able to help now.

Offline

Board footer

Powered by FluxBB