about summary refs log tree commit diff stats
path: root/ranger/api/commands.py
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-12-10 02:42:36 +0100
committerhut <hut@lepus.uberspace.de>2014-12-10 02:42:36 +0100
commit73f4b7befb2304f7a4b328938cd99f7135377c5c (patch)
tree84fa90b9cd46ce6daac628ca1d2c1b965b26f7fb /ranger/api/commands.py
parent6cae0edfe17c1bf5f8c20c1cc430f7c605b0af78 (diff)
downloadranger-73f4b7befb2304f7a4b328938cd99f7135377c5c.tar.gz
api.commands: sort commands when tabbing in the console, fixes #171
Diffstat (limited to 'ranger/api/commands.py')
-rw-r--r--ranger/api/commands.py2
1 files changed, 1 insertions, 1 deletions
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):