about summary refs log tree commit diff stats
path: root/ranger/gui
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-19 21:18:53 +0100
committerhut <hut@lavabit.com>2010-01-19 21:18:53 +0100
commitaf6658b377d145529e0b9304247ed3b9b6e40856 (patch)
tree2c283f89f634e9bfb841a10d8e2c49a137846e9d /ranger/gui
parent33cb688a37d07e0cc8c4053be46ac3605235468e (diff)
downloadranger-af6658b377d145529e0b9304247ed3b9b6e40856.tar.gz
implemented #48: abbreviate commands
Diffstat (limited to 'ranger/gui')
-rw-r--r--ranger/gui/widgets/console.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 0da0480b..5c888da5 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -292,8 +292,12 @@ class CommandConsole(ConsoleWithTab):
 			return None
 
 		try:
-			return commands.by_name[command_name]
+			return commands.get_command(command_name)
 		except KeyError:
+			self.fm.notify("Invalid command! Press ? for help.", bad=True)
+			return None
+		except ValueError as e:
+			self.fm.notify(e)
 			return None
 	
 	def _get_tab(self):