|
From: | Joshua Landau |
Subject: | Re: [Ranger-users] ranger 1.6.0 on the horizon |
Date: | Sun, 17 Feb 2013 15:03:33 +0000 |
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 algorithmBy 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 asclass Matcher(str) ......set travel_mode = "Matcher"
[Prev in Thread] | Current Thread | [Next in Thread] |