You are not logged in.
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
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.
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
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
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
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
Last edited by Inxsible (2010-07-13 14:21:43)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
ctrl+h :-)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
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
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
Ok, thanks, I'll try to figure it out. Hope it will be a learning experience :-)
Offline
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
I join all other voices to say thank you very much for this very impressive software. Ranger was my filemanager graal ;-)
Thanks!
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)
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
I just want to thank you for ranger and i look forward to slim ranger very much.
Offline
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 !
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.
It's not a major feature like "ya" ;-)
Do you plan to put a buy me a beer button ?
Offline
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
Barghest: zh should also show hidden files.
Offline
Ah, thx...couldn't find it in the man page ;b
Offline
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()))'
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
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
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
Ctrl+h is broken for me also.
1. Python 2.6.5, Arch
2. 1.1.2
3. 263
Offline
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
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
hope you dont mind Hut...:|
I'm honored.
Me too.
1. Python 2.6.5, Arch
2. 1.1.2
3. 263I 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
Hey, we can live with 'zh'!
I'm also known as zmv on IRC.
Offline
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