Title: Add an option to disable the "completion_does_nothing" filter
Author: captainSuoCreated Sep 19, 2026Updated Sep 19, 2026
We have these code for completers:
# When there is only one completion, which has nothing to add, ignore it.
if len(completions) == 1 and completion_does_nothing(
document, completions[0]
):
del completions[:]This may seem logical, but I don't want this feature.
I hope there will be a parameter to turn it off. Thanks.
Source: prompt-toolkit/python-prompt-toolkit