Prompt-tool-kit

Latest version: v1.0.14

Safety actively analyzes 629900 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 11

1.0.7

-----------------

Fixes:
- Bugfix in completion. When calculating the common completion to be inserted,
the new completions were calculated wrong.
- On Windows, avoid extra vertical scrolling if the cursor is already on screen.

New features:
- Support negative arguments for next/previous word ending/beginning.

1.0.6

-----------------

Fixes:
- Go to the start of the line in Vi navigation mode, when 'j' or 'k' have been
pressed to navigate to a new history entry.
- Don't crash when pasting text that contains \r\n characters. (This could
happen in iTerm2.)
- Python 2.6 compatibility fix.
- Allow pressing <esc> before each -ve argument.
- Better support for conversion from ffffff values to ANSI colors in
Vt100_Output.
* Prefer colors with some saturation, instead of gray colors, if the given
color was not gray.
* Prefer a different foreground and background color if they were
originally not the same. (This avoids concealing text.)

New features:
- Improved ANSI color support.
* If the $PROMPT_TOOLKIT_ANSI_COLORS_ONLY environment variable has been
set, use the 16 ANSI colors only.
* Take an `ansi_colors_only` parameter in `Vt100_Output` and
`shortcuts.create_output`.

1.0.5

-----------------

Fixes:
- Critical fix for running on Windows. The gevent work-around in the inputhook
caused 'An operation was attempted on something that is not a socket'.

1.0.4

-----------------

Fixes:
- Key binding fixes:
* Improved handling of repeat arguments in Emacs mode. Pressing sequences
like 'esc---123' do now work (like GNU Readline):
- repetition of the minus sign is ignored.
- No esc prefix is required for each digit.
* Fix in ControlX-ControlX binding.
* Fix in bracketed paste.
* Pressing Control-U at the start of the line now deletes the newline.
* Pressing Control-K at the end of the line, deletes the newline after
the cursor.
* Support negative argument for Control-K
* Fixed cash when left/right were pressed with a negative argument. (In
Emacs mode.)
* Fix in ControlUp/ControlDown key bindings.
* Distinguish backspace from Control-H. They are not the same.
* Delete in front of the cursor when a negative argument has been given
to backspace.
* Handle arrow keys correctly in emacs-term.
- Performance optimizations:
* Performance optimization in Registry.
* Several performance optimization in filters.
* Import asyncio inline (only if required).
- Use the best possible selector in the event loop. This fixes bugs in
situations where we have too many open file descriptors.
- Fix UI freeze when gevent monkey patch has been applied.
- Fix segmentation fault in Alpine Linux. (Regarding the use of ioctl.)
- Use the correct colors on Windows. (When the foreground/background colors
have been modified.)
- Display a better error message when running in Idle.
- Additional flags for vt100 inputs: disable flow control.
- Also patch stderr in CommandLineInterface.patch_stdout_context.

New features:
- Allow users to enter Vi digraphs in reverse order.
- Improved autocompletion behaviour. See IPython issue 9658.
- Added a 'clear' function in the shortcuts module.

For future compatibility:
- `Keys.Enter` has been added. This is the key that should be bound for
handling the enter key.

Right now, prompt_toolkit translates \r into \n during the handling of the
input; this is not correct and makes it impossible to distinguish between
ControlJ and ControlM. Some applications bind ControlJ for custom handling of
the enter key, because this equals \n. However, in a future version we will
stop replacing \r by \n and at that point, the enter key will be ControlM.
So better is to use `Keys.Enter`, which becomes an alias for whatever the
enter key translates into.

1.0.3

-----------------

Fixes:
- Bugfix for Python2 in readline-like completion.
- Bugfix in readline-like completion visualisation.

New features:
- Added `erase_when_done` parameter to the `Application` class. (This was
required for the bug fixes.)
- Added (experimental) `CommandLineInterface.run_application_generator` method.
(Also required for the bug fix.)

1.0.2

-----------------

Fixes:
- Don't select the first completion when `complete_while_typing` is False.
(Restore the old behaviour.)

Page 3 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.