From d23958a156c5460009d6a79cdc92d7392d0814ea 2021-11-15 19:26:45 From: Matthias Bussonnier Date: 2021-11-15 19:26:45 Subject: [PATCH] Move dict keys completions higher. If we are in a dict this is likely way more accurate. --- diff --git a/IPython/core/completer.py b/IPython/core/completer.py index 57bfa9d..c6d20bb 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -1191,18 +1191,18 @@ class IPCompleter(Completer): if self.use_jedi: return [ *self.custom_matchers, + self.dict_key_matches, self.file_matches, self.magic_matches, - self.dict_key_matches, ] else: return [ *self.custom_matchers, + self.dict_key_matches, self.python_matches, self.file_matches, self.magic_matches, self.python_func_kw_matches, - self.dict_key_matches, ] def all_completions(self, text:str) -> List[str]: