All Versions
98
Latest Version
Avg Release Cycle
29 days
Latest Release
769 days ago
Changelog History
Page 7
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 setcompletion_requested
.
Backwards-incompatible changes:
- ๐ Renamed
ValidationError.index
toValidationError.cursor_position
. - ๐ Renamed
shortcuts.get_input
toshortcuts.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 toConditionalValidator
.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 forTokenListControl
. - โ 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 aPygmentsLexer
class.prompt_toolkit.shortcuts
still accepts Pygments lexers directly for backwards-compatibility. - BufferControl no longer has a
show_line_numbers
argument. Pass aNumberedMargin
instance instead. - The
History
class became an abstract base class and only defines an interface. The default history class is now calledInMemoryHistory
.
- Added