All Versions
98
Latest Version
Avg Release Cycle
29 days
Latest Release
591 days ago

Changelog History
Page 3

  • v3.0.12 Changes

    January 21, 2021

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fixed a race condition in ThreadedHistory that happens when continuously pasting input text (which would continously repopulate the history).
    • ๐Ÿšš Move cursor key mode resetting (for vt100 terminals) to the renderer. (Mostly cleanup).
  • v3.0.11 Changes

    January 20, 2021

    ๐Ÿ†• New features:

    • ๐Ÿ“Š Poll terminal size: better handle resize events when the application runs in a thread other than the main thread (where handling SIGWINCH doesn't work) or in the Windows console.

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix bug in system toolbar. The execution of system commands was broken.
    • ๐Ÿ”จ A refactoring of patch_stdout that includes several fixes.
      • We know look at the AppSession in order to see which application is running, rather then looking at the event loop which is installed when StdoutProxy is created. This way, patch_stdout will work when prompt_toolkit applications with a different event loop run.
      • Fix printing when no application/event loop is running.
      • Fixed the raw argument of PatchStdout.
    • ๐Ÿ”จ A refactoring of the ThreadedHistory, which includes several fixes, in particular a race condition (see issue #1158) that happened when editing input while a big history was still being loaded in the background.
  • v3.0.10 Changes

    January 08, 2021

    ๐Ÿ†• New features:

    • ๐Ÿ‘Œ Improved WordCompleter: accept display_dict. Also accept formatted text for both display_dict and meta_dict.
    • ๐Ÿ‘ Allow customization of button arrows.

    ๐Ÿ›  Fixes:

    • ๐Ÿ Correctly recognize backtab on Windows.
    • ๐Ÿ‘‰ Show original display text in fuzzy completer if no filtering was done.
  • v3.0.9 Changes

    January 05, 2021

    ๐Ÿ†• New features:

    • ๐Ÿง Handle c-tab for TERM=linux.

    ๐Ÿ›  Fixes:

    • Improve rendering speed of print_formatted_text. (Don't render styling attributes to output between fragments that have identical styling.)
    • Gracefully handle FileHistory decoding errors.
    • ๐Ÿ—„ Prevent asyncio deprecation warnings.
  • v3.0.8 Changes

    October 12, 2020

    ๐Ÿ†• New features:

    • โž• Added validator parameter to input_dialog.

    ๐Ÿ›  Fixes:

    • Cope with stdout not having a working fileno.
    • ๐Ÿ– Handle situation when /dev/null is piped into stdin, or when stdin is closed somehow.
    • ๐Ÿ›  Fix for telnet/ssh server: isatty method was not implemented.
    • Display correct error when a tuple is passed into to_formatted_text.
    • Pass along WORD parameter in Document._is_word_before_cursor_complete. Fixes some key bindings.
    • ๐Ÿ”ฆ Expose ProgressBarCounter in shortcuts module.
  • v3.0.7 Changes

    August 29, 2020

    ๐Ÿ†• New features:

    • ๐Ÿ†• New "placeholder" parameter added to PromptSession.

    Other changes:

    • ๐Ÿšš The "respond to CPR" logic has been moved from the Input to Output classes (this does clean up some code).

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Bugfix in shift-selection key bindings.
    • ๐Ÿ›  Fix hight calculation of FormattedTextControl when line wrapping is turned on.
    • ๐Ÿ›  Fixes for SSH server:
      • Missing encoding property.
      • Fix failure in "set_line_mode" call.
      • Handle BrokenPipeError.
  • v3.0.6 Changes

    August 10, 2020

    ๐Ÿ†• New features:

    • ๐Ÿ”จ The SSH/Telnet adaptors have been refactored and improved in several ways. See issues #876 and PR #1150 and #1184 on GitHub.
      • Handle terminal types for both telnet and SSH sessions.
      • Added pipe input abstraction. (base class for PosixPipeInput and Win32PipeInput).
      • The color depth logic has been refactored and moved to the Output implementations. Added get_default_color_depth method to Output objects.
      • All line feets are now preceded by a carriage return in the telnet connection stdout.
    • Introduce REPLACE_SINGLE input mode for Vi key bindings.
    • ๐Ÿ‘Œ Improvements to the checkbox implementation:
      • Hide the scrollbar for a single checkbox.
      • Added a "checked" setter to the checkbox.
    • Expose KeyPressEvent in key_binding/init.py (often used in type annotations).
    • โšก๏ธ The renderer has been optimized so that no trailing spaces are generated (this improves copying in some terminals).

    ๐Ÿ›  Fixes:

    • 0๏ธโƒฃ Ignore F21..F24 key bindings by default.
    • ๐Ÿ›  Fix auto_suggest key bindings when suggestion text is empty.
    • ๐Ÿ›  Bugfix in SIGWINCH handling.
    • ๐Ÿ– Handle bug in HSplit/VSplit when the number of children is zero.
    • ๐Ÿ›  Bugfix in CPR handling in renderer. Proper cancellation of pending tasks.
    • Ensure rprompt aligns with input.
    • ๐Ÿ‘‰ Use sys.stdin.encoding for decoding stdin stream.
  • v3.0.5 Changes

    March 26, 2020

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Bugfix in mouse handling on Windows.
  • v3.0.4 Changes

    March 06, 2020

    ๐Ÿ†• New features:

    • โž• Added many more vt100 ANSI sequences and keys.
    • ๐Ÿ‘Œ Improved control/shift key support in Windows.
    • No Mypy errors in prompt_toolkit anymore.
    • ๐Ÿ‘ป Added set_exception_handler optional argument to PromptSession.prompt().

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Bugfix in invalidate code. PromptSession was invalidating the UI continuously.
    • Add uvloop support (was broken due to an issue in our call_soon_threadsafe).
    • ๐Ÿ‘ป Forwarded set_exception_handler in Application.run to the run_async call.
    • ๐Ÿ›  Bugfix in NestedCompleter when there is a leading space.

    ๐Ÿ’ฅ Breaking changes:

    • ShiftControl has been replaced with ControlShift and s-c with c-s in key bindings. Aliases for backwards-compatibility have been added.
  • v3.0.3 Changes

    January 26, 2020

    ๐Ÿ†• New features:

    • ๐Ÿ‘Œ Improved support for "dumb" terminals.
    • โž• Added support for new keys (vt100 ANSI sequences): Alt + home/end/page-up/page-down/insert.
    • ๐Ÿ‘ Better performance for the "regular languages compiler". Generate fewer and better regular expressions. This should improve the start-up time for applications using this feature.
    • ๐Ÿ‘ Better detection of default color depth.
    • ๐Ÿ‘Œ Improved the progress bar:
      • Set "time left" to 0 when done or stopped.
      • Added ProgressBarCounter.stopped.
    • Accept callables for scroll_offset, min_brightness and max_brightness.
    • Added always_prefer_tty parameters to create_input() and create_output().
    • Create a new event loop in Application.run() if get_event_loop() raises Runtimeerror.

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Correct cancellation of flush timers for input. (Fixes resource leak where too many useless coroutines were created.)
    • ๐Ÿ‘Œ Improved the Win32 input event loop. This fixes a bug where the prompt_toolkit application is stopped by something other than user input. (In that case, the application would hang, waiting for input.) This also fixes a RuntimeError in the progress bar code.
    • ๐Ÿ›  Fixed line-number.current style. (was current-line-number.)
    • ๐Ÿ– Handle situation where stdout is no longer a tty (fix bug in get_size).
    • ๐Ÿ›  Fix parsing of true color in ANSI strings.
    • Ignore invalidate() if the application is not running.