about summary refs log tree commit diff stats
path: root/ranger/container/commandlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/container/commandlist.py')
-rw-r--r--ranger/container/commandlist.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ranger/container/commandlist.py b/ranger/container/commandlist.py
index eca73f23..2ba22ef7 100644
--- a/ranger/container/commandlist.py
+++ b/ranger/container/commandlist.py
@@ -141,7 +141,12 @@ class CommandList(object):
 		for k in keys:
 			del self.paths[k]
 
+	def clear(self):
+		"""remove all bindings"""
+		self.paths.clear()
+		del self.commandlist[:]
 	
+
 class Command(object):
 	"""Command objects store information about a command"""