1CHANGELOG
2=========
3
42.0.10: 2019-10-03
5------------------
6
7Bug fixes:
8- Handle HANDLE sizes correctly on windows. This made things break randomly.on
9  64 bit systems.
10- Handle terminal size correctly when reported as (0, 0).
11- Fix width computation in progress bar formatter.
12- Fix option-up and -down on Mac with iTerm2.
13- Removed ctrl-c in confirmation prompt.
14
15New features:
16- Added PROMPT_TOOLKIT_NO_CPR=1 environment variable to disable CPR requests.
17- Accept a pattern in `WordCompleter`.
18
19
202.0.9: 2019-02-19
21-----------------
22
23Bug fixes:
24- Fixed `Application.run_system_command` on Windows.
25- Fixed bug in ANSI text formatting: correctly handle 256/true color sequences.
26- Fixed bug in WordCompleter. Provide completions when there's a space before
27  the cursor.
28
29
302.0.8: 2019-01-27
31-----------------
32
33Bug fixes:
34- Fixes the issue where changes made to the buffer in the accept handler were
35  not reflected in the history.
36- Fix in the application invalidate handler. This prevents a significat slow
37  down in some applications after some time (especially if there is a refresh
38  interval).
39- Make `print_container` utility work if the input is not a pty.
40
41New features:
42- Underline non breaking spaces instead of rendering as '&'.
43- Added mouse support for radio list.
44- Support completion styles for `READLINE_LIKE` display method.
45- Accept formatted text in the display text of completions.
46- Added a `FuzzyCompleter` and `FuzzyWordCompleter`.
47- Improved error handling in Application (avoid displaying a meaningless
48  AssertionError in many cases).
49
50
512.0.7: 2018-10-30
52-----------------
53
54Bug fixes:
55- Fixed assertion in PromptSession: the style_transformation check was wrong.
56- Removed 'default' attribute in PromptSession. Only ask for it in the
57  `prompt()` method. This fixes the issue that passing `default` once, will
58  store it for all consequent calls in the `PromptSession`.
59- Ensure that `__pt_formatted_text__` always returns a `FormattedText`
60  instance. This fixes an issue with `print_formatted_text`.
61
62New features:
63- Improved handling of situations where stdin or stdout are not a terminal.
64  (Print warning instead of failing with an assertion.)
65- Added `print_container` utility.
66- Sound bell when attempting to edit read-only buffer.
67- Handle page-down and page-up keys in RadioList.
68- Accept any `collections.abc.Sequence` for HSplit/VSplit children (instead of
69  lists only).
70- Improved Vi key bindings: return to navigation mode when Insert is pressed.
71
72
732.0.6: 2018-10-12
74-----------------
75
76Bug fixes:
77- Don't use the predefined ANSI colors for colors that are defined as RGB.
78  (Terminals can assign different color schemes for ansi colors, and we don't
79  want use any of those for colors that are defined like #aabbcc for instance.)
80- Fix in handling of CPRs when patch_stdout is used.
81
82Backwards incompatible changes:
83- Change to the `Buffer` class. Reset the buffer unless the `accept_handler`
84  returns `True` (which means: "keep_text"). This doesn't affect applications
85  that use `PromptSession`.
86
87New features:
88- Added `AdjustBrightnessStyleTransformation`. This is a simple style
89  transformation that improves the rendering on terminals with light or dark
90  background.
91- Improved performance (string width caching and line height calculation).
92- Improved `TextArea`:
93  * Exposed `focus_on_click`.
94  * Added attributes: `auto_suggest`, `complete_while_typing`, `history`,
95    `get_line_prefix`, `input_processors`.
96  * Made attributes writable: `lexer`, `completer`, `complete_while_typing`,
97    `accept_handler`, `read_only`, `wrap_lines`.
98
992.0.5: 2018-09-30
100-----------------
101
102Bug fixes:
103- Fix in `DynamicContainer`. Return correct result for `get_children`. This
104  fixes a bug related to focusing.
105- Properly compute length of `start`, `end` and `sym_b` characters of
106  progress bar.
107- CPR (cursor position request) fix.
108
109Backwards incompatible changes:
110- Stop restoring `PromptSession` attributes when exiting prompt.
111
112New features:
113- Added `get_line_prefix` attribute to window. This opens many
114  possibilities:
115  * Line wrapping (soft and hard) can insert whitespace in front
116    of the line, or insert some symbols in front. Like the Vim "breakindent"
117    option.
118  * Single line prompts also support line continuations now.
119  * Line continuations can have a variable width.
120- For VI mode: implemented temporary normal mode (control-O in insert mode).
121- Added style transformations API. Useful for swapping between light and
122  dark color schemes. Added `swap_light_and_dark_colors` parameter to
123  `prompt()` function.
124- Added `format()` method to ANSI formatted text.
125- Set cursor position for Button widgets.
126- Added `pre_run` argument to `PromptSession.prompt()` method.
127
128
1292.0.4: 2018-07-22
130-----------------
131
132Bug fixes:
133- Fix render height for rendering full screen applications in Windows.
134- Fix in `TextArea`. Set `accept_handler` to `None` if not given.
135- Go to the beginning of the next line when enter is pressed in Vi navigation
136  mode, and the buffer doesn't have an accept handler.
137- Fix the `default` argument of the `prompt` function when called multiple
138  times.
139- Display decomposed multiwidth characters correctly.
140- Accept `history` in `prompt()` function again.
141
142Backwards incompatible changes:
143- Renamed `PipeInput` to `PosixPipeInput`. Added `Win32PipeInput` and
144  `create_input_pipe`.
145- Pass `buffer` argument to the `accept_handler` of `TextArea`.
146
147New features:
148- Added `accept_default` argument to `prompt()`.
149- Make it easier to change the body/title of a Frame/Dialog.
150- Added `DynamicContainer`.
151- Added `merge_completers` for merging multiple completers together.
152- Add vt100 data to key presses in Windows.
153- Handle left/right key bindings in Vi block insert mode.
154
155
1562.0.3: 2018-06-08
157-----------------
158
159Bug fixes:
160- Fix in 'x' and 'X' Vi key bindings. Correctly handle line endings and args.
161- Fixed off by one error in Vi line selection.
162- Fixed bugs in Vi block selection. Correctly handle lines that the selection
163  doesn't cross.
164- Python 2 bugfix. Handle str/unicode correctly.
165- Handle option+left/right in iTerm.
166
167
1682.0.2: 2018-06-03
169-----------------
170
171Bug fixes:
172- Python 3.7 support: correctly handle StopIteration in asynchronous generator.
173- Fixed off-by-one bug in Vi visual block mode.
174- Bugfix in TabsProcessor: handle situations when the cursor is at the end of
175  the line.
176
177
1782.0.1: 2018-06-02
179-----------------
180
181Version 2.0 includes a big refactoring of the internal architecture. This
182includes the merge of the CommandLineInterface and the Application object, a
183rewrite of how user controls are focused, a rewrite of how event loops work
184and the removal of the buffers dictionary. This introduces many backwards
185incompatible changes, but the result is a very nice and powerful architecture.
186
187Most architectural changes effect full screen applications. For applications
188that use `prompt_toolkit.shortcuts` for simple prompts, there are fewer
189incompatibilities.
190
191Changes:
192
193- No automatic translation from \r into \n during the input processing. These
194  are two different keys that can be handled independently. This is a big
195  backward-incompatibility, because the `Enter` key is `ControlM`, not
196  `ControlJ`. So, now that we stopped translating \r into \n, it could be that
197  custom key bindings for `Enter` don't work anymore. Make sure to bind
198  `Keys.Enter` instead of `Keys.ControlJ` for handling the `Enter` key.
199
200- The `CommandLineInterface` and the `Application` classes are merged. First,
201  `CommandLineInterface` contained all the I/O objects (like the input, output
202  and event loop), while the `Application` contained everything else. There was
203  no practical reason to keep this separation. (`CommandLineInterface` was
204  mostly a proxy to `Application`.)
205
206  A consequence is that almost all code which used to receive a
207  `CommandLineInterface`, will now use an `Application`. Usually, where we
208  had an attribute `cli`, we'll now have an attribute `app`.
209
210  Secondly, the `Application` object is no longer passed around. The `get_app`
211  function can be used at any time to acquire the active application.
212
213  (For backwards-compatibility, we have aliases to the old names, whenever
214  possible.)
215
216- prompt_toolkit no longer depends on Pygments, but it can still use Pygments
217  for its color schemes and lexers. In many places we used Pygments "Tokens",
218  this has been replaced by the concept of class names, somewhat similar to
219  HTML and CSS.
220
221  * `PygmentsStyle` and `PygmentsLexer` adaptors are available for
222     plugging in Pygments styles and lexers.
223
224  * Wherever we had a list of `(Token, text)` tuples, we now have lists of
225    `(style_string, text)` tuples. The style string can contain both inline
226    styling as well as refer to a class from the style sheet. `PygmentsTokens`
227    is an adaptor that converts a list of Pygments tokens into a list of
228    `(style_string, text)` tuples.
229
230- Changes in the `Style` classes.
231
232  * `style.from_dict` does not exist anymore. Instantiate the ``Style`` class
233    directory to create a new style. ``Style.from_dict`` can be used to create
234    a style from a dictionary, where the dictionary keys are a space separated
235    list of class names, and the values, style strings (like before).
236
237  * `print_tokens` was renamed to `print_formatted_text`.
238
239  * In many places in the layout, we accept a parameter named `style`. All the
240    styles from the layout hierarchy are combined to decide what style to be
241    used.
242
243  * The ANSI color names were confusing and inconsistent with common naming
244    conventions. This has been fixed, but aliases for the original names were
245    kept.
246
247- The way focusing works is different. Before it was always a `Buffer` that
248  was focused, and because of that, any visible `BufferControl` that contained
249  this `Buffer` would be focused. Now, any user control can be focused. All
250  of this is handled in the `Application.layout` object.
251
252- The `buffers` dictionary (`CommandLineInterface.buffers`) does not exist
253  anymore. Further, `buffers` was a `BufferMapping` that keeps track of which
254  buffer has the focus. This significantly reduces the freedom for creating
255  complex applications. We wanted to move toward a layout that can be defined
256  as a (hierarchical) collection of user widgets. A user widget does not need
257  to have a `Buffer` underneath and any widget should be focusable.
258
259  * `layout.Layout` was introduced to contain the root layout widget and keep
260    track of the focus.
261
262- The key bindings were refactored. It became much more flexible to combine
263  sets of key bindings.
264
265  * `Registry` has been renamed to `KeyBindings`.
266  * The `add_binding` function has been renamed to simply `add`.
267  * Every `load_*` function returns one `KeyBindings` objects, instead of
268    populating an existing one, like before.
269  * `ConditionalKeyBindings` was added. This can be used to enable/disable
270    all the key bindings from a given `Registry`.
271  * A function named `merge_key_bindings` was added. This takes a list of
272    `KeyBindings` and merges them into one.
273  * `key_binding.defaults.load_key_bindings` was added to load all the key
274    bindings.
275  * `KeyBindingManager` has been removed completely.
276  * `input_processor` was renamed to `key_processor`.
277
278  Further:
279
280  * The `Key` class does not exist anymore. Every key is a string and it's
281    considered fine to use string literals in the key bindings. This is more
282    readable, but we still have run-time validation. The `Keys` enum still
283    exist (for backwards-compatibility, but also to have an overview of which
284    keys are supported.)
285  * 'enter' and 'tab' are key aliases for 'c-m' and 'c-i'.
286
287- User controls can define key bindings, which are active when the user control
288  is focused.
289
290  * `UIControl` got a `get_key_bindings` (abstract) method.
291
292- Changes in the layout engine:
293
294  * `LayoutDimension` was renamed to `Dimension`.
295  * `VSplit` and `HSplit` now take a `padding` argument.
296  * `VSplit` and `HSplit` now take an `align` argument.
297    (TOP/CENTER/BOTTOM/JUSTIFY) or (LEFT/CENTER/RIGHT/JUSTIFY).
298  * `Float` now takes `allow_cover_cursor` and `attach_to_window` arguments.
299  * `Window` got an `WindowAlign` argument. This can be used for the alignment
300    of the content. `TokenListControl` (renamed to `FormattedTextControl`) does
301    not have an alignment argument anymore.
302  * All container objects, like `Window`, got a `style` argument. The style for
303    parent containers propagate to child containers, but can be overriden.
304    This is in particular useful for setting a background color.
305  * `FillControl` does not exist anymore. Use the `style` and `char` arguments
306    of the `Window` class instead.
307  * `DummyControl` was added.
308  * The continuation function of `PromptMargin` now takes `line_number` and
309    `is_soft_wrap` as input.
310
311- Changes to `BufferControl`:
312
313  * The `InputProcessor` class has been refactored. The `apply_transformation`
314    method should now takes a `TransformationInput` object as input.
315
316  * The text `(reverse-i-search)` is now displayed through a processor. (See
317    the `shortcuts` module for an example of its usage.)
318
319- `widgets` and `dialogs` modules:
320
321  * A small collection of widgets was added. These are more complex collections
322    of user controls that are ready to embed in a layout. A `shortcuts.dialogs`
323    module was added as a high level API for displaying input, confirmation and
324    message dialogs.
325
326  * Every class that exposes a ``__pt_container__`` method (which is supposed
327    to return a ``Container`` instance) is considered a widget. The
328    ``to_container`` shortcut will call this method in situations where a
329    ``Container`` object is expected. This avoids inheritance from other
330    ``Container`` types, but also having to unpack the container object from
331    the widget, in case we would have used composition.
332
333  * Warning: The API of the widgets module is not considered stable yet, and
334    can change is the future, if needed.
335
336- Changes to `Buffer`:
337
338  * A `Buffer` no longer takes an `accept_action`.  Both `AcceptAction` and
339    `AbortAction` have been removed. Instead it takes an `accept_handler`.
340
341- Changes regarding auto completion:
342
343  * The left and right arrows now work in the multi-column auto completion
344    menu.
345  * By default, autocompletion is synchronous. The completer needs to be
346    wrapped in `ThreadedCompleter` in order to get asynchronous autocompletion.
347  * When the completer runs in a background thread, completions will be
348    displayed as soon as they are generated. This means that we don't have to
349    wait for all the completions to be generated, before displaying the first
350    one. The completion menus are updated as soon as new completions arrive.
351
352- Changes regarding input validation:
353
354  * Added the `Validator.from_callable` class method for easy creation of
355    new validators.
356
357- Changes regarding the `History` classes:
358
359  * The `History` base class has a different interface. This was needed for
360    asynchronous loading of the history. `ThreadedHistory` was added for this.
361
362- Changes related to `shortcuts.prompt`:
363
364  * There is now a class `PromptSession` which also has a method `prompt`. Both
365    the class and the method take about the same arguments. This can be used to
366    create a session. Every `prompt` call of the same instance will reuse all
367    the arguments given to the class itself.
368
369    The input history is always shared during the entire session.
370
371    Of course, it's still possible to call the global `prompt` function. This
372    will create a new `PromptSession` every time when it's called.
373
374  * The `prompt` function now takes a `key_bindings` argument instead of
375    `key_bindings_registry`. This should only contain the additional bindings.
376    (The default bindings are always included.)
377
378- Changes to the event loops:
379
380  * The event loop API is now closer to how asyncio works. A prompt_toolkit
381    `Application` now has a `Future` object. Calling the `.run_async()` method
382    creates and returns that `Future`. An event loop has a `run_until_complete`
383    method that takes a future and runs the event loop until the Future is set.
384
385    The idea is to be able to transition easily to asyncio when Python 2
386    support can be dropped in the future.
387
388  * `Application` still has a method `run()` that underneath still runs the
389    event loop until the `Future` is set and returns that result.
390
391  * The asyncio adaptors (like the asyncio event loop integration) now require
392    Python 3.5. (We use the async/await syntax internally.)
393
394  * The `Input` and `Output` classes have some changes. (Not really important.)
395
396  * `Application.run_sub_applications` has been removed. The alternative is to
397    call `run_coroutine_in_terminal` which returns a `Future`.
398
399- Changes to the `filters` module:
400
401  * The `Application` is no longer passed around, so both `CLIFilter` and
402    `SimpleFilter` were merged into `Filter`. `to_cli_filter` and
403    `to_simple_filter` became `to_filter`.
404
405  * All filters have been turned into functions. For instance, `IsDone`
406    became `is_done` and `HasCompletions` became `has_completions`.
407
408    This was done because almost all classes were called without any arguments
409    in the `__init__` causing additional braces everywhere. This means that
410    `HasCompletions()` has to be replaced by `has_completions` (without
411    parenthesis).
412
413    The few filters that took arguments as input, became functions, but still
414    have to be called with the given arguments.
415
416    For new filters, it is recommended to use the `@Condition` decorator,
417    rather then inheriting from `Filter`.
418
419- Other renames:
420
421  * `IncrementalSearchDirection` was renamed to `SearchDirection`.
422  * The `use_alternate_screen` parameter has been renamed to `full_screen`.
423  * `Buffer.initial_document` was renamed to `Buffer.document`.
424  * `TokenListControl` has been renamed to `FormattedTextControl`.
425  * `Application.set_return_value` has been renamed to `Application.set_result`.
426
427- Other new features:
428
429  * `DummyAutoSuggest` and `DynamicAutoSuggest` were added.
430  * `DummyClipboard` and `DynamicClipboard` were added.
431  * `DummyCompleter` and `DynamicCompleter` were added.
432  * `DummyHistory` and `DynamicHistory` was added.
433
434  * `to_container` and `to_window` utilities were added.
435
436
4371.0.9: 2016-11-07
438-----------------
439
440Fixes:
441- Fixed a bug in the `cooked_mode` context manager. This caused a bug in
442  ptpython where executing `input()` would display ^M instead of accepting the
443  input.
444- Handle race condition in eventloop/posix.py
445- Updated ANSI color names for vt100. (High and low intensity colors were
446  swapped.)
447
448New features:
449- Added yank-nth-arg and yank-last-arg readline commands + Emacs bindings.
450- Allow searching in Vi selection mode.
451- Made text objects of the Vi 'n' and 'N' search bindings. This adds for
452  instance the following bindings: cn, cN, dn, dN, yn, yN
453
4541.0.8: 2016-10-16
455-----------------
456
457Fixes:
458- In 'shortcuts': complete_while_typing was a SimpleFilter, not a CLIFilter.
459- Always reset color attributes after rendering.
460- Handle bug in Windows when '$TERM' is not defined.
461- Ignore errors when calling tcgetattr/tcsetattr.
462  (This handles the "Inappropriate ioctl for device" crash in some scenarios.)
463- Fix for Windows. Correctly recognize all Chinese and Lithuanian characters.
464
465New features:
466- Added shift+left/up/down/right keys.
467- Small performance optimization in the renderer.
468- Small optimization in the posix event loop. Don't call time.time() if we
469  don't have an inputhook. (Less syscalls.)
470- Turned the _max_postpone_until argument of call_from_executor into a float.
471  (As returned by `time.time`.) This will do less system calls. It's
472  backwards-incompatible, but this is still a private API, used only by pymux.)
473- Added Shift-I/A commands in Vi block selection mode for inserting text at the
474  beginning of each line of the block.
475- Refactoring of the 'selectors' module for the posix event loop. (Reuse the
476  same selector object in one loop, don't recreate it for each select.)
477
478
4791.0.7: 2016-08-21
480-----------------
481
482Fixes:
483- Bugfix in completion. When calculating the common completion to be inserted,
484  the new completions were calculated wrong.
485- On Windows, avoid extra vertical scrolling if the cursor is already on screen.
486
487New features:
488- Support negative arguments for next/previous word ending/beginning.
489
490
4911.0.6: 2016-08-15
492-----------------
493
494Fixes:
495- Go to the start of the line in Vi navigation mode, when 'j' or 'k' have been
496  pressed to navigate to a new history entry.
497- Don't crash when pasting text that contains \r\n characters. (This could
498  happen in iTerm2.)
499- Python 2.6 compatibility fix.
500- Allow pressing <esc> before each -ve argument.
501- Better support for conversion from #ffffff values to ANSI colors in
502  Vt100_Output.
503    * Prefer colors with some saturation, instead of gray colors, if the given
504      color was not gray.
505    * Prefer a different foreground and background color if they were
506      originally not the same. (This avoids concealing text.)
507
508New features:
509- Improved ANSI color support.
510    * If the $PROMPT_TOOLKIT_ANSI_COLORS_ONLY environment variable has been
511      set, use the 16 ANSI colors only.
512    * Take an `ansi_colors_only` parameter in `Vt100_Output` and
513      `shortcuts.create_output`.
514
515
5161.0.5: 2016-08-04
517-----------------
518
519Fixes:
520- Critical fix for running on Windows. The gevent work-around in the inputhook
521  caused 'An operation was attempted on something that is not a socket'.
522
523
5241.0.4: 2016-08-03
525-----------------
526
527Fixes:
528- Key binding fixes:
529      * Improved handling of repeat arguments in Emacs mode. Pressing sequences
530        like 'esc---123' do now work (like GNU Readline):
531              - repetition of the minus sign is ignored.
532              - No esc prefix is required for each digit.
533      * Fix in ControlX-ControlX binding.
534      * Fix in bracketed paste.
535      * Pressing Control-U at the start of the line now deletes the newline.
536      * Pressing Control-K at the end of the line, deletes the newline after
537        the cursor.
538      * Support negative argument for Control-K
539      * Fixed cash when left/right were pressed with a negative argument. (In
540        Emacs mode.)
541      * Fix in ControlUp/ControlDown key bindings.
542      * Distinguish backspace from Control-H. They are not the same.
543      * Delete in front of the cursor when a negative argument has been given
544        to backspace.
545      * Handle arrow keys correctly in emacs-term.
546- Performance optimizations:
547      * Performance optimization in Registry.
548      * Several performance optimization in filters.
549      * Import asyncio inline (only if required).
550- Use the best possible selector in the event loop. This fixes bugs in
551  situations where we have too many open file descriptors.
552- Fix UI freeze when gevent monkey patch has been applied.
553- Fix segmentation fault in Alpine Linux. (Regarding the use of ioctl.)
554- Use the correct colors on Windows. (When the foreground/background colors
555  have been modified.)
556- Display a better error message when running in Idle.
557- Additional flags for vt100 inputs: disable flow control.
558- Also patch stderr in CommandLineInterface.patch_stdout_context.
559
560New features:
561- Allow users to enter Vi digraphs in reverse order.
562- Improved autocompletion behaviour. See IPython issue #9658.
563- Added a 'clear' function in the shortcuts module.
564
565For future compatibility:
566- `Keys.Enter` has been added. This is the key that should be bound for
567  handling the enter key.
568
569  Right now, prompt_toolkit translates \r into \n during the handling of the
570  input; this is not correct and makes it impossible to distinguish between
571  ControlJ and ControlM. Some applications bind ControlJ for custom handling of
572  the enter key, because this equals \n. However, in a future version we will
573  stop replacing \r by \n and at that point, the enter key will be ControlM.
574  So better is to use `Keys.Enter`, which becomes an alias for whatever the
575  enter key translates into.
576
577
5781.0.3: 2016-06-20
579-----------------
580
581Fixes:
582- Bugfix for Python2 in readline-like completion.
583- Bugfix in readline-like completion visualisation.
584
585New features:
586- Added `erase_when_done` parameter to the `Application` class.  (This was
587  required for the bug fixes.)
588- Added (experimental) `CommandLineInterface.run_application_generator` method.
589  (Also required for the bug fix.)
590
5911.0.2: 2016-06-16
592-----------------
593
594Fixes:
595- Don't select the first completion when `complete_while_typing` is False.
596  (Restore the old behaviour.)
597
598
5991.0.1: 2016-06-15
600-----------------
601
602Fixes:
603- Bugfix in GrammarValidator and SentenceValidator.
604- Don't leave the alternate screen on resize events.
605- Use errors=surrogateescape, in order to handle mouse events in some
606  terminals.
607- Ignore key presses in _InterfaceEventLoopCallbacks.feed_key when the CLI is in the done state.
608- Bugfix in get_common_complete_suffix. Don't return any suffix when there are
609  completions that change whatever is before the cursor.
610- Bugfix for Win32/Python2: use unicode literals: This crashed arrow navigation
611  on Windows.
612- Bugfix in InputProcessor: handling of more complex key bindings.
613- Fix: don't apply completions, if there is only one completion which doesn't
614  have any effect.
615- Fix: correctly handle prompts starting with a newline in
616  prompt_toolkit.shortcuts.
617- Fix: thread safety in autocomplete code.
618- Improve styling for matching brackets. (Allow individual styling for the
619  bracket under the cursor and the other.)
620- Fix in ShowLeadingWhiteSpaceProcessor/ShowTrailingWhiteSpaceProcessor: take
621  output encoding into account. (The signature had to change a little for
622  this.)
623- Bug fix in key bindings: only activate Emacs system/open-in-editor bindings
624  if editing_mode is emacs.
625- Added write_binary parameter to Vt100_Output. This fixes a bug in some cases
626  where we expect it to write non-encoded strings.
627- Fix key bindings for Vi mode registers.
628
629New features (**):
630- Added shortcuts.confirm/create_confirm_application function.
631- Emulate bracketed paste on Windows. (When the input stream contains multiple
632  key presses among which a newline and at least one other character, consider
633  this a paste event, and handle as bracketed paste on Unix.
634- Added key handler for displaying completions, just like readline does.
635- Implemented Vi guu,gUU,g~~ key bindings.
636- Implemented Vi 'gJ' key binding.
637- Implemented Vi ab,ib,aB,iB text objects.
638- Support for ZeroWidthEscape tokens in prompt and token lists. Used to support
639  final shell integration.
640- Fix: Make document.text/cursor_position/selection read-only. (Changing these
641  would break the caching causing bigger issues.)
642- Using pytest for unit tests.
643- Allow key bindings to have Keys.Any at any possible position. (Not just the
644  end.) This made it significantly easier to write the named register Vi
645  bindings, resulting in an approved start-up time.)
646- Better feedback when entering multi-key key bindings in insert mode. (E.g.
647  when 'jj' would be mapped to escape.)
648- Small improvement in key processor: allow key bindings to generate new key
649  presses.
650- Handle ControlUp and ControlDown by default: move to the previous/next record
651  in the history.
652- Accept 'char'/'get_char' parameters in FillControl.
653- Added refresh_interval method to prompt() function.
654
655Performance improvements:
656- Improve the performance of test_callable_args: this should significantly
657  increase the start-up time.
658- Start-up time for creating the Vi bindings has been improved significantly.
659
660(**) Some small backwards-compatible features were allowed for this minor
661     release. After evaluating the impact/risk/work involved we concluded that
662     we could ship these in a minor release.
663
664
6651.0.0: 2016-05-05
666-----------------
667
668Fixes:
669- Adjust minimum completion menu width to match UIControl and Window class.
670- Bugfix regarding weakref in InputProcessor.
671- Fix for pypy3: bug in WeakValueDictionary.
672- Correctly handle '0' key binding in Vi mode.
673- Also load Vi bindings by default in Application if no registry has been given.
674- Only go into selection mode if the current buffer is not empty.
675- Close PipeInput after usage.
676- Only use 16 colors in (Emacs) eterm-color.
677- Bugfix in "xP Vi key binding.
678- Bugfix in Vi { and } key binding.
679- Fix: use correct token for Scrollbar in MultiColumnCompletionMenuControl.
680- Handle negative values in translate_row_col_to_index.
681- Handle decomposed unicode characters.
682- Fixed Window.always_hide_cursor. (Parameter was ignored.)
683- Fix in zz Vi key binding. (When render info is not available.)
684- Fix in Document.get_cursor_up_position. (When an argument is given.)
685
686New features:
687- Separated `load_mouse_bindings`.
688- Refactoring/simplification of the key bindings: better use of filters and
689  CLI.editing_mode.
690- Added DummyOutput class and a few unit tests that test the whole CLI.
691- Use the bisect module in Document._line_start_indexes instead of a custom
692  binary search. This should improve the performance.
693- Stay in the same column when doing multiple up/down movements.
694- Visual improvements:
695  * Implemented cursorcolumn, cursorline and colorcolumn.
696  * Only reserve menu space when `complete_while_typing=True` or when there are
697    completions to be displayed.
698  * Support for chaining tokens for combined styles. SelectedText will now
699    reverse the colors from the highlighting by default. Style
700    `Token.SelectedText` to set a fixed foreground/background.
701    Also for SearchMatch, we now use combined tokens.
702  * Support for dark gray on Windows.
703  * Default token for SystemToolbar and SearchToolbar.
704  * Display selection also on empty lines.
705- Emacs key bindings improved:
706  * Recognize + handle ControlDelete key.
707  * Implemented meta-* and control-backslash key bindings.
708- Vi key bindings improved:
709  * Handle inclusive and linewise motions properly.
710  * Fix g_ motion off by one character, and don't work when cursor is in
711    the trailing whitespace part of line.
712  * Make a(/a)/i(/i)/... motions. Find enclosing brackets instead of the next
713    bracket.
714  * Update N% motion according to vim behaviors.
715  * Fix | motion off by one character.
716  * ge/gE motions go to end of previous word, not start.
717  * Added Vi 'gm' key binding.
718  * Implemented 'gq' key binding in Vi mode. (Reshape text.)
719  * Vi operator/text object separation for key bindings.
720  * Added 'ap' (auto-paragraph) text object.
721  * Implemented Vi digraphs. ControlK will now insert a digraph.
722  * Implemented vi tilde_operator.
723  * Support named registers.
724  * Vi < and > key bindings became operators.
725  * Text objects and motions are now separate bindings.
726  * Improved copy/paste in Vi mode.
727
728Backwards-incompatible changes:
729- Don't reset the current buffer anymore by default in
730  CommandLineInterface.run(). Passing `reset_current_buffer=True` is now
731  required.
732- Renamed MouseEventTypes to MouseEventType for consistency. The old name is
733  still valid, but deprecated.
734- Refactoring of Callbacks. All events should now receive one argument, which
735  is the sender. (Further, Callback was renamed to Event.) This is mostly used
736  internally.
737- Moved on_invalidate callback from CommandLineInterface to Application
738- Renamed `PipeInput.send` to `PipeInput.send_text`. (Old deprecated name is
739  still kept as a valid alias.)
740- Renamed SimpleLexer.default_token to SimpleLexer.token. (+
741  backwards-compatibility.)
742- Refactoring of the filters: `ViStateFilter` has been deprecated. (Should not
743  be used anymore.) Use the filters, as defined in prompt_toolkit.filters.
744- `editing_mode` is now a property of `CommandLineInterface`. This is replacing
745  the `vi_mode` parameter in `KeyBindingManager`.
746- The default accept_action for the default Buffer in Application now becomes
747  IGNORE. This is a much more sensible default. Pass RETURN_DOCUMENT to get
748  the previous behaviour,
749- Always expect an EventLoop instance in CommandLineInterface. Creating it in
750  __init__ caused a memory leak.
751
752
7530.60: 2016-03-14
754----------------
755
756Fixes:
757- Fix in Document.paste. (The screen was not updated after an undo of a paste.)
758- Don't use deprecated inspect.getargspec on Python 3.
759- Fixed reading input on Windows when input was piped in stdin.
760- Use correct file descriptors for input/output in run_system_command.
761- Always correctly split prompt in shortcuts.prompt. (Even when multiline=False)
762- Correctly align right prompt to the top when the left prompt consists of
763  multiple lines.
764- Correctly use Token.Transparent as default token for a TokenListControl.
765- Fix in syntax synchronisation. (Better handle the case when no
766  synchronisation point was found.)
767- Send SIGTSTP to the whole process group.
768- Correctly raise on_buffer_changed on all text changes.
769- Fix in regular_languages.GrammarLexer. (Fixes bug in ptipython syntax
770  highlighting.)
771
772New features:
773- Add support for additional readers to the Win32 event loop.
774- Added on_render event.
775- Carry the weight in layout dimensions to allow stretching.
776
777
7780.59: 2016-02-27
779----------------
780
781Fixes:
782- Set correct default color on Windows. (Gray instead of high intensity gray.)
783- Reverse colors on Windows when foreground/background color have not been
784  specified.
785- Correct handling of mouse events for FillControl.
786- Take margin into account when calculating Window height. (Fixes bug in
787  multiline prompt.)
788- Handle division by zero in UIContent.get_height_for_text.
789
790
7910.58: 2016-02-23
792----------------
793
794Fixes:
795- Correctly return result for mouse handler in TokenListControl.
796- Bugfix in meta-backspace key binding. (Delete all whitespace before the
797  cursor, when there is only whitespace.)
798- Bugfix in Vi gu, gU, g? and g~ key bindings (in selection mode).
799- Correctly restore default console attributes on Windows.
800- Disable bracketed paste support in ConEmu. (This was broken.)
801- When an unknown exception is raised in `CommandLineInterface.run()`, don't
802  forget to redraw the CLI.
803
804New features:
805- Many performance improvements and better caching. (Especially in the
806  `Document` class.)
807- Support for continuation tokens in `shortcuts.prompt` and
808  `shortcuts.create_prompt_layout`.
809- Added `shortcuts.print_tokens` function for printing colored output.
810- Sound bell when nothing was deleted.
811- Added escape sequences for F1-F5 keys on the Linux console.
812- Improved support for the Linux console. (Switch back to 16 colors.)
813- Added F13-F24 input codes for xterm.
814- Created prompt_toolkit.token. A custom Token implementation, that is
815  compatible with Pygments.token. (This way, Pygments becomes an optional
816  dependency. For many use cases, nothing except the Token class from Pygments
817  was used, so it was a bit overkill to install Pygments for only that.)
818- Refactoring of prompt_toolkit.styles.
819- `Float` objects got a `hide_when_covering_content` option.
820- Implementation of RPROMPT, like ZSH: Added `get_rprompt_tokens` to
821  `create_prompt_layout`.
822- Some improvements to the default style.
823- Also handle Ctrl-R and Ctrl-S in Vi mode when searching.
824- Added TabsProcessor: a tool to visualise tabs instead of displaying ^I.
825- Give a better error message when trying to run in git-bash.
826- Support for ANSI color names in style dictionaries.
827
828- Big refactoring of the `Window` and `UIControl` classes. This should result
829  in huge performance improvements on big inputs. (While first, a document
830  could have 1,000 lines; now it can have about 100,000 lines on the same system.)
831
832  The Window and UIControl have been rewritten very much. Rather than each time
833  rendering the whole user control, we now only have to render the visible part.
834
835  Because of this, many pieces had to be rewritten:
836  - UIControls work differently. They return a `UIContent` instance that
837    consist of a collection of lines.
838  - All processors have been rewritten. (Their API changed as well, because
839    they process one line at a time.)
840  - Lexers work differently. `Lexer.lex_document` should now return a function
841    that returns the tokens for one line. PygmentsLexer has been optimized that
842    it becomes 'lazy', and it has optional syntax synchronisation. That means,
843    that the lexer doesn't have to start the lexing at the beginning of the
844    document. (Which would be slow for big documents.)
845
846Backwards-incompatible changes:
847- As mentioned above, the refactoring of `Window` and `UIControl` caused many
848  "internal" APIs to change. All custom `UIControl`, `Processor` and `Lexer`
849  classes have to be rewritten. However, for most applications this should not
850  be an issue. Especially, the `shortcuts.prompt` function is
851  backwards-compatible.
852- `wrap_lines` became a property of `Window` instead of `BufferControl`.
853
854
8550.57: 2016-01-04
856----------------
857
858Fixes:
859- Made `max_render_postpone_time` configurable. The current default was bad.
860  (We should probably always draw the UI once every cycle of the event loop.)
861
862
8630.56: 2016-01-03
864----------------
865
866Fixes:
867- Fix in bracketed paste. It was not correctly enabled for each prompt.
868
869
8700.55: 2016-01-03
871----------------
872
873New features:
874- Implemented bracketed paste mode. (This allows much faster pasting, as well
875  as pasting without going into paste mode. This makes sure that indentation in
876  ptpython for instance is kept correctly.)
877- Added support for italic output and blink. (For terminals that support it.)
878- Added get_horizontal_scroll, get_vertical_scroll and always_hide_cursor
879  parameters to Window.
880- Refactoring of the posix event loop. Better scheduling of all tasks/FDs to
881  avoid starvation. (Everything should feel more responsive in high CPU
882  situations.)
883- Added get_default_char function to TokenListControl.
884- AppendAutoSuggestion now accepts a token parameter.
885- Support for ansi color names in styles.
886- Accept get_width/get_height parameters in Float.
887- Added Output.write_raw and accept 'raw' parameter in
888  CommandLineInterface.stdout_proxy.
889- Better caching of tokens in TokenListControl.
890- Add mouse support to TokenListControl.
891- Display "Window too small" when the window becomes too small.
892- Added 'bell' function to Output.
893- Accept weights in HSplit/VSplit.
894- Added Registry.remove_binding method to dynamically remove key bindings.
895- Added focus_on_click parameter to BufferControl.
896- Introduced BufferMapping class as a wrapper around the buffers dictionary.
897  This one also contains the focus stack.
898- Improved 'v' and 'V' key bindings. Allow switching between line and character
899  selection modes.
900- Added layout.highlighters. A new, much faster way to do selection and search
901  highlighting.
902- Make search_state dynamic for key bindings.
903- Added 'sentence' option to WordCompleter.
904- Cache Document.lines for better performance.
905- Implementation of BLOCK selections. (Cut, copy, paste.)
906- Accept a 'reserve_space_for_menu' parameter in the shortcuts. (This is an
907  integer.)
908- Support for 24bit true color on vt100 terminals.
909- Added CommandLineInterface.on_invalidate event.
910- Added __version__ to __init__.py.
911
912Fixes:
913- Always show cursor in the 'done' state.
914- Allow HSplit to have zero children.
915- Bugfix for handling of backslash on Windows with some non-us keyboards.
916  (Ptpython issue #28.)
917- Never render characters outside the visible screen region.
918- Fix in WordCompleter. When case insensitive and input contained uppercase.
919- Highlight search match when the cursor is at any position on the match. (not
920  just the beginning.)
921
922Backwards-incompatible changes:
923(Most changes will probably not have an impact on external applications.)
924- Change in the `Style` API. This allows caching of Attrs in renderer and
925  faster rendering.  (Style now has a get_attrs_for_token instead of a
926  get_token_to_attributes_dict method.)
927- Removed DefaultStyle. Created PygmentsStyle.from_defaults class method instead.
928- Removed AbortAction.IGNORE. This was ambiguous.
929- Accept 'cli' parameter in 'walk' and 'find_window_for_buffer_name'.
930- The focus stack is now stored in BufferMapping.
931- ViStateFilter and KeyBindingManager now accept a get_vi_state callable
932  instead of vi_state itself. (This way a key bindings registry becomes
933  stateless.)
934- HighlightSearchProcessor and HighlightSelectionProcessor became deprecated.
935  (Use highlighters instead.)
936
937
9380.54: 2015-10-29
939----------------
940
941New features:
942- Allow CommandLineInterface to run in any thread.
943- Hide cursor while rendering.
944- Added add_reader/remove_reader methods to EventLoop.
945- Support for 'reverse' style.
946- Redraw more lazy, by using invalidate.
947- Added show_cursor property to Screen.
948- Center or right align text in TokenListControl also when it spans multiple
949  lines.
950
951Fixes:
952- Bugfix in PathCompleter. (Expanduser issue.)
953- Fix in signal handler.
954- Use utf-8 encoding in Vt100_Output by default.
955- Use correct default token in BufferControl.
956- Fix in ControlL key binding. Use @handle to allow deactivation.
957
958Backwards-incompatible changes:
959- Renamed create_default_layout to create_prompt_layout
960- Renamed create_default_application to create_prompt_application
961- Renamed Layout to Container.
962- Renamed CommandLineInterfaces.request_redraw to invalidate.
963- Changed the actual value of SEARCH_BUFFER, DEFAULT_BUFFER, SYSTEM_BUFFER and
964  DUMMY_BUFFER.
965- Changed order of keyword arguments of the BufferControl class. "buffer_name"
966  now comes first.
967- Removed old pt(i)python code.
968
9690.53: 2015-10-06
970----------------
971
972New features:
973- Handling of the insert key in Vi mode.
974- Added 'zt' and 'zb' Vi key bindings.
975- Added delete key binding for deleting selected text.
976- Select word below cursor on double mouse click.
977- Added `wrap_lines` option to TokenListControl.
978- Added `KeyBindingManager.for_prompt`.
979
980Fixes:
981- Fix in rendering output.
982- Reset renderer correctly in run_in_terminal.
983- Only reset buffer when using `AbortAction.RETRY`.
984- Fix in handling of exit (Ctrl-D) key presses.
985- Fix in `CompleteEvent`. Correctly set `completion_requested`.
986
987Backwards-incompatible changes:
988- Renamed `ValidationError.index` to `ValidationError.cursor_position`.
989- Renamed `shortcuts.get_input` to `shortcuts.prompt`.
990- Return empty string instead of None in
991  `Document.current_char`/`char_before_cursor`.
992
993
9940.52: 2015-09-24
995----------------
996
997Fixes:
998- Fix in auto suggestion: hide suggestion when accepting input.
999
1000
10010.51: 2015-09-24
1002----------------
1003
1004New features:
1005- Mouse support. (Scrolling and clicking for vt100 terminals. For Windows only
1006  clicking.) Both the autocompletion menus and buffer controls respond to
1007  scrolling and clicking.
1008- Added auto suggestions. (Like the fish shell.)
1009- Stdout proxy become thread safe.
1010- Linewrapping can now be disabled, instead we get horizontal scrolling.
1011- Line numbering can now be relative. Like the vi 'relativenumber' option.
1012
1013Fixes:
1014- Fixed excessive scrolling in Windows.
1015- Bugfix in search highlighting.
1016- Copy all words during repetition of Ctrl-W presses.
1017- The 'libs' folder has been removed.
1018- Fix in MultiColumnCompletionsMenu: don't create very big columns.
1019
1020Backwards-incompatible changes:
1021- Disable search by default in KeyBindingManager.
1022- Separated abort/exit key bindings. Disabled by default in KeyBindingManager.
1023- 'Ignore' became the default on_abort action in `Application`.
1024- 'Ignore' became the default accept_action in `Buffer`.
1025- The layout processors have been refactored. The API is changed.
1026- `SwitchableValidator` has been renamed to `ConditionalValidator`.
1027- `WindowRenderInfo` has several incompatible changes.
1028- Margins have been refactored completely. Now it's the window that has the
1029  margin instead of `BufferControl`. Is is both much more performant and
1030  flexible.
1031
1032
10330.50: 2015-09-06
1034----------------
1035
1036Fix:
1037- Leaving of alternate screen on Windows.
1038
1039
10400.49: 2015-09-06
1041----------------
1042
1043New features:
1044- Added MANIFEST.in
1045- Better support for multiline prompts in shortcuts.
1046- Added Document.set_document method.
1047- Added 'default' argument to `shortcuts.create_default_application`.
1048- Added `align_center` option for `TokenListControl`.
1049- Added optional key bindings for full page navigation. (Moved key bindings
1050  from pyvim into prompt-toolkit.)
1051- Accepts default_char in BufferControl for filling the background.
1052- Added InFocusStack filter.
1053
1054Fixes:
1055- Small fix in TokenListControl: use the right Char for aligning.
1056
1057Backwards-incompatible changes:
1058- Removed deprecated 'tokens' attribute from GrammarLexer.
1059
1060
10610.48: 2015-09-02
1062----------------
1063
1064New features:
1065- run_in_terminal now returns the result of the called function.
1066- Made history attribute of Buffer class public.
1067- Added support for sub CommandLineInterfaces.
1068- Accept optional vi_state parameter in KeyBindingManager.
1069
1070Fixes:
1071- Pop-up menu positioning. The menu was shown too often above instead of below
1072  the cursor.
1073- Fix in Control-W key binding. When there is only whitespace before the
1074  cursor, delete the whitespace.
1075- Rendering bug fix in open_in_editor: run editor using cli.run_in_terminal.
1076- Fix in renderer. Correctly reserve the vertical space as required by the
1077  layout.
1078- Small fix in Margin ABC.
1079- Added __iter__ to History ABC.
1080- Small bugfix in CommandLineInterface: create correct eventloop when no
1081  eventloop was given.
1082- Never schedule a second repaint operation when a previous was not yet
1083  executed.
1084
1085
10860.47: 2015-08-19
1087----------------
1088
1089New features:
1090- Added `prompt_toolkit.layout.utils.iter_token_lines`.
1091- Allow `None` values on the focus stack.
1092- Buffers can be readonly. Added `IsReadOnly` filter.
1093- `eager` behaviour for key bindings. When a key binding is eager it will be
1094  executed as soon as it's matched, even when there is another binding that
1095  starts with this key sequence.
1096- Custom margins for BufferControl.
1097
1098Fixes:
1099- Don't trigger autocompletion on paste.
1100- Added `pre_run` parameter to CommandLineInterface.
1101- Correct invalidation of BeforeInput and AfterInput.
1102- Correctly handle transparency. (For floats.)
1103- Small change in the algorithm to determine Window dimensions: keep in the
1104  bounds of the Window dimensions.
1105
1106Backwards-incompatible changes:
1107- There a now a `Lexer` abstract base class. Every lexer should be an instance
1108  of that class, and Pygments lexers should be wrapped in a `PygmentsLexer`
1109  class. `prompt_toolkit.shortcuts` still accepts Pygments lexers directly for
1110  backwards-compatibility.
1111- BufferControl no longer has a `show_line_numbers` argument. Pass a
1112  `NumberedMargin` instance instead.
1113- The `History` class became an abstract base class and only defines an
1114  interface. The default history class is now called `InMemoryHistory`.
1115
1116
11170.46: 2015-08-08
1118----------------
1119
1120New features:
1121- By default, in shortcuts, only show search highlighting when the search is
1122  the current input buffer.
1123- Accept 'count' for all search operations. (For repetition.)
1124- `shortcuts.create_default_layout` accepts a `multiline` parameter.
1125- Show meta display text for completions also in multi-column mode.
1126
1127Fixes:
1128- Correct invalidation of DefaultPrompt when search direction changes.
1129- Correctly include/exclude current cursor position in search.
1130- More consistency in styles.
1131- Fix in ConditionalProcessor.has_focus.
1132- Python 2.6 compatibility fix.
1133- Show cursor at the correct position during reverse-i-search.
1134- Fixed stdout encoding bug for vt100 output.
1135
1136Backwards-incompatible changes:
1137- Use of `ConditionalContainer` everywhere. The `Window` class no longer
1138  accepts a `filter` argument to decide about the visibility. Instead
1139  wrapping inside a `ConditionalContainer` class is required.
1140
1141
11420.45: 2015-07-30
1143----------------
1144
1145Fixes:
1146- Bug fix on OS X: correctly detect platform as not Windows.
1147
1148
11490.44: 2015-07-30
1150----------------
1151
1152Fixes:
1153- Fixed bug in eventloops: handle timeout correctly, even when there is an eventhook.
1154- Bug fix in open-in-editor: set correct cursor position.
1155
1156New features:
1157- CompletionsMenu got a scroll_offset.
1158- Use 256 colors and ANSI sequences when ConEmu ANSI support has been detected.
1159- Added PyperclipClipboard for synchronisation with the system clipboard.
1160  and clipboard parameter in shortcut functions.
1161- Filter for enabling/disabling handling of Vi 'v' binding.
1162
1163
11640.43: 2015-07-15
1165----------------
1166
1167Fixes:
1168- Windows bug fix. STD_INPUT_HANDLE should be c_ulong instead of HANDLE.
1169  (This caused crashes on some systems.)
1170
1171New features:
1172- Added eventloop and patch_stdout parameters to get_input.
1173- Inputhook support added.
1174- Added ShowLeadingWhiteSpaceProcessor and ShowTrailingWhiteSpaceProcessor
1175  processors.
1176- Accept Filter as multiline parameter in 'shortcuts'.
1177- MultiColumnCompletionsMenu + display_completions_in_columns parameter
1178  in shortcuts.
1179
1180Backwards incompatible changes:
1181- Layout.width was renamed to preferred_width and now receives a
1182  max_available_width parameter.
1183
1184
11850.42: 2015-06-25
1186----------------
1187
1188Fixes:
1189- Support for Windows cmder and conemu consoles.
1190- Correct handling of unicode input and output on Windows.
1191
1192New features:
1193- Support terminal titles.
1194- Handle Control-Enter as Meta-Enter on Windows.
1195- Control-Z key binding for Windows.
1196- Implemented alternate screen buffer on Windows.
1197- Clipboard became an ABC and InMemoryClipboard default implementation.
1198
1199
12000.41: 2015-06-20
1201----------------
1202
1203Fixes:
1204- Emacs Control-T key binding.
1205- Color fix for Windows consoles.
1206
1207New features:
1208- Allow both booleans and Filters in many places.
1209- `password` can be a Filter now.
1210
1211
12120.40: 2015-06-15
1213----------------
1214
1215Fixes:
1216- Fix in output_screen_diff: reset correctly.
1217- Ignore flush errors in vt100_output.
1218- Implemented <num>gg Vi key binding.
1219- Bug fix in the renderer when the style changes.
1220
1221New features:
1222- TokenListControl can now display the cursor somewhere.
1223- Added SwitchableValidator class.
1224- print_tokens function added.
1225- get_style argument for Application added.
1226- KeyBindingManager got an enable_all argument.
1227
1228Backwards incompatible changes:
1229- history_search is now a SimpleFilter instance.
1230
1231
12320.39: 2015-06-04
1233----------------
1234
1235Fixes:
1236- Fixed layout.py example.
1237- Fixed eventloop for Python 64bit on Windows.
1238- Fix in history.
1239- Fix in key bindings.
1240
1241
12420.38: 2015-05-31
1243----------------
1244
1245New features:
1246- Improved performance significantly for processing key bindings.
1247  (Pasting text will be a lot faster.)
1248- Added 'M' Vi key binding.
1249- Added 'z-' and 'z+' and 'z-[Enter]' Vi keybindings.
1250- Correctly handle input and output encodings on Windows.
1251
1252Bug fixes:
1253- Fix bug when completion cursor position is outside range of current text.
1254- Don't crash Control-D is pressed while waiting for ENTER press (in run_system_command.)
1255- On Ctrl-Z, don't suspend on Windows, where we don't have SIGTSTP.
1256- Ignore result when open_in_editor received a nonzero return code.
1257- Bug fix in displaying of menu meta information. Don't show 'None'.
1258
1259Backwards incompatible changes:
1260- Refactoring of the I/O layer.  Separation of the CommandLineInterface
1261  and Application class.
1262- Renamed enable_system_prompt to enable_system_bindings.
1263
12640.37: 2015-05-11
1265----------------
1266
1267New features:
1268- Handling of trailing input in contrib.regular_languages.
1269
1270Bug fixes:
1271- Default message in shortcuts.get_input.
1272- Windows compatibility for contrib.telnet.
1273- OS X bugfix in contrib.telnet.
1274
12750.36: 2015-05-09
1276----------------
1277
1278New features:
1279- Added get_prompt_tokens parameter to create_default_layout.
1280- Show prompt in bold by default.
1281
1282Bug fixes:
1283- Correct cache invalidation of DefaultPrompt.
1284- Using text_type assertions in contrib.telnet.
1285- Removed contrib.shortcuts completely. (The .pyc files still
1286  appeared incorrectly in the wheel.)
1287
12880.35: 2015-05-07
1289----------------
1290
1291New features:
1292- WORD parameter for WordCompleter.
1293- DefaultPrompt.from_message constructor.
1294- Added reactive.py for simple integer data binding.
1295- Implemented scroll_offset and scroll_beyond_bottom for Window.
1296- Some performance improvements.
1297
1298Bug fixes:
1299- Handling of relative path in PathCompleter.
1300- unicode_literals for all examples.
1301- Visibility of bottom toolbar in create_default_layout shortcut.
1302- Correctly handle 'J' vi key binding.
1303- Fix in indent/unindent.
1304- Better Vi bindings in visual mode.
1305
1306Backwards incompatible changes:
1307- Moved prompt_toolkit.contrib.shortcuts to prompt_toolkit.shortcuts.
1308- Refactoring of contrib.telnet.
1309
13100.34: 2015-04-26
1311----------------
1312
1313Bug fixes:
1314- Correct display of multi width characters in completion menu.
1315
1316Backwards incompatible changes:
1317- Renamed Buffer.add_to_history to Buffer.append_to_history.
1318
13190.33: 2015-04-25
1320----------------
1321
1322Bug fixes:
1323- Crash fixed in SystemCompleter when some directories didn't exist.
1324- Made text/cursor_position in Document more atomic.
1325- Fixed Char.__ne__, improves performance.
1326- Better performance of the filter module.
1327- Refactoring of the filter module.
1328- Bugfix in BufferControl, caching was not done correctly.
1329- fixed 'zz' Vi key binding.
1330
1331New features:
1332- Do tilde expansion for system commands.
1333- Added ignore_case option for CommandLineInterface.
1334
1335Backwards incompatible changes:
1336- complete_while_typing parameter has been moved from CommandLineInterface to
1337  Buffer.
1338
1339
13400.32: 2015-04-22
1341----------------
1342
1343New features:
1344- Implemented repeat arg for '{' and '}' vi key binding.
1345- Added autocorrection example.
1346- first experimental telnet interface added.
1347- Added contrib.validators.SentenceValidator.
1348- Added Layout.walk generator to traverse the layout.
1349- Improved 'L' and 'H' Vi key bindings.
1350- Implemented Vi 'zz' key binding.
1351- ValidationToolbar got a show_position parameter.
1352- When only width or height are given for a float, the control is centered in
1353  the parent.
1354- Added beforeKeyPress and afterKeyPress events.
1355- Added HighlightMatchingBracketProcessor.
1356- SearchToolbar got a vi_mode option to show '?' and '/' instead of 'I-search'.
1357- Implemented vi '*' binding.
1358- Added onBufferChanged event to CommandLineInterface.
1359- Many performance improvements: some caching and not rendering after every
1360  single key stroke.
1361- Added ConditionalProcessor.
1362- Floating menus are now shown above the cursor, when below is not enough
1363  space, but above is enough space.
1364- Improved vi 'G' key binding.
1365- WindowRenderInfo got a full_height_visible, top_visible, and a few other
1366  attributes.
1367- PathCompleter got an expanduser option to do tilde expansion.
1368
1369Fixed:
1370- Always insert indentation when pressing enter.
1371- vertical_scroll should be an int instead of a float.
1372- Some bug fixes in renderer.Output.
1373- Pressing backspace in an empty search in Vi mode now goes back to navigation
1374  mode.
1375- Bug fix in TokenListControl (Correctly calculate height for multiline
1376  content.)
1377- Only apply HighlightMatchingBracketProcessor when editing buffer.
1378- Ensure that floating layouts never go out of bounds.
1379- Home/End now go to the start and end of the line.
1380- Fixed vi 'c' key binding.
1381- Redraw the whole output when the style changes.
1382- Don't trigger onTextInsert when working_index doesn't change.
1383- Searching now wraps around the start/end of buffer/history.
1384- Don't go to the start of the line when moving forward in history.
1385
1386Changes:
1387- Don't show directory/file/link in the meta information of PathCompleter anymore.
1388- Complete refactoring of the event loops.
1389- Refactoring of the Renderer and CommandLineInterface class.
1390- CommandLineInterface now accepts an optional Output argument.
1391- CommandLineInterface now accepts a use_alternate_screen parameter.
1392- Moved highlighting code for search/selection from BufferControl to processors.
1393- Completers are now always run asynchronously.
1394- Complete refactoring of the search. (Most responsibility move out of Buffer
1395  class. CommandLineInterface now got a search_state attribute.)
1396
1397Backwards incompatible changes:
1398- get_input does now have a history attribute instead of history_filename.
1399- EOFError and KeyboardInterrupt is raised for abort and exit instead of custom
1400  exceptions.
1401- CommandLineInterface does no longer have a property 'is_reading_input'.
1402- filters.AlwaysOn/AlwaysOff have been renamed to Always/Never.
1403- AcceptAction has been moved from CommandLineInterface to Buffer. Now every
1404  buffer can define its own accept action.
1405- CommandLineInterface now expects an Eventloop instance in __init__.
1406
1407
14080.31: 2015-01-30
1409----------------
1410
1411Fixed:
1412- Bug in float positioning
1413- Show completion menu only for the default_buffer in get_input.
1414
1415New features:
1416- PathCompleter got a get_paths parameter.
1417- PathCompleter sorts alphabetically.
1418- Added contrib.completers.SystemCompleter
1419- Completion got a get_display_meta parameter.
1420
1421
14220.30: 2015-01-26
1423----------------
1424
1425Fixed:
1426- Backward compatibility with django_extensions.
1427- Usage of alternate screen in the renderer.
1428
1429New features:
1430- Vi '#' key binding.
1431- contrib.shortcuts.get_input got a get_bottom_toolbar_tokens argument.
1432- Separate key bindings for "open in editor." KeyBindingManager got a
1433  enable_open_in_editor argument.
1434
14350.28: 2015-01-25
1436----------------
1437
1438Fixed:
1439- syntax error in 0.27
1440
14410.27: 2015-01-25
1442----------------
1443
1444Backwards-incompatible changes:
1445- Complete refactoring of the layout system. (HSplit, VSplit, FloatContainer)
1446  as well as a list of controls (TokenListControl, BufferControl) in order to
1447  design much more complex layouts.
1448- ptpython code has been moved to a separate repository.
1449
1450New features:
1451- prompt_toolkit.contrib.shortcuts.get_input has been extended.
1452
1453Fixed:
1454- Behaviour of Control+left/right/up/down.
1455- Backspace in incremental search.
1456- Hide completion menu correctly when the cursor position changes.
1457
14580.26: 2015-01-08
1459----------------
1460
1461Backwards-incompatible changes:
1462- Refactoring of the key input system. (The registry which contains the key
1463  bindings, the focus stack, key binding manager.) Overall much better API.
1464- Renamed `Line` to `Buffer`.
1465
1466New features:
1467- Added filters as a way of disabling/enabling parts of the runtime according
1468  to certain conditions.
1469- Global clipboard, shared between all buffers.
1470- Added (experimental) "merge history" feature to ptpython.
1471- Added 'C-x r k' and 'C-x r y' emacs key bindings for cut and paste.
1472- Added g_, ge and gE vi key bindings.
1473- Added support for handling control + arrows keys.
1474
1475Fixed:
1476- Correctly handle f1-f4 in rxvt-unicode.
1477
14780.25: 2014-12-11
1479----------------
1480
1481Fixed:
1482- Package did not install on Python 2.6/2.7.
1483
14840.24: 2014-12-10
1485----------------
1486
1487Backwards-incompatible changes:
1488- Completer.get_completions now gets a complete_event argument.
1489
1490New features:
1491- For ptpython: filename completion inside Python strings.
1492- prompt_toolkit.contrib.regular_languages added.
1493- prompt_toolkit.contrib.pdb added. (Experimental PDB front-end.)
1494- Support for multiline toolbars.
1495- asyncio support added. (Integration with asyncio event loop.)
1496- WORD parameter added to Document.word_before_cursor.
1497
1498Fixed:
1499- Small fixes in Win32 terminal output.
1500- Bug fix in parsing of CPR response.
1501
15020.23: 2014-11-28
1503----------------
1504
1505New features:
1506- contrib.completers added.
1507
1508Fixed:
1509- Improved j/k key bindings in Vi mode.
1510- Don't leak internal variables into ptipython shell.
1511- Initialize IPython extensions.
1512- Use IPython's prompt.
1513- Workarounds for Jedi crashes.
1514
15150.22: 2014-11-09
1516----------------
1517
1518Fixed:
1519- Fixed missing import which caused Ctrl-Z to crash.
1520- Show error message for ptipython when IPython is not installed.
1521
15220.21: 2014-10-25
1523----------------
1524New features:
1525- Using entry_points in setup.py
1526- Experimental Win32 support added.
1527
1528Fixed:
1529- Behaviour of 'r' and 'R' key bindings in Vi mode.
1530- Detect multiline correctly for ptpython when there are triple quoted strings.
1531- Some other small improvements.
1532
1533
15340.20: 2014-10-04
1535----------------
1536Fixed:
1537- Workarounds for Jedi bugs.
1538- Better handling of window resize events.
1539- Fixed counter in ptipython prompt.
1540- Use IPythonInputSplitter.transform_cell for IPython syntax validation.
1541- Only insert newlines for open brackets if the cursor is at the end of the input string.
1542
1543New features:
1544- More Vi key bindings: 'B', 'W', 'E', 'aW', 'aw' and 'iW'
1545- ControlZ now suspends the process
1546
1547
15480.19: 2014-09-30
1549----------------
1550Fixed:
1551- Handle Jedi crashes.
1552- Autocompletion in `ptipython`
1553- Input validation in `ptipython`
1554- Execution of system commands (in `ptpython`) in Python 3
1555- Add current directory to sys.path for `ptpython`.
1556- Minimal jedi and six version in setup.py
1557
1558New features
1559- Python 2.6 support
1560- C-C> and C-C< indent and unindent emacs key bindings.
1561- `ptpython` can now also run python scripts, so aliasing of `ptpython` as
1562  `python` will work better.
1563
15640.18: 2014-09-29
1565----------------
1566- First official (beta) release.
1567
1568
1569Jan 25, 2014
1570------------
1571first commit
1572