Changelog History
Page 3
-
v0.9.15 Changes
March 19, 2020β Added:
- β Adds documentation for how to setup an emacs editing mode for xonsh.
- New
$XONSH_TRACE_SUBPROC
environment variable. - β Added
-l
,-c
and-a
options toxexec
, works now likeexec
in bash/zsh - $HISTCONTROL - errordups support for history-sqlite backend
π Changed:
-l
switch works like bash, loads environment in non-interactive shell- β
The xonsh pytest plugin no longer messes up the test order for pytest. Xsh test
are still executed first to avoid a bug were other tests would prevent
test_*.xsh
files to run correctly. - π New repo name for xxh
π Fixed:
- Correctly follow symlinks when using dot-dot paths with cd -P.
execx
does not require the input string to be newline-terminated.evalx
accepts newline-terminated input string.- π Fixed issue where negative exit codes (such as those produced by core dumps) where treated as logical successes when chaining processes with other boolean expressions.
- Fixed XONSH_TRACE_SUBPROC for pipeline command.
- β‘οΈ updated CONTRIBUTING.rst about running pylint for changed files
Authors:
- Anthony Scopatz
- Morten Enemark Lund
- David Strobach
- anki-code
- Samuel Lotz
- Gyuri Horak
- Noortheen Raja
- Gabriel Vogel
- anki
- Jerzy Drozdz
-
v0.9.14 Changes
β 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 previousxonsh/xonsh
andxonsh/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. DefaultTrue
. - 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 oldxonfig wizard
command. - π New
xonsh.webconfig
subpackage for creating and launchingxonfig 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 thetime_format
entry of$PROMPT_FIELDS
, which defaults to"%H:%M:%S"
. These are implemented in the newxonsh.prompt.times
module. - The
html
module inxonsh.lazyimps
was added to lazily importpygments.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 fromPython3Lexer
, rather thanPythonLexer
. - π
xonsh.pyghooks.XonshStyle
now presents thehighlight_color
andbackground_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 shouldFixed documentation on environment variable
$PROMPT_REFRESH_INTERVAL
.π Using rmtree on windows no longer attempts to use invalid
rm
command and usesdel
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
-
v0.9.13 Changes
π 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 andwhich -v
which showed Pythons builtin doc strings.
Authors:
- Anthony Scopatz
- Morten Enemark Lund
- David Kalliecharan
- The
-
v0.9.12 Changes
β 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, enablingcontextvars
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.- 0οΈβ£ 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 ofSIGINT
. 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
- β Added
-
v0.9.11 Changes
π Changed:
- π
vox activate
will now prepend the absolute path of the virtualenvbin/
directory (orScripts/
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
- π
-
v0.9.10 Changes
β 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
-
v0.9.9 Changes
β 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 aDynamicAccessProxy
for eachbuiltin
link events
is now unlinked frombuiltins
β Removed:
- β Removed
DeprecationWarningProxy
; no longer needed - Removed
load_proxies
andunload_proxies
; moved functionality toXonshSession.link_builtins
,XonshSession.unlink_builtins
, respectively. - Removed deprecated
builtin.__xonsh_*__
alises, please usebuiltins.__xonsh__.*
instead.
π Fixed:
- Added proxied
__dir__
method toDynamicAccessProxy
to restore tab-completion for objects that use the proxy (especiallyevents
) - 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
-
v0.9.8 Changes
π Fixed:
- π Fixed a bug in sourcing Bash functions, where
delare -F
contained newlines, meaning that theread
command that followed it would only pick up the first function declaration.echo
is used to normalize whitespace.
Authors:
- Anthony Scopatz
- π Fixed a bug in sourcing Bash functions, where
-
v0.9.7 Changes
β Added:
- β add xontrib (xontrib-readable-traceback)
- Registered kitty xontrib.
- The zipapp extra was added to install the importlib.resources backport on <3.7
π Changed:
- β turn off warning on completer
- π xontrib metadata loading is now zipapp safe when possible
π Fixed:
- β‘οΈ Updated py-bash-completion that is vended with xonsh to v0.2.6 which includes a fix completion which uses a subshell environment and a fix for string index error in stripped prefix.
- β Removed obsolte "Alt+." keybinding in xontrib-bashisms that was causing built-in binding to malfunction.
- π Fixed that occurs when type a command before rendering.
Authors:
- Anthony Scopatz
- Jamie Bliss
- con-f-use
- vaaaaanquish
- Gyuri Horak
-
v0.9.6 Changes
π Fixed:
- π Fixed exception in help/version threadable predictor
- π Fixed gitstatus prompt so that it also now reports deleted files
- π Fixed issue where the prompt-toolkit2 shell could not display and
would end up in an infinite error loop if
$MULTILINE_PROMPT
was a suitably "false" value, such asNone
or an empty string. - Fixed issue where setting
$XONSH_STDERR_PREFIX
and$XONSH_STDERR_POSTFIX
and running a command in thexonshrc
file would throw an error.
Authors:
- Anthony Scopatz
- David Strobach
- virus
- shadow-light