summary refs log tree commit diff stats
path: root/ranger/commands.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-27 03:36:01 +0100
committerhut <hut@lavabit.com>2009-12-27 03:36:01 +0100
commit4ab0172d609bcb3f0157dc4403afb525dde507cd (patch)
treeefd31e437929a711c3f15bcecb83d80edd383226 /ranger/commands.py
parentb5493fe4b4c47c6ea7834421c67416358f28d3c1 (diff)
downloadranger-4ab0172d609bcb3f0157dc4403afb525dde507cd.tar.gz
allow to filter contents of a directory
Diffstat (limited to 'ranger/commands.py')
-rw-r--r--ranger/commands.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ranger/commands.py b/ranger/commands.py
index 07fa1679..19e02b76 100644
--- a/ranger/commands.py
+++ b/ranger/commands.py
@@ -235,6 +235,12 @@ class rename(Command):
 
 	def tab(self):
 		return self._tab_directory_content()
+
+
+class filter(Command):
+	def execute(self):
+		line = parse(self.line)
+		self.fm.set_filter(line.rest(1))
 	
 
 # -------------------------------- rest