You are not logged in.
Hi, i have a problem: when i type a command in ranger (for example :delete) nothing appens and ranger is locked and i can't do anything, just exit ... This appens with all commands i type after " : "
Since when? Try ranger --clean and if it works, your config is probably outdated.
Here's my revised code, which can run with "-S":
Thanks for pointing out a bunch of dents in the code.
The main reason I call file instead of the builtin mimetype module is that file is simply better at guessing the mimetype. The mimetype module relies solely on the extension of the file while `file --mime-type` cuts the file open to see what's inside so it will even work on files with a wrong or no extension.
Well I guess I'm going to have the spawn() and get_executable() functions inlined from now on so you can run it with -S .
EDIT: Woa, you like tuples:
tests = tuple(tuple(f.strip().split(None, 1)) for f in tests) tests = tuple(tests)
>_< The second line is redundant, obviously
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
rifle.conf entry:
ext jpe?g|png|gif, flag f, X = <scriptname> "$@"
It would be good to have in ranger by default but such a large script doesn't fit in rifle.conf. I guess i'll put it in the doc/ directory or something.
Hut, thanks for rifle and the sxiv script but :
When I use it on an image with the shell command:
msxiv picture.jpg
it's work like a charm, I see my picture inside list of all images.
When I use it with rifle.conf :
I try :
ext jpe?g|png|gif, flag f, X = msxiv "$@"
it work like sxiv, there is only one picture in the list.
I try:
mime ^image, has msxiv, X, flag f = msxiv -- "$@"
same results only 1/1 picture in the list
?!
Offline
I suspect that you put the line somewhere at the bottom of rifle.conf. Ranger runs the first command in the list by default. You can either put the msxiv command at the top of rifle.conf or press r and select a number
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
I've put it on top of the list :
#-------------------------------------------
# Image Viewing:
#-------------------------------------------
mime ^image, has msxiv, X, flag f = msxiv -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
mime ^image, has feh, X, flag f = feh -- "$@"
mime ^image, has mirage, X, flag f = mirage -- "$@"
mime ^image, has gimp, X, flag f = gimp -- "$@"
ext xcf, X, flag f = gimp -- "$@"
I see it in the 'r' list and it doesn't work like the shell command does.
Offline
@ hut, yeah it was outdated...i run that command and everything works now...thanks!
Offline
@ hut, yeah it was outdated...i run that command and everything works now...thanks!
But its no permanent solution. --clean just ignores configs/bookmarks/etc. If you want to use bookmarks and stuff, you should diff the configs or just remove the ones you don't need.
@mentat:
I really have no idea...
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
mmm i need all but i don't know how to edit them, could you share your updated configs? So i can compare them with mine
Offline
@mentat:
I really have no idea...
Hut, just find the solution:
remove the argument protect "--"
mime ^image, has msxiv, X, flag f = msxiv "$@"
And it's working !
Offline
mmm i need all but i don't know how to edit them, could you share your updated configs? So i can compare them with mine
man ranger, section "FILES"
Also, note that if you used --copy-config before, and copied the files "commands.py", "options.py", "rc.conf", "scope.sh", "rifle.conf" but never edited them (or your changes were not important), you can safely delete them and the new default versions will be used instead.
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Hut, one final question.
I'm not saying I will - holidays end on Monday - but if I have the time and the will I may implement my suggestions in my posts. Now I've decided how to do it (mostly) without editing Ranger I think I feel a lot more confident. If I do implement it, would you be interested? As I have said, rifle could stay separate. In fact, it should be trivial to add proper backwards compatibility (non-modal, even) as long as the other stuff is dealt with. I don't see a meaningful disadvantage, so would you be interested in that case?
Offline
Let's talk in IRC about your ideas?
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
I've never used IRC, but I think I get how. I'm on #archlinux now, which I see is too late (and have no clue how to disconnect ) not too late. Are there PMs or is it all in the open, to be crowded out by all these other voices?
Last edited by Veedrac (2012-04-13 20:06:44)
Offline
Hi Hut and thanks for this unbelievable tool, I am just getting used to some of the bindings but it's here to stay. I am using ranger-git and it has been great, but all of a sudden I started getting this error
Syntax error in /root/.config/ranger/rifle.conf line 1 (Line without delimiter)
Now the strange thing is I swapped out that file for the default and it didn't fix it and it is only happening when I try to edit a certain file. BTW I am opening my files with vim. I checked that file also and swapped it out and the error is still there, ok next test I opened one of the backups (~4~) that I had renamed to the original that had the error, it has the error as the original file name but named as a backup "~4~" it opens it with no error? Also as a side note these are files generated by phpmyadmin for server setup. "config.inc.php" so it's not like I edited it myself. I had also opened this file yesterday with no problem.
thanks once again, for your talent and your effort.
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
One more question as long as I'm here, Is there a way to make the terminal when opened from ranger take over the window like it does with vim? When I open a document with vim ranger disappears till I close it. I would like the same to happen with the terminal.
thanks
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
One more question as long as I'm here, Is there a way to make the terminal when opened from ranger take over the window like it does with vim? When I open a document with vim ranger disappears till I close it. I would like the same to happen with the terminal.
thanks
--jerry
You can press Shift+s to open the shell in the $PWD, if that's what you're after. Ctrl+d gets you back into ranger.
@archun: Intel® Core™ i5-4210M • [GPU] Intel® HD Graphics 4600 • [Kernel] linux-ck-haswell
Handmade.Network • GitLab
The Life and Times of Miblo del Carpio
Offline
jk121960 wrote:One more question as long as I'm here, Is there a way to make the terminal when opened from ranger take over the window like it does with vim? When I open a document with vim ranger disappears till I close it. I would like the same to happen with the terminal.
thanks
--jerry
You can press Shift+s to open the shell in the $PWD, if that's what you're after. Ctrl+d gets you back into ranger.
Yes that was it, I am still learning the tool and I appreciate your help with this thanks
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
Miblo wrote:jk121960 wrote:One more question as long as I'm here, Is there a way to make the terminal when opened from ranger take over the window like it does with vim? When I open a document with vim ranger disappears till I close it. I would like the same to happen with the terminal.
thanks
--jerry
You can press Shift+s to open the shell in the $PWD, if that's what you're after. Ctrl+d gets you back into ranger.
Yes that was it, I am still learning the tool and I appreciate your help with this thanks
--jerry
My pleasure, jerry. It's well worth checking out `man ranger` (also accessible by pressing ? in ranger).
@archun: Intel® Core™ i5-4210M • [GPU] Intel® HD Graphics 4600 • [Kernel] linux-ck-haswell
Handmade.Network • GitLab
The Life and Times of Miblo del Carpio
Offline
jk121960 wrote:Miblo wrote:You can press Shift+s to open the shell in the $PWD, if that's what you're after. Ctrl+d gets you back into ranger.
Yes that was it, I am still learning the tool and I appreciate your help with this thanks
--jerry
My pleasure, jerry. It's well worth checking out `man ranger` (also accessible by pressing ? in ranger).
Appreciate thanks I will.
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
I wonder why there's no activity on
http://lists.nongnu.org/archive/html/ranger-users/
Can't be that all Ranger-users are Archers?
I'm not, anyway; subscribed here especially for this thread :-)
Offline
I wonder why there's no activity on
http://lists.nongnu.org/archive/html/ranger-users/Can't be that all Ranger-users are Archers?
I'm not, anyway; subscribed here especially for this thread :-)
Maybe it's a sign that you should try arch, like minds!!
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
catch22 wrote:I wonder why there's no activity on
http://lists.nongnu.org/archive/html/ranger-users/Can't be that all Ranger-users are Archers?
I'm not, anyway; subscribed here especially for this thread :-)Maybe it's a sign that you should try arch, like minds!!
I'm on Crunchbang and find that geeky enough already for my limited skills :-)
edited: added "limited" :-)
Last edited by catch22 (2012-04-15 19:07:32)
Offline
I went to rifle.py and was surprised to see nano was there as editor.
I changed it to gvim, but it altered ranger's behaviour - opening gvim not in the right panel but separately.
I tried a search for nano in the forum and saw a mention in this thread, but in which of the 53 pages I can't see.
I guess there's a good reason for using nano instead of (g)vim in ranger, given that ranger is based on vim's commands?
Offline
I went to rifle.py and was surprised to see nano was there as editor.
I changed it to gvim, but it altered ranger's behaviour - opening gvim not in the right panel but separately.I tried a search for nano in the forum and saw a mention in this thread, but in which of the 53 pages I can't see.
I guess there's a good reason for using nano instead of (g)vim in ranger, given that ranger is based on vim's commands?
If you like gvin, it also installs vim. Vim will open up and take place of ranger till you close it.
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
^I'm still curious why I find nano there instead of vim, since Ranger works with vim commands; it doesn't make sense does it?
Offline
^I'm still curious why I find nano there instead of vim, since Ranger works with vim commands; it doesn't make sense does it?
Nano is there for the people that don't use vim, hut puts in a range of editors that are common, nano being one of them.
--jerry
Every install of ranger I have used has had vim in the list. So I am not sure what to think if you dont see it at all
Last edited by jk121960 (2012-04-17 20:20:20)
Arch Awesome, Ranger & Vim the coding triple threat.
Offline