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

Changelog History
Page 7

  • v0.56 Changes

    January 03, 2016

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix in bracketed paste. It was not correctly enabled for each prompt.
  • v0.55 Changes

    January 03, 2016

    ๐Ÿ†• New features:

    • Implemented bracketed paste mode. (This allows much faster pasting, as well as pasting without going into paste mode. This makes sure that indentation in ptpython for instance is kept correctly.)
    • โž• Added support for italic output and blink. (For terminals that support it.)
    • Added get_horizontal_scroll, get_vertical_scroll and always_hide_cursor parameters to Window.
    • ๐Ÿ”จ Refactoring of the posix event loop. Better scheduling of all tasks/FDs to avoid starvation. (Everything should feel more responsive in high CPU situations.)
    • 0๏ธโƒฃ Added get_default_char function to TokenListControl.
    • AppendAutoSuggestion now accepts a token parameter.
    • ๐Ÿ‘Œ Support for ansi color names in styles.
    • Accept get_width/get_height parameters in Float.
    • โž• Added Output.write_raw and accept 'raw' parameter in CommandLineInterface.stdout_proxy.
    • ๐Ÿ‘ Better caching of tokens in TokenListControl.
    • โž• Add mouse support to TokenListControl.
    • Display "Window too small" when the window becomes too small.
    • โž• Added 'bell' function to Output.
    • Accept weights in HSplit/VSplit.
    • โž• Added Registry.remove_binding method to dynamically remove key bindings.
    • Added focus_on_click parameter to BufferControl.
    • Introduced BufferMapping class as a wrapper around the buffers dictionary. This one also contains the focus stack.
    • ๐Ÿ‘Œ Improved 'v' and 'V' key bindings. Allow switching between line and character selection modes.
    • โž• Added layout.highlighters. A new, much faster way to do selection and search highlighting.
    • ๐Ÿ‘‰ Make search_state dynamic for key bindings.
    • โž• Added 'sentence' option to WordCompleter.
    • ๐ŸŽ Cache Document.lines for better performance.
    • Implementation of BLOCK selections. (Cut, copy, paste.)
    • Accept a 'reserve_space_for_menu' parameter in the shortcuts. (This is an integer.)
    • ๐Ÿ‘Œ Support for 24bit true color on vt100 terminals.
    • โž• Added CommandLineInterface.on_invalidate event.
    • ๐Ÿ”– Added version to init.py.

    ๐Ÿ›  Fixes:

    • Always show cursor in the 'done' state.
    • ๐Ÿ‘ Allow HSplit to have zero children.
    • ๐Ÿ›  Bugfix for handling of backslash on Windows with some non-us keyboards. (Ptpython issue #28.)
    • Never render characters outside the visible screen region.
    • ๐Ÿ›  Fix in WordCompleter. When case insensitive and input contained uppercase.
    • Highlight search match when the cursor is at any position on the match. (not just the beginning.)

    Backwards-incompatible changes: (Most changes will probably not have an impact on external applications.)

    • ๐Ÿ’… Change in the Style API. This allows caching of Attrs in renderer and faster rendering. (Style now has a get_attrs_for_token instead of a get_token_to_attributes_dict method.)
    • โœ‚ Removed DefaultStyle. Created PygmentsStyle.from_defaults class method instead.
    • โœ‚ Removed AbortAction.IGNORE. This was ambiguous.
    • Accept 'cli' parameter in 'walk' and 'find_window_for_buffer_name'.
    • The focus stack is now stored in BufferMapping.
    • ViStateFilter and KeyBindingManager now accept a get_vi_state callable instead of vi_state itself. (This way a key bindings registry becomes stateless.)
    • ๐Ÿ—„ HighlightSearchProcessor and HighlightSelectionProcessor became deprecated. (Use highlighters instead.)
  • v0.54 Changes

    October 29, 2015

    ๐Ÿ†• New features:

    • ๐Ÿ‘ Allow CommandLineInterface to run in any thread.
    • Hide cursor while rendering.
    • ๐Ÿšš Added add_reader/remove_reader methods to EventLoop.
    • ๐Ÿ‘Œ Support for 'reverse' style.
    • Redraw more lazy, by using invalidate.
    • โž• Added show_cursor property to Screen.
    • Center or right align text in TokenListControl also when it spans multiple lines.

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Bugfix in PathCompleter. (Expanduser issue.)
    • ๐Ÿ›  Fix in signal handler.
    • 0๏ธโƒฃ Use utf-8 encoding in Vt100_Output by default.
    • 0๏ธโƒฃ Use correct default token in BufferControl.
    • ๐Ÿ›  Fix in ControlL key binding. Use @handle to allow deactivation.

    Backwards-incompatible changes:

    • 0๏ธโƒฃ Renamed create_default_layout to create_prompt_layout
    • 0๏ธโƒฃ Renamed create_default_application to create_prompt_application
    • ๐Ÿ“‡ Renamed Layout to Container.
    • ๐Ÿ“‡ Renamed CommandLineInterfaces.request_redraw to invalidate.
    • 0๏ธโƒฃ Changed the actual value of SEARCH_BUFFER, DEFAULT_BUFFER, SYSTEM_BUFFER and DUMMY_BUFFER.
    • ๐Ÿ”„ Changed order of keyword arguments of the BufferControl class. "buffer_name" now comes first.
    • โœ‚ Removed old pt(i)python code.
  • v0.53 Changes

    October 06, 2015

    ๐Ÿ†• New features:

    • Handling of the insert key in Vi mode.
    • โž• Added 'zt' and 'zb' Vi key bindings.
    • โž• Added delete key binding for deleting selected text.
    • Select word below cursor on double mouse click.
    • โž• Added wrap_lines option to TokenListControl.
    • โž• Added KeyBindingManager.for_prompt.

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix in rendering output.
    • Reset renderer correctly in run_in_terminal.
    • Only reset buffer when using AbortAction.RETRY.
    • ๐Ÿ›  Fix in handling of exit (Ctrl-D) key presses.
    • ๐Ÿ›  Fix in CompleteEvent. Correctly set completion_requested.

    Backwards-incompatible changes:

    • ๐Ÿ“‡ Renamed ValidationError.index to ValidationError.cursor_position.
    • ๐Ÿ“‡ Renamed shortcuts.get_input to shortcuts.prompt.
    • Return empty string instead of None in Document.current_char/char_before_cursor.
  • v0.52 Changes

    September 24, 2015

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fix in auto suggestion: hide suggestion when accepting input.
  • v0.51 Changes

    September 24, 2015

    ๐Ÿ†• New features:

    • ๐Ÿ Mouse support. (Scrolling and clicking for vt100 terminals. For Windows only clicking.) Both the autocompletion menus and buffer controls respond to scrolling and clicking.
    • โž• Added auto suggestions. (Like the fish shell.)
    • Stdout proxy become thread safe.
    • Linewrapping can now be disabled, instead we get horizontal scrolling.
    • Line numbering can now be relative. Like the vi 'relativenumber' option.

    ๐Ÿ›  Fixes:

    • ๐Ÿ›  Fixed excessive scrolling in Windows.
    • ๐Ÿ›  Bugfix in search highlighting.
    • Copy all words during repetition of Ctrl-W presses.
    • ๐Ÿšš The 'libs' folder has been removed.
    • ๐Ÿ›  Fix in MultiColumnCompletionsMenu: don't create very big columns.

    Backwards-incompatible changes:

    • 0๏ธโƒฃ Disable search by default in KeyBindingManager.
    • 0๏ธโƒฃ Separated abort/exit key bindings. Disabled by default in KeyBindingManager.
    • 0๏ธโƒฃ 'Ignore' became the default on_abort action in Application.
    • 0๏ธโƒฃ 'Ignore' became the default accept_action in Buffer.
    • ๐Ÿ”จ The layout processors have been refactored. The API is changed.
    • SwitchableValidator has been renamed to ConditionalValidator.
    • WindowRenderInfo has several incompatible changes.
    • ๐Ÿ”จ Margins have been refactored completely. Now it's the window that has the margin instead of BufferControl. Is is both much more performant and flexible.
  • v0.50 Changes

    September 06, 2015

    ๐Ÿ›  Fix:

    • ๐Ÿ Leaving of alternate screen on Windows.
  • v0.49 Changes

    September 06, 2015

    ๐Ÿ†• New features:

    • โž• Added MANIFEST.in
    • ๐Ÿ‘ Better support for multiline prompts in shortcuts.
    • โž• Added Document.set_document method.
    • 0๏ธโƒฃ Added 'default' argument to shortcuts.create_default_application.
    • โž• Added align_center option for TokenListControl.
    • โž• Added optional key bindings for full page navigation. (Moved key bindings from pyvim into prompt-toolkit.)
    • 0๏ธโƒฃ Accepts default_char in BufferControl for filling the background.
    • โž• Added InFocusStack filter.

    ๐Ÿ›  Fixes:

    • Small fix in TokenListControl: use the right Char for aligning.

    Backwards-incompatible changes:

    • โœ‚ Removed deprecated 'tokens' attribute from GrammarLexer.
  • v0.48 Changes

    September 02, 2015

    ๐Ÿ†• New features:

    • run_in_terminal now returns the result of the called function.
    • Made history attribute of Buffer class public.
    • โž• Added support for sub CommandLineInterfaces.
    • Accept optional vi_state parameter in KeyBindingManager.

    ๐Ÿ›  Fixes:

    • Pop-up menu positioning. The menu was shown too often above instead of below the cursor.
    • ๐Ÿ›  Fix in Control-W key binding. When there is only whitespace before the cursor, delete the whitespace.
    • Rendering bug fix in open_in_editor: run editor using cli.run_in_terminal.
    • ๐Ÿ›  Fix in renderer. Correctly reserve the vertical space as required by the layout.
    • Small fix in Margin ABC.
    • Added iter to History ABC.
    • ๐Ÿ›  Small bugfix in CommandLineInterface: create correct eventloop when no eventloop was given.
    • โฑ Never schedule a second repaint operation when a previous was not yet executed.
  • v0.47 Changes

    August 19, 2015

    ๐Ÿ†• New features:

    • Added prompt_toolkit.layout.utils.iter_token_lines.
    • ๐Ÿ‘ Allow None values on the focus stack.
    • Buffers can be readonly. Added IsReadOnly filter.
    • eager behaviour for key bindings. When a key binding is eager it will be executed as soon as it's matched, even when there is another binding that starts with this key sequence.
    • Custom margins for BufferControl.

    ๐Ÿ›  Fixes:

    • Don't trigger autocompletion on paste.
    • โž• Added pre_run parameter to CommandLineInterface.
    • Correct invalidation of BeforeInput and AfterInput.
    • Correctly handle transparency. (For floats.)
    • Small change in the algorithm to determine Window dimensions: keep in the bounds of the Window dimensions.

    Backwards-incompatible changes:

    • There a now a Lexer abstract base class. Every lexer should be an instance of that class, and Pygments lexers should be wrapped in a PygmentsLexer class. prompt_toolkit.shortcuts still accepts Pygments lexers directly for backwards-compatibility.
    • BufferControl no longer has a show_line_numbers argument. Pass a NumberedMargin instance instead.
    • The History class became an abstract base class and only defines an interface. The default history class is now called InMemoryHistory.