about summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-09-30 04:19:16 +0200
committerhut <hut@lavabit.com>2011-09-30 04:55:07 +0200
commit41df56beff2785174b4b466c8cc39159a79eaedc (patch)
treec0fab60a14d969b2a6fc14bfb7668c67f04b2093 /ranger/core/actions.py
parentb1d25114617f41538f1e9e1740229f5e326c9f88 (diff)
downloadranger-41df56beff2785174b4b466c8cc39159a79eaedc.tar.gz
implemented a new keybinding parser
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 0314888d..3427af7f 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -98,7 +98,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 		try:
 			cmd_class = self.commands.get_command(command_name)
 		except:
-			self.notify("Command not found: `%s'" % command_name)
+			self.notify("Command not found: `%s'" % command_name, bad=True)
 		else:
 			try:
 				cmd_class(string).execute()
@@ -170,6 +170,8 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 	def source_cmdlist(self, filename, narg=None):
 		for line in open(filename, 'r'):
 			line = line.rstrip("\r\n")
+			if line.startswith("#") or not line.strip():
+				continue
 			try:
 				self.execute_console(line)
 			except Exception as e: