From 9f5d09b716b5a11336b629a0ec15d70a4add2714 Mon Sep 17 00:00:00 2001 From: Markus Roth Date: Wed, 6 May 2015 18:20:48 +0200 Subject: [PATCH] Sort tab completion matches. --- bash_kernel/kernel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_kernel/kernel.py b/bash_kernel/kernel.py index 05af6bb..0cdcfb4 100644 --- a/bash_kernel/kernel.py +++ b/bash_kernel/kernel.py @@ -143,7 +143,7 @@ class BashKernel(Kernel): return default matches = [m for m in matches if m.startswith(token)] - return {'matches': matches, 'cursor_start': start, + return {'matches': sorted(matches), 'cursor_start': start, 'cursor_end': cursor_pos, 'metadata': dict(), 'status': 'ok'}