From 73f4b7befb2304f7a4b328938cd99f7135377c5c Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 10 Dec 2014 02:42:36 +0100 Subject: api.commands: sort commands when tabbing in the console, fixes #171 --- ranger/api/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ranger/api/commands.py') diff --git a/ranger/api/commands.py b/ranger/api/commands.py index e00fe385..d7cd2372 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -75,7 +75,7 @@ class CommandContainer(object): return None def command_generator(self, start): - return (cmd + ' ' for cmd in self.commands if cmd.startswith(start)) + return sorted(cmd + ' ' for cmd in self.commands if cmd.startswith(start)) class Command(FileManagerAware): -- cgit 1.4.1-2-gfad0