ranger-users
[Top][All Lists]
Advanced

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

Re: [Ranger-users] ranger 1.6.0 on the horizon


From: Miodrag Milic
Subject: Re: [Ranger-users] ranger 1.6.0 on the horizon
Date: Sun, 17 Feb 2013 09:36:29 +0100


On Sat, Feb 16, 2013 at 11:35 PM, Joshua Landau <address@hidden> wrote:
Can't happen*, that's the problem. If you have full Regex, it's near-impossible to have letter-skipping. Unless I'm missing something.


3 travel modes fix all problems. 

Configuration by specifying name of the class that implements matcher algorithm
By default 3 modes could be provided:

* set travel_matcher = 'TM_Normal'
Travel will act like find and query will be sent to RegEx engine as literal (between \Q and \E , that is, all RE chars escaped)

* set travel_matcher = "TM_Lazy"
Travel will act like it is acting at the moment. Query will be changed so that all special RE chars are escaped except ^$,and .* will be inserted in between (so that you can skip letters) before RegEx engine is invoked.

* set travel_matcher = "TM_re"
Full blown RE, query is sent as it is to RegEx engine.

In this case Joshuas version could be simply set up as

class Matcher(str) ... 
...

set travel_mode = "Matcher"



reply via email to

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