xonsh v0.4.7 Release Notes
-
โ Added:
- ๐ Define alias for 'echo' on startup for Windows only.
- ๐ New coredev
AstraLuma <https://github.com/AstraLuma>
_ added which -a
now searches in__xonsh_ctx__
too- Info about the xontrib cookiecutter template on xontrib tutorial
- ๐ง xonsh's optional dependencies may now be installed with the pip extras
ptk
,proctitle
,linux
,mac
, andwin
. - ๐จ Env
help
method to format and print the vardocs for an envvar - โ test_news fails if no empty line before a category
- โ more info on test_news failures
- Added
on_precommand
andon_postcommand
events </events.html>
_ - ๐ New
FORMATTER_DICT
entrygitstatus
to provides informative git status FOREIGN_ALIASES_OVERRIDE envvar to control whether foreign aliases should override xonsh aliases with the same name.
โ Warning on tutorial about foreign aliases being ignored if a xonsh alias exist with the same name if not FOREIGN_ALIASES_OVERRIDE.
The prompt-toolkit shell now auto-inserts matching parentheses, brackets, and quotes. Enabled via the
XONSH_AUTOPAIR
environment variable๐ Better syntax highlights in prompt-toolkit, including valid command / path highlighting, macro syntax highlighting, and more
More info on tutorial about history interaction
Entry on bash_to_xsh
Macro context managers are now available via the
with!
syntax.
๐ Changed:
- ๐ Devguide reflects the current process of releasing through
release.xsh
- ๐ moved
which
fromxonsh.aliases
intoxoreutils.which
xonsh.prompt.gitstatus.gitstatus
now returns a namedtupleimplementation of
xonsh.prompt.vc_branch.get_git_branch
andxonsh.prompt.vc_branch.git_dirty_working_directory
to use 'git status --procelain'๐ moved prompt formatting specific functions from
xonsh.environ
toxonsh.prompt.base
๐ฆ All prompt formatter functions moved to
xonsh.prompt
subpackage๐จ Printing the message about foreign aliases being ignored happens only if XONSH_DEBUG is set.
๐ Use
SetConsoleTitleW()
on Windows instead of a process call.Tutorial to reflect the current history command argument functionality
0๏ธโฃ Macro function arguments now default to
str
, rather thaneval
, for consistency with other parts of the macro system.
โ Removed:
- aliases that use '!' in their name cause they clash with the macro syntax
๐ Fixed:
- ๐ Fix regression where bash git completions where not loaded automatically when GitForWindows is installed.
- ๐ More tokens are now supported in subproc args, such as
==
. - Python completions now work without space delimiters, e.g.
a=matpl<TAB>
will complete toa=matplotlib
- ๐ Parser would fail on nested, captured suprocess macros. Now, it works, hooray!?
- now fires chdir event if OS change in working directory is detected.
xonsh.prompt.vc_branch.git_dirty_working_directory
usesporcelain
option instead of using the bytestringnothing to commit
to find out if a git directory is dirty- ๐ Fix bug where know commands where not highlighted on windows.
- ๐ Fixed completer showing executable in upper case on windows.
- ๐ Fixed issue where tilde expansion was occurring more than once before an equals sign.
- โ test_dirstack test_cdpath_expansion leaving stray testing dirs
- ๐ Better completer display for long completions in prompt-toolkit
- Automatically append newline to target of
source
alias, so that it may be exec'd. - โ test_news fails when single graves around word
- Slashes in virtual environment names work in vox
- non string type value in $FORMATTER_DICT turning prompt ugly
- ๐ป whole prompt turning useless when one formatting function raises an exception
- ๐ Fix completion after alias expansion
- ๐ Fix hard crash when foreign shell functions fails to run. #1715
- Bug where non-default locations for
XDG_DATA_HOME
andXONSH_DATA_DIR
would not expand~
into the home directory Auto quote path completions if path contains 'and' or 'or'
Completion now works on subcommands after pipe,
&&
,||
and so on.cd . and cd now work. Fix indexerror in AUTO_PUSHD case, too.
๐ Fixed issue with accidentally wrapping generators inside of function calls.
History indexing with string returns most recent command.