From 2097eca6461dde1cf04cc3a284cdf819b298101c Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 17 Aug 2013 19:22:04 +0430 Subject: [PATCH] hit tab once in readline instead of twice --- jedi/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jedi/utils.py b/jedi/utils.py index 4632a989..25e3cf49 100644 --- a/jedi/utils.py +++ b/jedi/utils.py @@ -82,5 +82,8 @@ def setup_readline(namespace_module=__main__): readline.parse_and_bind("tab: complete") # jedi itself does the case matching readline.parse_and_bind("set completion-ignore-case on") + # because it's easier to hit the tab just once + readline.parse_and_bind("set show-all-if-unmodified") + readline.parse_and_bind("set show-all-if-ambiguous on") # No delimiters, Jedi handles that. readline.set_completer_delims('')