From 80bdc005583adc47a12c28a3f850201958665f10 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 18 Jan 2010 00:22:23 +0100 Subject: commands: added tabcompletion for :edit --- ranger/commands.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ranger/commands.py b/ranger/commands.py index ae502cdb..3bf65096 100644 --- a/ranger/commands.py +++ b/ranger/commands.py @@ -187,6 +187,8 @@ class find(Command): """ count = 0 + tab = Command._tab_directory_content + def execute(self): if self.mode != cmode.COMMAND_QUICK: self._search() @@ -203,9 +205,6 @@ class find(Command): self.fm.block_input(0.5) return True - def tab(self): - return self._tab_directory_content() - def _search(self): self.count = 0 line = parse(self.line) @@ -305,6 +304,9 @@ class edit(Command): line = parse(self.line) self.fm.edit_file(line.rest(1)) + def tab(self): + return self._tab_directory_content() + class rename(Command): """ -- cgit 1.4.1-2-gfad0