autocompletion without dialog

305 views Asked by At

Does the prompt-toolkit module supports autocompletion without displaying a dialog box (using tab to autocomplete)? I find the dialog box a bit bulky and overkill when there are a fairly large number of options to autocomplete with.

A-la bash-shell or comparable, using either prompt() or session.prompt()?

enter image description here

Thank you for looking.

1

There are 1 answers

1
Jerome Ibanes On
from prompt_toolkit.shortcuts import CompleteStyle
[...]
session = PromptSession(lexer=PygmentsLexer(...), completer=commands, complete_while_typing=True, complete_style=CompleteStyle.READLINE_LIKE)