Xonsh

Latest version: v0.16.0

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

Scan your dependencies

Page 7 of 20

0.9.14

====================

**Added:**

* Added building process of standalone rootless AppImage for xonsh.
* pyproject.toml -- so vscode can use black as python formatter interactively
* The ``xonsh/interactive`` container has been added, in addition to the previous ``xonsh/xonsh`` and ``xonsh/action`` containers. See https://hub.docker.com/u/xonsh
* New ``$THREAD_SUBPROCS`` environment variable allows you to
specify whether threadable subprocesses should actually be
run in a thread or not. Default ``True``.
* event on_lscolors_changed which fires when an item in $LS_COLORS changed.
* dict pyghooks.file_color_tokens containing color tokens for file types defined in $LS_COLORS.
* file pyproject.toml containing config rules for black formatter consistent with flake8
* New ``umask`` utility to view or set the file creation mask
* New ``xonfig web`` command that launches a web UI (in your browser) that
allows users to configure their ``$XONSH_COLOR_STYLE``, ``$PROMPT``, and
loaded xontribs in an interactive way. This is the prefered way to initialize
the ``~/.xonshrc`` file on a new system or for new users. It supersedes the
old ``xonfig wizard`` command.
* New ``xonsh.webconfig`` subpackage for creating and launching ``xonfig web``.
* Added ``localtime`` entry to the ``$PROMPT_FIELDS`` dictionary, allowing users
to easily place the current time in their prompt. This can be formatted with
the ``time_format`` entry of ``$PROMPT_FIELDS``, which defaults to ``"%H:%M:%S"``.
These are implemented in the new ``xonsh.prompt.times`` module.
* The ``html`` module in ``xonsh.lazyimps`` was added to lazily import
``pygments.formatters.html``.
* New ``xonsh.pyghooks.XonshHtmlFormatter`` class that enables HTML formatting of
xonsh color strings.

**Changed:**

* the feature list: subprocess mode colorizes files per $LS_COLORS, when they appear as arguments in the command line.
Yet another approximation of ls -c file coloring behavior.
* file setup.cfg to declare flake8 rules for all tools (not just pytest)
* Moved python 3.8 parsing out of base parser
* The ``xonsh.pyghooks.XonshLexer`` now inherits from ``Python3Lexer``,
rather than ``PythonLexer``.
* ``xonsh.pyghooks.XonshStyle`` now presents the ``highlight_color`` and
``background_color`` from the underlying style correctly.

**Removed:**

* Removed deprecated ``xonda`` ``xontrib`` from list

**Fixed:**

- `[color] in .gitconfig (3427) <https://github.com/xonsh/xonsh/issues/3427>`_ now stripped from {curr\_branch}

- `Before <https://i.imgur.com/EMhPdgU.png>`_
- `After <https://i.imgur.com/sJiqgsb.png>`_

* The autovox xontrib now preserves activated environment on cd
* setup.cfg -- duplicated flake8 config so interactive use and test runs enforce same rules. (Implementation is arguably a regression.)
* Pressing ``Ctrl+Z`` no longer deadlocks the terminal,
allowing further input from the user, even for threaded
subprocesses.
* ``XonshImportHook.get_source()`` now takes a dotted module name instead of a file path, as it should
* Fixed documentation on environment variable ``$PROMPT_REFRESH_INTERVAL``.
* Using rmtree on windows no longer attempts to use invalid ``rm`` command
and uses ``del`` instead.
* Avoid crash in SubprocessSpec._run_binary() when command line has 2 real subprocesses piped together.
* Fixed an issue on Windows where pressing ctrl-c could sometimes result
in a traceback if the process had already quit before being killed by xonsh.
* Modified base_shell._TeeStdBuf to feed bytes not str to console window under VS Code.
* Command line with leading whitespace improperly formated (PTK2/PTK3).
* Fix Ctrl-C event causing Atribute error on Windows (for reals this time).
* Unit test failures in test_integrations under ubuntu 19.10 with Python 3.8.0
* .gitignore entries for venv under project root (as for autovox) and for VS Code.
* Minor typo fixes to xontrib descriptions.

**Authors:**

* Anthony Scopatz
* Gil Forsyth
* Morten Enemark Lund
* Jamie Bliss
* Bob Hyman
* David Strobach
* Burak Yiğit Kaya
* anki-code
* adam j hartz
* Nickolay Bukreyev
* Edmund Miller
* Mike Crowe
* Sylvain Corlay
* Chris Lasher
* Marcio Mazza

0.9.13

====================

**Changed:**

* The ``$LS_COLORS`` environment variable will no longer raise exceptions when trying
to convert ANSI color sequences to xonsh color names.

**Removed:**

* Remove built in support for "win unicode console". Full unicode support on windows is now provided by
using the new `Windows terminal <https://github.com/microsoft/terminal>`__.

**Fixed:**

* Fixed issue converting ANSI color codes that contained both slow blink and set foreground
or set background sequences.
* Fix coreutils ``cat`` behaviour on empty input (e.g. ``cat -``).

* Fix Ctrl-C event causing Atribute error on Windows.
* Fix Added OpenBSD as a platform

* Fix Corrected aliases for OpenBSD to not include ``--color=auto`` and ``-v``
* Fixed a regession with xonsh superhelp ``??`` operator and ``which -v`` which showed Pythons builtin
doc strings.

**Authors:**

* Anthony Scopatz
* Morten Enemark Lund
* David Kalliecharan

0.9.12

====================

**Added:**

* Added ``autovox`` xontrib
* ``xonsh.lib.itertools.as_iterable`` for making sure that strings are turned into iterables
* The ``percol`` command no longer predicts as threadable.

**Changed:**

* The ``source`` alias is now unthreaded, enabling ``contextvars`` to be used
correctly in sourced files.
* Changed the ``ExecAlias`` to only be applied when the logical operators
(``and``, ``or``) are surrounded by whitespace.

**Fixed:**

* Fixed missing ANSI color modifiers which causes traceback when they were used by ``$LS_COLORS``.
* gray empty bottom bar when using $XONSH_UPDATE_PROMPT_ON_KEYPRESS
* ``xonsh.lib.subprocess.check_output()`` now properly captures output.
* Correct ANSI colors for the default color scheme to stop suppressing the bold / italic / underline modifiers.
* tab completion for cd correctly handles the CDPATH environment variable
* On Windows, send ``CTRL_C_EVENT`` to subprocesses instead of ``SIGINT``.
* ``xonsh`` will return a non-zero exit code if it is run in file mode and
cannot find the file specified, e.g.

.. code-block::

$ xonsh thisfiledoesntexist.xsh
xonsh: thisfiledoesntexist.xsh: No such file or directory.
$ _.returncode
1
* Fixed issue with Jedi xontrib incorrectly raising errors
during tab completion.
* Defining functions inside of the shell no longer crashes on Python 3.8.
* The encoding for xonsh script are now always assumed to be utf-8, even on
Windows where the default encoding can be different. This allows for writing
real unicode characters in the xonsh script files.

**Authors:**

* Anthony Scopatz
* Gil Forsyth
* Morten Enemark Lund
* Jamie Bliss
* christopher
* Carmen Bianca Bakker
* Caleb Hattingh
* Sean Farley
* Allan Crooks
* micimize
* nedsociety
* fanosta

0.9.11

====================

**Changed:**

* ``vox activate`` will now prepend the absolute path of the virtualenv ``bin/`` directory (or ``Scripts/`` on Windows) to ``$PATH``; before this was a relative path.

**Fixed:**

* "lou carcolh" example and description of ``endidx`` in completer tutorial
* Logical operators in aliases are now executed as expected, e.g.
``aliases['echocat'] = 'echo "hi" and echo "there"'`` will, when run, return

.. code-block::

hi
there

**Authors:**

* Gil Forsyth
* con-f-use
* Caleb Hattingh

0.9.10

====================

**Added:**

* $PROMPT_REFRESH_INTERVAL: Automatically invalidate the PROMPT every so many seconds.
* Allow disabling individual items in gitstatus prompt

**Fixed:**

* Fix ``cat`` can't read pseudo files with zero size such as /proc/\* or /sys/\* (3182, 3199)
* command-not-found: now works on non-Debian bansed distributions
* Implemented ``'target'`` psuedo-color in ``$LS_COLORS`` for link coloring based
off of the link target. This was causing issues on some systems where this is
the default.

**Authors:**

* Anthony Scopatz
* Gil Forsyth
* Morten Enemark Lund
* virus
* vaaaaanquish
* K.-Michael Aye
* Alexander Steffen
* Jan Chren
* Sean Farley
* László Vaskó
* Nils ANDRÉ-CHANG
* chengxuncc

0.9.9

====================

**Added:**

* $COMPLETION_IN_THREAD: When this is True, background theads is used for completion.
* Open man page when requesting help for subprocess commands, e.g. using ``sh?``
* Add several cmds/tools for predict list

**Changed:**

* Changed ``XonshSession.link_builtins`` to set a ``DynamicAccessProxy`` for each ``builtin`` link
* ``events`` is now unlinked from ``builtins``

**Removed:**

* Removed ``DeprecationWarningProxy``; no longer needed
* Removed ``load_proxies`` and ``unload_proxies``; moved functionality to ``XonshSession.link_builtins``, ``XonshSession.unlink_builtins``, respectively.
* Removed deprecated ``builtin.__xonsh_*__`` alises, please use ``builtins.__xonsh__.*`` instead.

**Fixed:**

* Added proxied ``__dir__`` method to ``DynamicAccessProxy`` to restore
tab-completion for objects that use the proxy (especially ``events``)
* Avoid displaying finished tasks in title.
* ``inspect.getsource`` now works correctly and the ``__xonsh__.execer`` resets
``<filename>`` correctly. This was causing several very strange buggy
behaviors.
* Hitting ``Enter`` while ``$VI_MODE=True`` now executes the current code block
irrespective of cursor position

**Authors:**

* Anthony Scopatz
* Gil Forsyth
* David Dotson
* vaaaaanquish
* Alexander Steffen
* Ke Zhang
* Daniel Smith

Page 7 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.