diff options
author | hut <hut@lavabit.com> | 2009-12-04 20:55:03 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-04 20:55:03 +0100 |
commit | ffec67de733cfa2ee1c2dab6b87f933565180330 (patch) | |
tree | 0d4a9b1e6ff05053b22da2e67df298c3d74b9792 /ranger/gui | |
parent | b1ee52c0f7986a826539450ff6b4d2567eba32e3 (diff) | |
download | ranger-ffec67de733cfa2ee1c2dab6b87f933565180330.tar.gz |
implemented searching
Diffstat (limited to 'ranger/gui')
-rw-r--r-- | ranger/gui/wconsole.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ranger/gui/wconsole.py b/ranger/gui/wconsole.py index fdaa7716..611790f8 100644 --- a/ranger/gui/wconsole.py +++ b/ranger/gui/wconsole.py @@ -125,7 +125,15 @@ class WConsole(SuperClass): self.close() def execute_search(self, fm): - pass + import re + if fm.env.pwd: +# try: + regexp = re.compile(self.line, re.L | re.U | re.I) + fm.env.last_search = regexp + if fm.env.pwd.search(regexp): + fm.env.cf = fm.env.pwd.pointed_file +# except: +# pass def execute_openwith(self, fm): line = self.line |