Changelog History
Page 8
-
v0.6.6 Changes
โ Added:
- A multipurpose add method to EnvPath. For example:
.. code-block:: xonshcon
>>> $PATH EnvPath( ['/usr/bin', '/usr/local/bin', '/bin'] ) >>> $PATH.add('~/.local/bin', front=True); $PATH EnvPath( ['/home/user/.local/bin', '/usr/bin', '/usr/local/bin', '/bin'] ) >>> $PATH.add('/usr/bin', front=True, replace=True); $PATH EnvPath( ['/usr/bin', '/home/user/.local/bin', '/usr/local/bin', '/bin'] )
- โ Added
pygments-cache
project in order to reduce startup time.
๐ Changed:
- built_ins.py, corrected a typo.
- โ test/test_news.py It now uses regex to verify the format of rst files
- Mercurial (
hg
) will no longer run in a threadable subprocess when it is run in interactive mode.
๐ Fixed:
- issue 2313
-
v0.6.5 Changes
โ Added:
- Wizard
FileInsterter
node class now hasdumps()
method for converting a mapping to a string to insert in a file.
๐ Fixed:
- ๐ Fixed issue with
xonfig wizard
writer failing to write valid run control files for environment variables that are containter types. In particular, the storage of$XONSH_HISTORY_SIZE
has been fixed.
- Wizard
-
v0.6.4 Changes
๐ Changed:
- Error message improved for sourcing foreign shells, when file cannot be found or there is a syntax error.
๐ Fixed:
- ๐ Fixed issues with readline completer tab completing entries with spaces.
- ๐ Fixed
xonsh.tools.columnize()
bug the prevented single-row input from being columnized correctly. - Now honor ASYNC and AWAIT as keywords in tokenizer on Python 3.7.
-
v0.6.3 Changes
โ Added:
- ๐ Docs for using
@(<expr>)
as a way to run commands and a gotcha about list of strings vs single string expressions. - ๐ฆ Ubuntu versions which xonsh is packaged for (with xonsh versions)
๐ Changed:
- ๐ When reporting errors without a traceback (i.e.
$XONSH_SHOW_TRACEBACK = False
) and the error is aXonshError
the exception type is not longer printed. CommandPipeline.proc
may now beNone
, to accomodate when the process fails to even start (i.e. a missing command or incorrect permisions).
๐ Fixed:
- The
curl
command will now be run in a thread, which prevents documents that do not end in a newline from writing over the next prompt and vice versa. - ๐ Fix bug on Windows when
PATHEXT
environment variable did not exist. This also fixes building the xonsh documentation on Windows. - ๐ Fixed a bug in the
free_cwd <http://xon.sh/xontribs.html#free-cwd>
__ Windows Xontrib, which caused the prompt to error if the current directory is deleted/renamed from an other process. - ๐ Fixed issue with
$XONSH_SHOW_TRACEBACK
not being respected in subprocess mode when the command could not be found or had incorrect permissions.
- ๐ Docs for using
-
v0.6.2 Changes
โ Added:
- ๐ Release tarballs now include licenses and minimal documentation for xonsh and ply
- Wizard now has a
FileInserter
node that allows blocks to be inserted and replaced inside of a file. This adheres to conversion rules fordumping as provided on this node. - ๐ New
xonsh.wizard.StateVisitor.flatten()
method for flattening the current state.
๐ Changed:
- The xonsh startup wizard will only be triggered if no xonshrc files exist
and the file
~/.local/config/xonsh/no-wizard
is not present. - The
xonfig wizard
command will now run write out to the xonshrc file. - Wizard nodes
Save
andLoad
had their names changed toSaveJSON
andLoadJSON
.
โ Removed:
- ๐ง Static configuration is dead (
config.json
), long live run control (xonshrc
)! - ๐ The following evironment variables have been removed as they are no longer needed:
$LOADED_CONFIG
and$XONSHCONFIG
. - ๐ง Many support functions for static configuration have also been removed.
๐ Fixed:
- Files starting with
#
are auto-escaped by TAB completion
-
v0.6.1 Changes
โ Added:
- ๐ Support for MSYS2.
- ๐ New
xonsh.main.setup()
function for starting up xonsh in 3rd party packages.
๐ Changed:
- โก๏ธ Updated CircleCI to use circle version 2.0
- Replaced StopIteration with return in CommandPipeline.iterraw.
- Xonsh run control now also looks for the XDG-compliant file
~/.config/xonsh/rc.xsh
at startup.
๐ Fixed:
- Clean out
$LINES
and$COLUMNS
if set, preventing some programs from drawing weirdly - ๐ง cat from xoreutils now outputs in configured encoding
- ๐ Fixed hanging issue with pipelines whose middle processes exit before the first or last process.
- ๐ Fixed issue where xonsh would deduplicate spaces from bash autocompletions.
- ๐ Fixed failing redirections from stderr to stdout when the command being executed was a callable alias.
- ๐ Ensure that the
free_cwd
contrib can only be active on pure Windows. - Made an exceptional case in
iglobpath()
more robust when Python globbing fails for due to strange scrandir issue. - Unexpected process suspension on Cygwin and MSYS2.
$XONSH_APPEND_NEWLINE
will now default to True when in interactive mode.- ๐ Fixed issue with uncalled lambdas being run in subproc mode.
- Lambda nodes not have proper line and column numbers in AST.
- Properly throw
SyntaxError
when no kwargs are defined in a kwarg-only function. This used to throw aTypeError: 'NoneType' object is not iterable
. - โ Addressed issue where encoding and errors were None when teeing output.
- Commands like
git c
would complete togit 'checkout '
because git adds an extra space to the end of the completion, which was being captured in the completion. Xonsh now fixes the git issue while retaining all whitespace when there is other internal whitespace.
-
v0.6.0 Changes
โ Added:
- โ Added an alias command, matching bash's implementation, available as part of bashisms.
- New
$AUTO_SUGGEST_IN_COMPLETIONS
environment variable that enables/disables whether the auto-suggestion result appears in the tab completions. - โ Added
__add__()
and__radd__()
methods toEnvPath
. - ๐ Xonsh now supports f-strings, as in Python v3.6+.
- โ Added
ipython
as unthreadable in command cache threadabilty predictors. - Added
whole_word_jumping
xontrib - Added
$XONSH_APPEND_NEWLINE
environment variable - ๐ Support for PEP 515: Underscores in Numeric Literals
-
xonsh.color_tools.make_palette()
Simple rename of the pre-existing
xonsh.color_tools.make_pallete()
function.-
xonsh.tools.decorator()
function/method decorator.
This allows for an API function to be annotated with a decorator that documents deprecation, while also tying in functionality that will warn a user that the function has been deprecated, and, raise an
AssertionError
if the function has passed its expiry date.- ๐ New xontrib
schedule
(Xonsh Task Scheduler)
๐ Changed:
on_pre_prompt
is now fired before prompt calculations are made, allowing modifications to the prompt.emacsclient
will now return false in the threadable predictors.- ๐ Improved the autopair behavior to match that of popular code editors.
- ๐ฆ Moved the lazy
pkg_resources
package back to its original place. The will hopefully address some of the slowdown issues experiances on some platforms. - When xonsh is used to run an
xsh
script, thexonshrc
is not loaded - ๐ Change in the behavior of the default predictor with binary analysis. The pattern
libgpm
is use, assuming whengpm
is used the program is not threadable. This change solves issues with programs aslinks
. - Error messages added to the
source
command if it is used with a language that is not xonsh or Python.
๐ Deprecated:
-
xonsh.color_tools.make_pallette()
Deprecated in release 0.5.10 and will be removed in release 0.6.0.
๐ Fixed:
- Now f-strings can be used inside @() without explicit enclosing command in ![]
- ๐ Fix for
x, y, *z = ...
unpacking. - Git branch detection now correctly passes the environment down to the subprocess call. This allows for branch detection when git is installed into a non-standard location.
- ๐ Escape regex characters in
path_complete
to avoid regex parsing errors for certain combinations of characters in path completer - ๐ gistatus: Fixed hash not being shown when in detaced HEAD and there are no tags
- ๐ Fix branch colorization when
git
orhg
are aliases. - ๐ Fixed leftover
.git/index.lock
ingitstatus
- Made JSON history loading more robust to corrupt files.
- Starting a new command with an open parentheses will no longer
throw a traceback when
$UPDATE_COMPLETIONS_ON_KEYPRESS
isTrue
. - Automatically wrapping subprocess calls would sometimes include semincolons and other line-ending tokens, rather than stopping at them. This has been fixed.
๐ Numerous spelling errors in documentation, docstrings/comments, text strings and local variable names.
Spelling error in the
xonsh.color_tools.make_pallete()
public function declaration. This was fixed by renaming the function toxonsh.color_tools.make_palette()
while maintaining a binding ofmake_pallete()
to the newmake_palette()
in case users are already used to this API.๐ Fixed issue with starting triple quote strings being run as a command.
๐ Fixed a problem with escaping charet () character for cmd.exe in the source-cmd function.
EOF in multi-line statement
errors were misreported as being on line 0. Now they are correctly reported as being on the last line of the file.
-
v0.5.12 Changes
๐ Fixed:
- ๐ Fixed
release.xsh
to prevent it from dirtying the repo on release and leading to an unwanted.dev
suffix on the version number
- ๐ Fixed
-
v0.5.11 Changes
โ Added:
- ๐
release.xsh
creates a github release with the merged news entries as the release body
๐ Fixed:
- ๐ง
xonfig
now displays the proper value for "on linux"
- ๐
-
v0.5.10 Changes
โ Added:
- โ Added
xclip
andrepo
to default threadable predictors (Issues #2355 and #2348) - ๐จ Pretty printing of the $PATH variable
- โ Add "fzf-widgets" xontrib which provides fuzzy search productivity widgets with on custom keybindings to xontrib list.
- ๐ New
free_cwd
xontrib for Windows, which prevent the current directory from being locked when the prompt is shown. This allows the other programs or Windows explorer to delete the current or parent directory. This is accomplished by resetting the CWD to the users home directory temporarily while the prompt is displayed. The directory is still locked while any commands are processed so xonsh still can't remove it own working directory.
๐ Changed:
- Codecov threshold to 2%
โ Removed:
- ๐ On Windows environments variables in wrapped like
%foo%
are no longer expanded automatically.
๐ Fixed:
- ๐ Fixed the
--rc
option so it now runs xonsh with the specified rc file @$
operator now functions properly when returned command is an alias- ๐ Correct line continuation would not work on Windows if the line continuations were used
in the
xonshrc
file. - ๐ Fixed a regression in the Windows
sudo
command, that allows users to run elevated commands in xonsh. - ๐ Fix echo command from xoreutils.
- ๐ Fixed a bug on Windows which meant xonsh wasn't using PATH environment variable but instead relying on a default value from the windows registry.
- โ Added