summary refs log tree commit diff stats
path: root/ranger/gui
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-04 20:55:03 +0100
committerhut <hut@lavabit.com>2009-12-04 20:55:03 +0100
commitffec67de733cfa2ee1c2dab6b87f933565180330 (patch)
tree0d4a9b1e6ff05053b22da2e67df298c3d74b9792 /ranger/gui
parentb1ee52c0f7986a826539450ff6b4d2567eba32e3 (diff)
downloadranger-ffec67de733cfa2ee1c2dab6b87f933565180330.tar.gz
implemented searching
Diffstat (limited to 'ranger/gui')
-rw-r--r--ranger/gui/wconsole.py10
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