##// END OF EJS Templates
Allow showing dict keys only
Steven Silvester -
Show More
@@ -1000,6 +1000,9 b' class IPCompleter(Completer):'
1000 1000 else:
1001 1001 self.splitter.delims = DELIMS
1002 1002
1003 dict_keys_only = Bool(False,
1004 help="""Whether to show dict key matches only""")
1005
1003 1006 merge_completions = Bool(True,
1004 1007 help="""Whether to merge completion results into a single list
1005 1008
@@ -1113,6 +1116,9 b' class IPCompleter(Completer):'
1113 1116 @property
1114 1117 def matchers(self):
1115 1118 """All active matcher routines for completion"""
1119 if self.dict_keys_only:
1120 return [self.dict_key_matches]
1121
1116 1122 if self.use_jedi:
1117 1123 return [
1118 1124 self.file_matches,
General Comments 0
You need to be logged in to leave comments. Login now