diff options
author | hut <hut@lavabit.com> | 2010-01-18 00:22:23 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-18 00:22:23 +0100 |
commit | 80bdc005583adc47a12c28a3f850201958665f10 (patch) | |
tree | 273fcc148e800c0be0d5eed10754735a052764e6 | |
parent | c2f7c84c1aa524d6224e53888625c0e6fa153d6a (diff) | |
download | ranger-80bdc005583adc47a12c28a3f850201958665f10.tar.gz |
commands: added tabcompletion for :edit
-rw-r--r-- | ranger/commands.py | 8 |
1 files 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): """ |