ranger-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ranger-users] Find function


From: Jostein Berntsen
Subject: Re: [Ranger-users] Find function
Date: Thu, 27 May 2010 22:12:28 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On 27.05.10,20:55, Roman Z. wrote:
> On Thu, May 27, 2010 at 08:42:58PM +0200, Jostein Berntsen wrote:
> > Hi,
> > 
> > The find function as of now works great but only searches in the same 
> > directory. Is is possible to define a find function that can also search 
> > in subdirectories?
> > 
> > 
> > Jostein
> > 
> > 
> > 
> 
> sure. in the ~/.ranger/keys.py, add this:
> 
> # setting up environment:
> from ranger.api.keys import *
> map = keymanager.get_context('browser')
> 
> # defining the keybinding:
> map('F', fm.open_console(cmode.OPEN, 'p!find . | grep '))
> 

That worked beautifully, thanks!


Jostein





reply via email to

[Prev in Thread] Current Thread [Next in Thread]