diff options
author | hut <hut@lavabit.com> | 2010-04-18 15:14:05 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-18 15:14:05 +0200 |
commit | 740e672ffbeaa5e43e3310efbd22da8f38605940 (patch) | |
tree | 135dd2a001a19f97c3ff2a0f5916fe9acc695453 | |
parent | a844afe6ffdcd76b178caa03b95a1f9ea2fce4c6 (diff) | |
download | ranger-740e672ffbeaa5e43e3310efbd22da8f38605940.tar.gz |
use command.quick() rather than command.quick_open()
name could be confused with quickopenconsole
-rw-r--r-- | ranger/defaults/commands.py | 4 | ||||
-rw-r--r-- | 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) |