From 0ca4102eba666be641f1e3f19548c304de52fee5 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 14 Apr 2015 00:12:41 +0200 Subject: config.commands: fixed :meta tab completion --- ranger/config/commands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 22fd49a5..d2df029a 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1471,7 +1471,11 @@ class meta(prompt_metadata): key = self.arg(1) metadata = self.fm.metadata.get_metadata(self.fm.thisfile.path) if key in metadata and metadata[key]: - return self.arg(0) + " " + metadata[key] + return [" ".join([self.arg(0), self.arg(1), metadata[key]])] + else: + return [self.arg(0) + " " + key for key in sorted(metadata) + if key.startswith(self.arg(1))] + class linemode(default_linemode): """ -- cgit 1.4.1-2-gfad0