You are not logged in.
If there are more ctrl-keys that don't work, like ^H, because they are mapped differently, I'd better like to know
Last edited by hut (2010-07-26 17:23:30)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
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?
Other keys are always between 1 and 26 here. And ^H is indeed backspace, pressing it do the same as backspace in urxvt.
Offline
thanks ^^
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Is there a way to get it to display as ranger in the tmux bar instead of displaying as python?
Offline
Yeah there is:
ln -s /usr/bin/python ~/ranger
Then, start ranger with:
~/ranger /usr/bin/ranger
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Or you can start ranger automatically and name it when you start tmux by adding (for example) in your tmux.conf:
new -d -s server -nMutt 'exec mutt'
neww -d -nranger 'exec ranger'
Scott
Offline
Thanks to both of you.
Offline
Wow! You have done such an amazing job with this file manager! Really impressed!
Offline
Ranger is my favourite file manager. Big thanks for contributors.
Offline
I made a Desktop Application file for my Slackware Ranger
/usr/share/applications/ranger.desktop
---------------------------------------------------------------------------------------------
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Ranger CLI File Manager
Categories=System;Utility;Core;GTK;
Exec=xterm -e /usr/bin/ranger
Icon=apple-green
StartupNotify=true
Type=Application
Terminal=false
MimeType=x-directory/normal;inode/directory;
GenericName=File Manager
GenericName[ru]=Файловый менеджер
GenericName[zh_TW]=檔案管理程式
GenericName[fi]=Tiedostonhallinta
GenericName[et]=Failihaldur
GenericName[ja]=ファイルマネージャ
Comment=Browse the file system and manage the files
Comment[zh_TW]=瀏覽檔案系統及管理檔案
Comment[fi]=Selaa tiedostojärjestelmää ja hallitse tiedostoja
Comment[et]=Lehitse failisüsteemi ja halda faile
Comment[ja]=ファイルシステムをブラウズし、ファイルの管理を行います
---------------------------------------------------------------------------------------------
Heres the Slackware pkg I made of Ranger; it's awesome
Offline
Army wrote: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...)Hi army.
It's weird that ~/.mime.types didn't work. I'll investigate.
Any progress with this?
Offline
Great program, I've started using this instead of vifm.
I think a time threshold for loading directory content would be nice. For example, if there is a list of directories a, b, c, cursor at a and I want to get to c, Ranger loads the content of b even though the cursor is only on it for maybe 100 milliseconds. It would be nice if it waited for maybe 200 ms (or configurable) before loading.
Offline
I hope this hasn't already been asked, but I didn't want to read 18 pages.
First of all, awesome FM!
Now, if I want to open a terminal in the current directory, I would press "S", however this just kinda quits ranger and brings me back to me terminal. Which of course let's me do what I wanted to do, but when I start ranger again after that I lost my tabs and all, even though I am still in the directory I was in. Can't I somehow spawn an external terminal on a shortcut?
Offline
just type "exit" and you'll be back in ranger just the way it was before
Offline
Hah, of course! Thanks.
Offline
hut wrote:Army wrote: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...)Hi army.
It's weird that ~/.mime.types didn't work. I'll investigate.
Any progress with this?
Thanks for reminding me. And yes there is: It turns out that the python mimetypes module doesn't read ~/.mime.types by default, so I manually added it.
Great program, I've started using this instead of vifm.
I think a time threshold for loading directory content would be nice. For example, if there is a list of directories a, b, c, cursor at a and I want to get to c, Ranger loads the content of b even though the cursor is only on it for maybe 100 milliseconds. It would be nice if it waited for maybe 200 ms (or configurable) before loading.
That sounds reasonable. I'm not working much on ranger atm. so perhaps I'll implement it some time in the future.
If this behaviour annoys you, here is a quick and dirty fix: http://pastebin.org/476747 , It stops all "old" directory loading processes when a new one is added. (apply with cd /path/to/ranger; patch -p1 < /path/to/patch). You can also type 2j to skip a directory
"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.
I renamed it from "slim ranger" to "pithy" so it's not going to be confused with the original ranger. Pithy works already, but there's no documentation yet, so let me give a little introduction:
Some words of warning though: I don't have time to continue working on it at the moment. So I'm posting this just to make it available to those who are interested in it, not necessarily because I think it should be used yet.
Pithy is not started by executing a file but by executing a bash/zsh function. First you need to source either bash_integration.sh or zsh_integration.zsh, depending on your shell. Either file take the command to run the program as an argument, which is a simple "/path/to/pithy.py" in most cases but can be as complex as python2.6 "/path/to/pithy.py" --option1 .... So, the full line looks like:
source /path/to/bash_integration.py /path/to/pithy.py
It defines the function bash_pithy or zsh_pithy and the hotkey CTRL+O for quickly starting it. Read the *_integration-file for details.
The configuration file is about 300 lines long and you may want to skim through it to grasp the concept and the control keys. It is located at pithy/data/settings.py and can be copied to ~/.config/pithy/rc.py for customization. The settings file is executable python code which is run on initialization. First the default settings.py, then the custom rc.py. To ignore the default settings, use the option --no-defaults.
To run files, you have to set up a file launcher. Try http://xyne.archlinux.ca/projects/mimeo/
echo 'FILE_LAUNCHER = "mimeo %f"' >> ~/.config/pithy/rc.py
The interface is much like in ranger. Main differences as of now: No automatic synchronization with the FS, type "r" to update the view. No parallel loading either, the unicode support is limited and there is no console, just very simple prompts.
Bookmarks are implemented using the file system. Type m<name><ENTER> to create a link at $confdir/bookmarks/<name>, then type ` or ' to go there and pick a directory.
Instead of the console, use the shell. Quitting and restarting pithy will restore almost the same state (which you can reset with pithy --reset.) The variable $f contains the current filename. You need to use "$f" in bash if the filename contains spaces. The command sel runs xargs with the selected files as arguments. For example, type sel echo to display all selected files or sel mv -t /some/directory to move all selected files to /some/directory. Files are selected with SPACE or v and unselected with V. In contrast to ranger, the selection is global.
To install and run:
git clone http://git.sv.gnu.org/r/ranger.git pithy
cd pithy
git checkout slim
source bash_integration.sh /path/to/pithy.py # if you use zsh, source zsh_integration.zsh instead
And start pithy with ctrl+O.
(Note: There's a little bug with the bash-version: when exiting pithy, the directory is changed but the old one is still displayed in the prompt. I don't know how to make bash update it. Pressing ENTER fixes it though.)
I guess thats about it. Feel free to ask your questions
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Hey, great job! I was just looking for something like this and I absolutely LOVE ranger! Good bye mc
Thank you very much for your effort and to all the contributors too!
Offline
Ranger hits the big time.
Linux user No. 409907
Offline
Love this filemanager! Just moved from vifm to ranger, trying to figure out how to make a command that opens up txt files in geany.
Right now I have vim as my main editor, but i'd like to have geany as an option.
Its probably easly configured but since I've never done anything in python I find it confusing.
Could someone help me out?
Offline
@invalido
Just select the file, hit 'r' and type geany.
Offline
@invalido
Just select the file, hit 'r' and type geany.
Sweet! Just what I was looking for. Dunno how i missed that in the first place.
Offline
jsgt wrote:Great program, I've started using this instead of vifm.
I think a time threshold for loading directory content would be nice. For example, if there is a list of directories a, b, c, cursor at a and I want to get to c, Ranger loads the content of b even though the cursor is only on it for maybe 100 milliseconds. It would be nice if it waited for maybe 200 ms (or configurable) before loading.
That sounds reasonable. I'm not working much on ranger atm. so perhaps I'll implement it some time in the future.
If this behaviour annoys you, here is a quick and dirty fix: http://pastebin.org/476747 , It stops all "old" directory loading processes when a new one is added. (apply with cd /path/to/ranger; patch -p1 < /path/to/patch). You can also type 2j to skip a directory
Your patch didn't seem to really change the observed behavior much, but thanks anyway. I didn't know about the nj command, good tip!
Offline
splittercode wrote:@invalido
Just select the file, hit 'r' and type geany.
Sweet! Just what I was looking for. Dunno how i missed that in the first place.
Is there a possibility running external apps with "r", but having the same usable instance of ranger at the time when the external app (which is opened in ranger) is opened and in use, so I can still browse the files with ranger while the ext app is running?
Btw, that one's a very fast and nice file manager! Thanks!
Offline
invalido wrote:splittercode wrote:@invalido
Just select the file, hit 'r' and type geany.
Sweet! Just what I was looking for. Dunno how i missed that in the first place.
Is there a possibility running external apps with "r", but having the same usable instance of ranger at the time when the external app (which is opened in ranger) is opened and in use, so I can still browse the files with ranger while the ext app is running?
Btw, that one's a very fast and nice file manager! Thanks!
Perhaps you're looking for the detach-flag.
try "open with: d" or "open with: myprogram d" to run it detached from ranger
(It's documented in chapters 2.2 and 2.5, type "2?" in ranger)
Last edited by hut (2010-08-24 13:35:05)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline