From acaa21368f704a1fb09e95cdfcda4ade27e27b1b 2016-04-29 21:23:56 From: Matthias Bussonnier Date: 2016-04-29 21:23:56 Subject: [PATCH] Promote keywords arguments completion. Mostly when you are completing in a function call, it seem logical that if keywords are available, they are the ones you are interested in. --- diff --git a/IPython/core/completer.py b/IPython/core/completer.py index 5a5c51e..bee864f 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -190,6 +190,9 @@ def completions_sorting_key(word): elif word.startswith('_'): prio1 = 1 + if word.endswith('='): + prio1 = -1 + if word.startswith('%%'): # If there's another % in there, this is something else, so leave it alone if not "%" in word[2:]: