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