From 740e672ffbeaa5e43e3310efbd22da8f38605940 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 18 Apr 2010 15:14:05 +0200 Subject: use command.quick() rather than command.quick_open() name could be confused with quickopenconsole --- ranger/defaults/commands.py | 4 ++-- ranger/gui/widgets/console.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py index ac18faae..241e66df 100644 --- a/ranger/defaults/commands.py +++ b/ranger/defaults/commands.py @@ -87,7 +87,7 @@ class cd(Command): def tab(self): return self._tab_only_directories() - def quick_open(self): + def quick(self): from os.path import isdir, join, normpath line = parse(self.line) cwd = self.fm.env.cwd.path @@ -128,7 +128,7 @@ class find(Command): self.fm.move(right=1) self.fm.block_input(0.5) - def quick_open(self): + def quick(self): self._search() if self.count == 1: return True diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index 36090bb5..c18e7f50 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -380,7 +380,7 @@ class QuickCommandConsole(CommandConsole): pass else: cmd = cls(self.line, self.mode) - if cmd and cmd.quick_open(): + if cmd and cmd.quick(): self.execute(cmd) -- cgit 1.4.1-2-gfad0