diff options
author | hut <hut@lepus.uberspace.de> | 2014-12-10 02:42:36 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2014-12-10 02:42:36 +0100 |
commit | 73f4b7befb2304f7a4b328938cd99f7135377c5c (patch) | |
tree | 84fa90b9cd46ce6daac628ca1d2c1b965b26f7fb /ranger | |
parent | 6cae0edfe17c1bf5f8c20c1cc430f7c605b0af78 (diff) | |
download | ranger-73f4b7befb2304f7a4b328938cd99f7135377c5c.tar.gz |
api.commands: sort commands when tabbing in the console, fixes #171
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/api/commands.py | 2 |
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): |