From 2e971c4392957e455ef142318566b43a128fbf39 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 30 Apr 2010 01:46:45 +0200 Subject: api.commands: bugfix (renamed Command.quick_open to Command.quick) --- ranger/api/commands.py | 2 +- ranger/help/console.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ranger/api/commands.py b/ranger/api/commands.py index 55bb5b54..73975adc 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -80,7 +80,7 @@ class Command(FileManagerAware): def tab(self): """Override this""" - def quick_open(self): + def quick(self): """Override this""" def _tab_only_directories(self): diff --git a/ranger/help/console.py b/ranger/help/console.py index 1b78b215..3e83e4a8 100644 --- a/ranger/help/console.py +++ b/ranger/help/console.py @@ -144,9 +144,9 @@ ranger/ext/command_parser.py is used. The tab method should return None, a string or an iterable sequence containing the strings which should be cycled through by pressing tab. -Only those commands which implement the quick_open method will be specially +Only those commands which implement the quick() method will be specially treated by the Quick Command Console. For the rest, both consoles are equal. -quick_open is called after each key press and if it returns True, the +quick() is called after each key press and if it returns True, the command will be executed immediately. -- cgit 1.4.1-2-gfad0