From 41df56beff2785174b4b466c8cc39159a79eaedc Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 30 Sep 2011 04:19:16 +0200 Subject: implemented a new keybinding parser --- ranger/core/actions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ranger/core/actions.py') 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: -- cgit 1.4.1-2-gfad0