Releases: prompt-toolkit/python-prompt-toolkit
Releases · prompt-toolkit/python-prompt-toolkit
Release list
3.0.53
Fixes:
- Fix get_word_before_cursor behavior.
- Fix vt100 6x6x6 color cube range and missing grayscale shades (232, 254-255).
- Treat OSError on add_reader as EOFError (macOS kqueue).
- Handle surrogate pairs in FileHistory.store_string.
- Fix FuzzyWordCompleter meta_dict type hint to match WordCompleter.
- Handle ascii decode errors in terminal type decoding of telnet protocol. (thanks: @SunandM)
- Update return types of dialog shortcuts to include None when cancelled.
- Set missing minimal requirement on wcwidth.
New features:
- Lazy load
__version__. - Allow to specify
show_numbersinChoiceInput.
Added support for Python 3.14, 3.15, and set minimum Python version to 3.10.
3.0.52
New features:
- Add
choice()shortcut for selecting an option amongst a list of choices (see documentation for examples). - Add support for ANSI dim text formatting.
- Add
frame=...option forprompt()andchoice()shortcuts to allow for displaying a frame around the input prompt.
Fixes:
- Fix button width when non English characters are displayed.
- Implement flushing in Windows VT100 input.
- Fix signal handling for GraalPy.
- Fix handling of zero sized dimensions.
3.0.51
New features:
- Use pyproject.toml instead of setup.py.
Fixes:
- Fix edge case in
formatted_text.split_lineswhen the input starts with a line ending.
3.0.50
Fixes:
- Fixes non user impacting regression on the output rendering. Don't render
cursor hide/show ANSI escape codes if not needed.
3.0.49
New features:
- On Windows, use virtual terminal input when available.
- Support for multiline suggestions.
Fixes:
- Handle
InvalidStateErrorduring termination when using
run_in_terminal/patch_stdout. This can happen in some cases during
cancellation, probably when using anyio. - Fix cursor that remains in hidden state when the application exits. This can
happen when the application doesn't show the cursor anderase_when_doneis
being used.
Breaking changes:
- Drop support for Python 3.7
3.0.48
Fixes:
- Typing improvements:
- Add
@overloadtocontrib.regular_languages.compiler.Variables.get. - Use
Sequenceinstead oflistforwordsargument in completers.
- Add
- Improve
ModalCursorShapeConfig:- Display an "underscore" cursor in Vi's "replace single" mode, like
"replace" mode. - Display an "beam" cursor in Emacs (insert) mode.
- Display an "underscore" cursor in Vi's "replace single" mode, like
3.0.47
New features:
- Allow passing exception classes for
KeyboardInterruptandEOFErrorinPromptSession.
Fixes:
- Compute padding parameters for
Boxwidget lazily.
3.0.46
Fixes:
- Fix pytest capsys fixture compatibility.
3.0.45
Fixes:
- Improve performance of
GrammarCompleter(faster deduplication of completions).
3.0.44
New features:
- Accept
os.PathLikeinFileHistory(typing fix).
Fixes:
- Fix memory leak in filters.
- Improve performance of progress bar formatters.
- Fix compatibility when a SIGINT handler is installed by non-Python (Rust, C).
- Limit number of completions in buffer to 10k by default (for performance).