##// END OF EJS Templates
Merge pull request #13827 from krassowski/improve-completer-docs...
Matthias Bussonnier -
r27882:fb2642c5 merge
parent child Browse files
Show More
@@ -697,7 +697,10 b' def completion_matcher('
697 identifier : Optional[str]
697 identifier : Optional[str]
698 identifier of the matcher allowing users to modify the behaviour via traitlets,
698 identifier of the matcher allowing users to modify the behaviour via traitlets,
699 and also used to for debugging (will be passed as ``origin`` with the completions).
699 and also used to for debugging (will be passed as ``origin`` with the completions).
700 Defaults to matcher function ``__qualname__``.
700
701 Defaults to matcher function's ``__qualname__`` (for example,
702 ``IPCompleter.file_matcher`` for the built-in matched defined
703 as a ``file_matcher`` method of the ``IPCompleter`` class).
701 api_version: Optional[int]
704 api_version: Optional[int]
702 version of the Matcher API used by this matcher.
705 version of the Matcher API used by this matcher.
703 Currently supported values are 1 and 2.
706 Currently supported values are 1 and 2.
@@ -1460,14 +1463,18 b' class IPCompleter(Completer):'
1460
1463
1461 If False, only the completion results from the first non-empty
1464 If False, only the completion results from the first non-empty
1462 completer will be returned.
1465 completer will be returned.
1463
1466
1464 As of version 8.6.0, setting the value to ``False`` is an alias for:
1467 As of version 8.6.0, setting the value to ``False`` is an alias for:
1465 ``IPCompleter.suppress_competing_matchers = True.``.
1468 ``IPCompleter.suppress_competing_matchers = True.``.
1466 """,
1469 """,
1467 ).tag(config=True)
1470 ).tag(config=True)
1468
1471
1469 disable_matchers = ListTrait(
1472 disable_matchers = ListTrait(
1470 Unicode(), help="""List of matchers to disable."""
1473 Unicode(),
1474 help="""List of matchers to disable.
1475
1476 The list should contain matcher identifiers (see :any:`completion_matcher`).
1477 """,
1471 ).tag(config=True)
1478 ).tag(config=True)
1472
1479
1473 omit__names = Enum(
1480 omit__names = Enum(
@@ -82,6 +82,8 b' class ConfigMagics(Magics):'
82 Current: False
82 Current: False
83 IPCompleter.disable_matchers=<list-item-1>...
83 IPCompleter.disable_matchers=<list-item-1>...
84 List of matchers to disable.
84 List of matchers to disable.
85 The list should contain matcher identifiers (see
86 :any:`completion_matcher`).
85 Current: []
87 Current: []
86 IPCompleter.greedy=<Bool>
88 IPCompleter.greedy=<Bool>
87 Activate greedy completion
89 Activate greedy completion
General Comments 0
You need to be logged in to leave comments. Login now