Skip to content

Allow passing suggestions to prompt calls - #2109

Open
jw9829 wants to merge 1 commit into
prompt-toolkit:mainfrom
jw9829:add-static-suggestion-2044
Open

jw9829 wants to merge 1 commit into
prompt-toolkit:mainfrom
jw9829:add-static-suggestion-2044

Conversation

@jw9829

@jw9829 jw9829 commented Sep 27, 2026

Copy link
Copy Markdown

Add a suggestion argument to PromptSession.prompt(), prompt_async(), and prompt() so callers can provide a static suggestion without creating an AutoSuggest class. Fixes #2044.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to set suggestion for empty prompt or an argument with suggestion to prompt()

1 participant