You are not logged in.
You might have noticed that the configuration file at ~/.ranger/options.py is ignored. Please update to fix that bug. (Thanks to alterecco for pointing it out)
edit 1:
I am really glad you had not already thought of the 'lazy horizontal scrolling' and discarded it. That might mean you would implement it . I spent some time going over the code to see if I could add it myself and ended shelving it for now. I would need more time to get into the code.
I looked into it as well, and it surely is not trivial to implement. The columns are fixed at the moment and there are few mechanisms to change the behaviour of columns. Also I'm concerned about the placement of file previews. I'll think about everything, but it will take some time D=
edit 2:
Reminds me of vifm..
Will try.edit: nice, but how do i get it to open text files in vim ($EDITOR) instead of it asking for which program to use every time? Looking at apps.py it uses it "if f.document", which doesn't seem so reliable. If the file has a .txt extension, it's opened in vim, but with no extension (which is usually the case) it asks which program to use. *nix isn't file extension based, so it should use MIME types, like "if text/plain use vim"
Fixed that as well. (used the file utility for now.)
Last edited by hut (2010-03-14 18:51:11)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Awesome application ! I've been wanting something like this for a while now. Is there any way to specify a sort order for specific directories only? (For example, I might want to sort everything by basename, but only my "anime" directory by mtime so I can easily see what's new there).
Last edited by GGLucas (2022-06-24 08:03:31)
Offline
Nope, there is no such feature.
I reccommend simply pressing "n" to cycle through the newest files.
If you really want that feature though, you could easily implement it by changing ranger/fsobject/directory.py, line 265
sort_func = self.sort_dict[self.settings.sort]
to
sort_func = self.sort_dict['mtime' if self.path == '/my/anime/directory' else self.settings.sort]
I guess thats easily adaptable with basic python knowledge
About the options.py: it does work for me. Where are you getting ranger from?
Last edited by hut (2010-03-14 21:13:43)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Ah, thanks. I'll have a look at the python code, shouldn't be hard to implement it as a list in options.py
I'm getting it from the ranger-git pkgbuild in the aur, it uses the repo:
git://git.sv.gnu.org/ranger.git
The last commit I'm getting is a44749f63848740e95d1f168d73300c874ecf6c5, "use `file` for reliably identifying text files".
EDIT: Nevermind, looks like the config _is_ loaded, I just didn't see it correctly, my bad - I expected the texas colorscheme to change the colors, but they didn't, probably an 88 color thing.
Last edited by GGLucas (2010-03-14 21:25:08)
Offline
thats the newest.
Try something like
echo "show_hidden = True" > ~/.ranger/options.py
(overwrites old config)
and see if the hidden files are shown now?
edit: nevermind
Last edited by hut (2010-03-14 21:23:39)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
This looks great, love the simplicity
I am trying to remap the hjkl keys to jklø, but I can't
get it to work. Is there a problem with unicode in python?
Sin? What's all this about sin?
Offline
I can't get python curses to recognize unicode input. =/
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
have you read the blurb about how curses interprets non-ASCII data? after the 3rd paragraph on this page: http://docs.python.org/library/curses.html
anyways, this looks like a nice file manager; i'm looking forward to testing it out when i get home this afternoon!
I've seen young people waste their time reading books about sensitive vampires. It's kinda sad. But you say it's not the end of the world... Well, maybe it is!
Offline
have you read the blurb about how curses interprets non-ASCII data? after the 3rd paragraph on this page: http://docs.python.org/library/curses.html
anyways, this looks like a nice file manager; i'm looking forward to testing it out when i get home this afternoon!
Yes, and that's how I enable displaying UTF chars on the screen. Doesn't change anything with inputs, for me at least. I just get char code of 195 everytime I type a non-ascii key.
Edit:
Eww. Seems like the enabled flushinput option eats up the other bytes of the unicode character.
It works for me now, after setting flushinput = False (by pressing "bi" or changing the configuration) and adding this line at the top of my keys.py:
# coding=utf-8
I'll make it work by default, later. Would be nice if someone can confirm that. (Note: unicode still doesn't work in the ocnsole, ill look into that later)
Last edited by hut (2010-03-15 10:45:55)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
I haven't looked much at the code yet, but is there any chance we could get an option for borders on the panes?
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
I might add that, sounds reasonable. Though, what kind of borders? like in mc or vifm? or simply vertical seperators between the columns?
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
I meant like box drawing characters, but I just realized you're having issues with unicode in general so that may not be feasible at this time.
I just installed mc to have a look, yes that's what I mean, however I don't really care what you do about titles if you even want any. mc puts the title in the bar and it's a bit offputting imho.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
It's very feasible. I'll look into it. Though I don't quite like the idea of using non-ascii characters by default in the user interface.
Last edited by hut (2010-03-15 16:49:02)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
It's very feasible. I'll look into it. Though I don't quite like the idea of using non-ascii characters by default in the user interface.
I thought that curses had a border property of some sort so that you wouldn't have to deal with that. I must be mistaken.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
It works for me now, after setting flushinput = False (by pressing "bi" or changing the configuration) and adding this line at the top of my keys.py:
# coding=utf-8
It works! Thanks!
Sin? What's all this about sin?
Offline
looks great, congrats on your work
Offline
I've been playing with this for a little bit now and I have to weigh in here and say that I like it! It's very comfy, and the file preview is a very nice feature for all the text files I play with daily. Methinks I'll be adding this one to my day-to-day usage.
Offline
I love it! What would be _really_ great to for example edit one's fstab:
open ranger /, type "e" and it jumps to the first available e, i.e. etc, move up one level, type "f" and it jumps to fstab...
Is that at all feasible?
EDIT:
Ah, okay, it works with vi's / search function Brilliant
Last edited by toad (2010-03-16 07:13:50)
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
try the "f" key
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
very promising, nice work hut!
would it be possible to make it parse vim colorschemes?
ᶘ ᵒᴥᵒᶅ
Offline
Are you insane?
Well it's certainly possible. Just gotta write a converter which maps things like "Marked Text in Visual Mode" to "Marked File" etc. But what about, say, directories? where to get that color from? Numbers? Strings? Comments? Would look weird
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Are you insane?
yeah i know, i just hate having to build custom colorschemes each time for every new cli application.
ᶘ ᵒᴥᵒᶅ
Offline
Very nice project hut ! I am looking for the key bindings of ranger ? Thanks for any advices !
Offline
Hello sirsurthur. It depends on how you installed ranger. If you used git or the tarball, you can simply edit
ranger/defaults/keys.py
If you installed ranger with the AUR package, you can write this:
cp /usr/share/ranger/ranger/defaults/keys.py ~/.ranger/keys.py
and edit the keybindings in ~/.ranger/keys.py
Last edited by hut (2010-03-16 21:04:33)
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
This is awesome!! I like how the horizontal scrolling works and the preview of text files is nice too.
For some time I've been thinking about setting up a complete CLI environment on my netbook (just for fun). This program is sure going to be usefull.
Thanks!
Offline