We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50a43e9 commit 8ce4065Copy full SHA for 8ce4065
src/prompt_toolkit/shortcuts/dialogs.py
@@ -109,6 +109,7 @@ def input_dialog(
109
validator: Optional[Validator] = None,
110
password: FilterOrBool = False,
111
style: Optional[BaseStyle] = None,
112
+ default: str = "",
113
) -> Application[str]:
114
"""
115
Display a text input box.
@@ -126,6 +127,7 @@ def ok_handler() -> None:
126
127
cancel_button = Button(text=cancel_text, handler=_return_none)
128
129
textfield = TextArea(
130
+ text=default,
131
multiline=False,
132
password=password,
133
completer=completer,
0 commit comments