summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-05 14:02:44 +0200
committerhut <hut@lavabit.com>2011-10-05 14:45:35 +0200
commite21fb9b5b6eac911f9061425826b05de97211549 (patch)
treeb8e00b9358df9d4b50ebc238cab693d309a2736c /ranger
parentb3874587964240b0f270378c304d6ec1cda55a91 (diff)
downloadranger-e21fb9b5b6eac911f9061425826b05de97211549.tar.gz
defaults/commands: added cunmap, punmap, tunmap
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/commands.py26
1 files changed, 25 insertions, 1 deletions
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py
index 61f6f0cd..d046d5a6 100644
--- a/ranger/defaults/commands.py
+++ b/ranger/defaults/commands.py
@@ -859,7 +859,7 @@ class copytmap(copymap):
 class unmap(Command):
 	"""
 	:unmap <keys> [<keys2>, ...]
-	Remove the given mappings
+	Remove the given "browser" mappings
 	"""
 	context = 'browser'
 
@@ -868,6 +868,30 @@ class unmap(Command):
 			self.fm.env.keymaps.unbind(self.context, arg)
 
 
+class cunmap(unmap):
+	"""
+	:cunmap <keys> [<keys2>, ...]
+	Remove the given "console" mappings
+	"""
+	context = 'browser'
+
+
+class punmap(unmap):
+	"""
+	:punmap <keys> [<keys2>, ...]
+	Remove the given "pager" mappings
+	"""
+	context = 'pager'
+
+
+class tunmap(unmap):
+	"""
+	:tunmap <keys> [<keys2>, ...]
+	Remove the given "taskview" mappings
+	"""
+	context = 'taskview'
+
+
 class map_(Command):
 	"""
 	:map <keysequence> <command>