You are not logged in.

#1676 2013-03-24 19:45:58

dag
Member
From: US
Registered: 2013-01-20
Posts: 216

Re: Ranger, a textbased filemanager

Edit-never mind

Last edited by dag (2013-03-24 19:47:38)


--------------------------------------
alcoves wonder creates the wonder unto the ages; never lose that.

Offline

#1677 2013-03-24 20:21:17

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

Re: Ranger, a textbased filemanager

TheImmortalPhoenix wrote:
hut wrote:

@TheImmortalPhoenix:
Do you want to open all image files with feh? Changing the configs is unnecessary for that, ranger does it automatically now, as long as the option "open_all_images" is set to true. (which is the default).

When i open an image placed in a directory with other images, feh displays me just that image and i can't go back or next with arrows...i should select all images with "v" if i want to do that...i didn't have this issue with the old version of ranger and i think that it was because of that argument (--start-at) specified in the apps.py

Apparently you use ranger-1.6.0-stable. Then you have two options: Either use the more up-to-date ranger-git package (it'll work out of the box), or use this script: https://github.com/hut/ranger/blob/mast … le_sxiv.sh -- its a script for sxiv (small x image viewer) though; you'd have to adapt it to work with feh with the --start-at option.


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

Offline

#1678 2013-04-02 20:51:59

Profpatsch
Member
Registered: 2013-02-06
Posts: 22

Re: Ranger, a textbased filemanager

First of: Congratulations.
Allow me to re-use a well known quote:
“All file managers suck. This one sucks considerably less.”
I would go as far as to say that it is actually quite usable. wink

I’d like to request an option to set the `:find` command to case insensitive mode and to turn automatically entering once the result is unambiguous off.
And the possibility to hit up and down to jump to the next/previous file that matches the current :find regexp (like in Thunar).
Plus, some kind of quick search mode would be cool, where you stay in find mode until you open a file or hit escape to quickly zap through folders. Maybe automatically add ‘^’ to the beginning of the regexp in this mode (or make it a setting), so it searches from the beginnings of words. It could automatically show and include hidden files when you hit ‘.’ as first char that way.
And, to top it of, a fuzzy search mode, like https://github.com/kien/ctrlp.vim does it (you already have a context window, so one could use that for showing matches) would be everyone’s master.

These are my humble ideas on quickly navigating the file&folder structure.


You rock, woohoo and yay.

Last edited by Profpatsch (2013-04-02 21:09:17)

Offline

#1679 2013-04-02 21:09:13

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

Re: Ranger, a textbased filemanager

Profpatsch wrote:

I’d like to request an option to set the `:find` command to case insensitive mode.

:find -i $search

Offline

#1680 2013-04-02 21:11:19

Profpatsch
Member
Registered: 2013-02-06
Posts: 22

Re: Ranger, a textbased filemanager

Army wrote:
Profpatsch wrote:

I’d like to request an option to set the `:find` command to case insensitive mode.

:find -i $search

Is this stuff documented anywhere?
The man page doesn’t say anything about command flags and what is possible. Or I’m just looking in the wrong places.

Offline

#1681 2013-04-02 21:44:39

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

Re: Ranger, a textbased filemanager

Profpatsch wrote:
Army wrote:
Profpatsch wrote:

I’d like to request an option to set the `:find` command to case insensitive mode.

:find -i $search

Is this stuff documented anywhere?
The man page doesn’t say anything about command flags and what is possible. Or I’m just looking in the wrong places.

:find is based on the :scout command, you can look at the documentation of :scout for a list of the flags. The description of :find is semi-outdated atm.

PS. Here's an excerpt from the default rc.conf that may be useful to you. Try out :travel!

alias filter     scout -prt
alias find       scout -aet
alias mark       scout -mr
alias unmark     scout -Mr
alias search     scout -rs
alias search_inc scout -rts
alias travel     scout -aefiklst

Last edited by hut (2013-04-02 21:46:31)


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

Offline

#1682 2013-04-05 12:28:26

Next7
Member
Registered: 2011-12-07
Posts: 38

Re: Ranger, a textbased filemanager

Solved

Last edited by Next7 (2013-04-06 19:44:30)

Offline

#1683 2013-04-09 00:58:31

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

Re: Ranger, a textbased filemanager

If you'd like to express your gratitude for the countless hours of work that has been put into the ranger project, you can now donate money as described in the green box on ranger's website (http://ranger.nongnu.org). :D 

The money will go directly into caffeinated beverages or tasty vegetarian food and will get me to make ranger even more awesome :)

For now, the only listed method is bitcoins.  This helps to protect your privacy and my privacy.  Also, I find it difficult to trust paypal with my personal data and my money.


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

Offline

#1684 2013-04-09 09:56:13

dghate
Member
Registered: 2013-03-13
Posts: 12

Re: Ranger, a textbased filemanager

Hello there,

Ranger is wonderful. Can't imagine my life without it now...and its been only a week since we met.

In the rifle.conf, I added

mime ^text,  label editor = "/usr/bin/xterm -e /usr/bin/vim" -- "$@"

to open my text files in a new window. But this gives error message (in --debug mode)

/bin/sh: 1: /usr/bin/xterm -e /usr/bin/vim: not found

I don't know what the syntax is for spawning an application in a new window.

I am interested in this because I would would like to write custom commands to be
executed in a newly spawned terminal emulator for a highlighted directory or file.

An example could be to play all the songs in an highlighted directory using mpg123
in a new terminal emulator. Or delete files of a certain extension in the highlighted
directory.

Thank you for your time,
Devendra Ghate

Offline

#1685 2013-04-09 10:49:31

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

Re: Ranger, a textbased filemanager

Do you have xterm and vim installed? I have

mime ^text,      label editor, flag f = st -t "$EDITOR" -e $EDITOR -- "$@"

and it works just fine. You can also use "flag t" so the application is opened in a new terminal.

Offline

#1686 2013-04-09 13:57:54

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

Re: Ranger, a textbased filemanager

dghate: Well, since you wrote "/usr/bin/xterm -e /usr/bin/vim" in quotes, it will try to find a program called "/usr/bin/xterm -e /usr/bin/vim" which doesn't exist. Just remove the quotes in that place and it should work.


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

Offline

#1687 2013-04-09 16:16:17

dghate
Member
Registered: 2013-03-13
Posts: 12

Re: Ranger, a textbased filemanager

Thank you Army and hut. Works just fine.

Offline

#1688 2013-04-10 04:27:14

zoqaeski
Member
From: /earth/australia/.
Registered: 2009-09-30
Posts: 124

Re: Ranger, a textbased filemanager

I’m using ranger-git, and I’ve been having problems with the :bulkrename command. It spits out an error "No module named 'ranger.fsobject.file'; ranger.fsobject is not a package. This only started occurring last week or so.

Offline

#1689 2013-04-10 04:56:25

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

Re: Ranger, a textbased filemanager

zoqaeski: time to update configs ^_^ specifically, ~/.config/ranger/commands.py.


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

Offline

#1690 2013-04-13 19:15:33

Next7
Member
Registered: 2011-12-07
Posts: 38

Re: Ranger, a textbased filemanager

I have a problem opening djvu files. rifle.conf contains the following lines:

ext pdf, has evince,   X, flag f = evince -- "$@"
ext djvu, has evince,  X, flag f = evince -- "$@"

And pdf files are being opened without problems while on djvu files Evince even does not start. "ranger -d" produces no errors.

How to solve that?

Offline

#1691 2013-04-13 19:34:49

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

Re: Ranger, a textbased filemanager

what do you see when you press "r" on djvu files? The command with the number 0 is started when pressing enter. maybe you need to put the dvju line to the top of rifle.conf so it has a higher priority.


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

Offline

#1692 2013-04-13 21:07:23

Next7
Member
Registered: 2011-12-07
Posts: 38

Re: Ranger, a textbased filemanager

When I press "r" on djvu files I see "open_with" prompt and a number of applications to choose from, among them there is the line

1 | evince -- "$@"

and when I press "1" Evince starts and opens the file. Otherwise it does not work.

I put the line

ext djvu, has evince,  X, flag f = evince -- "$@"

at the top of rifle.conf and now it works normally.

Thanks for the hint and a good program. Kind regards.

EDIT: Program with "0" was sxiv, so it turns out that djvu files are treated as images.

Last edited by Next7 (2013-04-13 21:11:16)

Offline

#1693 2013-04-20 20:07:58

darkfeline
Member
Registered: 2012-02-14
Posts: 94

Re: Ranger, a textbased filemanager

Hi,

I've been running into a bug with ranger that starts freezing up the CPU (I'm seeing loads up to 20).  I checked and it seems to be scope.sh running on .sql.gz files (mysql dumps).  I haven't tried to reproduce this yet, but it's shown up quite reliably when I nagivate into a directory with .sql.gz backups and there's a new backup in it.

Offline

#1694 2013-04-22 20:36:01

jk121960
Member
Registered: 2011-12-09
Posts: 254

Re: Ranger, a textbased filemanager

Hi Hut, I am a little puzzled, I have the use_preview_script and preview_files = True but I can't get file preview until I key in zp? Is this by design?

thanks

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#1695 2013-04-22 22:12:44

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

Re: Ranger, a textbased filemanager

jerry: it sounds to me like you are talking about the options.py config file. However, in ranger 1.6.0 the settings were moved from options.py to rc.conf. (See http://ranger.nongnu.org/ for a full change log) Instead of putting python code into options.py, put a list of ranger commands into rc.conf, which would look like this in your case:

set preview_files true
set use_preview_script true

I'm still puzzled though, because these options are actually on by default. Try running "ranger --clean"; if it works, then some part of your configs is probably outdated or broken.


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

Offline

#1696 2013-04-22 22:21:22

jk121960
Member
Registered: 2011-12-09
Posts: 254

Re: Ranger, a textbased filemanager

Actually I am talking about rc.conf, I am using git from about 5 months back, that's why I was asking. The settings seem like it should be on by default but I still have to initiate it by using zp

thanks

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#1697 2013-04-22 22:46:23

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

Re: Ranger, a textbased filemanager

jerry: Well it could be anything. If you have a 5-months-old version, try pulling the newest version. "ranger --clean" doesn't work either? Any output from running "ranger --debug"? Maybe your rc.conf is huge and there's a "set preview_files false" hiding somewhere? Are you running as root? because root has previews disabled by default for security reasons, no matter what you put in your configs.


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

Offline

#1698 2013-04-22 23:15:22

jk121960
Member
Registered: 2011-12-09
Posts: 254

Re: Ranger, a textbased filemanager

OK it's the root thing, I am moving files all the time setting permissions etc and so I am always in as root. So that's that at least I know why.

thanks very much

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#1699 2013-04-22 23:52:11

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

Re: Ranger, a textbased filemanager

actually there *is* a workaround. you can put that in root's .bashrc:

alias ranger="ranger --cmd='set preview_files true' --cmd='set use_preview_script true'"

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

Offline

#1700 2013-04-23 00:54:03

jk121960
Member
Registered: 2011-12-09
Posts: 254

Re: Ranger, a textbased filemanager

Dude your a God, once more.

thanks again very much,

--jerry


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

Board footer

Powered by FluxBB