diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b87e2ddda..2f14aa26a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,110 @@ Xonsh Change Log .. current developments +v0.9.23 +==================== + +**Added:** + +* add API docs for ptk_shell.updator module +* add flake8-docstrings to the project. it integrates pydocstyle to flake8. +* Support for ANSI OSC escape sequences in ``$PROMPT``, setting ``$TITLE`` for example. (#374, #1403) +* Now ptk_shell supports loading its sections in thread, speeding up the prompt. Enable it by setting ``$ENABLE_ASYNC_PROMPT=True``. +* Added ``unset``, ``export``, ``set -e``, ``set -x``, ``shopt``, ``complete`` to xontrib bashisms. +* Use command_cache when finding available commands, to speedup command-not-found suggestions +* Added Visual Studio Code (VSCode) extension and Vim syntax file to the Editors page. +* Added ``exit(exit_code)`` function by default in not interactive mode. Now importing ``exit`` from ``sys`` is not needed. +* Added Python syntax highlighting of xsh files on Github repo xonsh/xonsh +* history clear, history off and history on actions, for managing whether history in the current session is saved. +* ValueErrors from environ.register now report the name of the bad env var +* Add a new color ``DEFAULT`` that is used to designate the terminal's default color. +* Add a new special color token ``RESET`` used to reset all attributes. +* Add a new xonsh tool 'print_warning' that prints a traceback with a warning message. +* Added `xontrib-onepath `_ to associate files with apps in xonsh shell like in graphical OS. +* Added ``print_color`` and ``printx`` functions to builtins as reference to ``xonsh.tools.print_color``. +* Added to xontrib whole_word_jumping: Shift+Delete hotkey to delete whole word. +* Added "Advanced String Literals" to the "Tutorial". +* ``xonfig jupyter-kernel`` new subcommand to generate xonsh kernel spec for jupyter. + Installing a new xonsh kernel for jupyter automatically removes any other one registered with jupyter, + otherwise the new one might not be used. +* Added xontrib ``powerline-binding`` (https://github.com/dyuri/xontrib-powerline-binding) - uses ``powerline`` to render the prompt. + +**Changed:** + +* Improved printing of xonsh ``--shell-type`` argument in help message. +* "Bash to Xonsh Translation Guide" improvements. +* More stable exception handling in the tab completer. +* Changed sections order in docs +* The ``path`` type in ``${...}.register`` was renamed to ``env_path`` as it should be and added + new ``path`` type instead that represent ``pathlib.Path``. Now you can register typed environment + variables that will be converted to ``Path``. +* xonsh/environ.py: new rule: for "registered" environment variables (in ``DEFAULT_VARS`` or via ``env.register()``), + if default is set to ``DefaultNotGiven``, then variable has no default and raises ``KeyError`` if it is not + actually defined in environment. Likewise, ``"var" in __xonsh__.env`` will return False. +* Changed defaults for ANSICON, TERM and VIRTUAL_ENV to ``DefaultNotGiven``, so code can rationally test whether + the expected external program has defined these variables. No need to do this for variables that xonsh + itself defines. +* Moved internal uses of ``NO_COLOR`` to ``RESET``. +* When retrieving the git status or other fields for building the prompt xonsh will run + the git commands with ``$GIT_OPTIONAL_LOCKS=0``. For details on what this entails see + the git documentation for + `GIT_OPTIONAL_LOCKS `_. +* Minor improvements to the get prompt speed. (Mostly in git.) +* ptk key binding for TAB -- hitting TAB to start completion now automatically selects the first displayed completion (if any). + hitting TAB when in insert mode inserts TAB, as heretofore. This more exactly follows behavior of readline ``menu-complete``. + There is no configuration option for tailoring this behavior. +* ``xonfig info`` displays whether jupyter detected in environment and + also path of xonsh jupyter kernel spec, if any. +* xontrib-argcomplete and xontrib-pipeliner description improvement. + +**Deprecated:** + +* Deprecated the ``NO_COLOR`` color reset token in favor of ``RESET``. + +**Removed:** + +* Deprecated ``--config-path`` argument suppressed from help. +* setup no longer (tries to) install jupyter kernel automatically, + user must run ``xonfig jupyter-kernel`` manually. + +**Fixed:** + +* cygwin needs full path to find exe; disable thread_subprocs as default for cygwin +* Fixed logic in git dirty working directory +* Fixed type registration for ``*DIRS`` environment variables. +* Fixed getting typed registered environment variable when it was initialized before registration. +* Fixed #3703 and #3739, recent code change made it impossible to tell whether a (registered) environment variable + was missing from environment or present and set to its registered default value. The test for ANSICON was + failing due to this. +* Fixed environment variables substitution: unknown variables stay unreplaced now (#3818). +* Fixed xpg xontrib link +* Fix crash when xonsh tries to run windows app execution aliases. +* Setup wasn't consistently detecting jupyter in environment; ``python setup.py install`` worked, but + ``pip install .`` wouldn't (because pip mucks with ``sys.path``), + nor would install from wheel (because it doesn't run ``setup.py``). +* ``xonfig info`` now displays actual value of ON_MSYS and ON_CYGWIN instead of lazy bool type. + (maybe was happening only on Windows?) + +**Authors:** + +* Anthony Scopatz +* Gil Forsyth +* Morten Enemark Lund +* Bob Hyman +* a +* anki-code +* christopher +* Eadaen1 +* Danny Sepler +* Gyuri Horak +* cafehaine +* Wendell Turner +* Noortheen Raja +* Marius van Niekerk +* Wendell CTR Turner + + + v0.9.22 ==================== diff --git a/news/add-api-docs-for-ptk-updator-module.rst b/news/add-api-docs-for-ptk-updator-module.rst deleted file mode 100644 index 5ee83d4b7..000000000 --- a/news/add-api-docs-for-ptk-updator-module.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* add API docs for ptk_shell.updator module - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/add-flake8-docstrings.rst b/news/add-flake8-docstrings.rst deleted file mode 100644 index 906364b59..000000000 --- a/news/add-flake8-docstrings.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* add flake8-docstrings to the project. it integrates pydocstyle to flake8. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/ansi_osc.rst b/news/ansi_osc.rst deleted file mode 100644 index 0b42302cc..000000000 --- a/news/ansi_osc.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Support for ANSI OSC escape sequences in ``$PROMPT``, setting ``$TITLE`` for example. (#374, #1403) - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/args.rst b/news/args.rst deleted file mode 100644 index c2cfbed6b..000000000 --- a/news/args.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* Improved printing of xonsh ``--shell-type`` argument in help message. - -**Deprecated:** - -* - -**Removed:** - -* Deprecated ``--config-path`` argument suppressed from help. - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/async-ptk-shell-prompt.rst b/news/async-ptk-shell-prompt.rst deleted file mode 100644 index f1a542807..000000000 --- a/news/async-ptk-shell-prompt.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Now ptk_shell supports loading its sections in thread, speeding up the prompt. Enable it by setting ``$ENABLE_ASYNC_PROMPT=True``. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/bashisms.rst b/news/bashisms.rst deleted file mode 100644 index 67cc23bd2..000000000 --- a/news/bashisms.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added ``unset``, ``export``, ``set -e``, ``set -x``, ``shopt``, ``complete`` to xontrib bashisms. - -**Changed:** - -* "Bash to Xonsh Translation Guide" improvements. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/cache-executables-in.rst b/news/cache-executables-in.rst deleted file mode 100644 index f0c347284..000000000 --- a/news/cache-executables-in.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Use command_cache when finding available commands, to speedup command-not-found suggestions - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/completer_exception.rst b/news/completer_exception.rst deleted file mode 100644 index 35b51d1aa..000000000 --- a/news/completer_exception.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* More stable exception handling in the tab completer. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/cygwin-updates.rst b/news/cygwin-updates.rst deleted file mode 100644 index 945788d8d..000000000 --- a/news/cygwin-updates.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* cygwin needs full path to find exe; disable thread_subprocs as default for cygwin - -**Security:** - -* diff --git a/news/docs.rst b/news/docs.rst deleted file mode 100644 index 014b0bb29..000000000 --- a/news/docs.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* Changed sections order in docs - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/dwd-bugfix.rst b/news/dwd-bugfix.rst deleted file mode 100644 index 56bc0e0bc..000000000 --- a/news/dwd-bugfix.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed logic in git dirty working directory - -**Security:** - -* diff --git a/news/editors_vscode_vim.rst b/news/editors_vscode_vim.rst deleted file mode 100644 index cedd390e6..000000000 --- a/news/editors_vscode_vim.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added Visual Studio Code (VSCode) extension and Vim syntax file to the Editors page. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/env_path_imp.rst b/news/env_path_imp.rst deleted file mode 100644 index c8bf248f0..000000000 --- a/news/env_path_imp.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed type registration for ``*DIRS`` environment variables. - -**Security:** - -* diff --git a/news/env_register.rst b/news/env_register.rst deleted file mode 100644 index d5eacd956..000000000 --- a/news/env_register.rst +++ /dev/null @@ -1,25 +0,0 @@ -**Added:** - -* - -**Changed:** - -* The ``path`` type in ``${...}.register`` was renamed to ``env_path`` as it should be and added - new ``path`` type instead that represent ``pathlib.Path``. Now you can register typed environment - variables that will be converted to ``Path``. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed getting typed registered environment variable when it was initialized before registration. - -**Security:** - -* diff --git a/news/environment_fixes.rst b/news/environment_fixes.rst deleted file mode 100644 index 0a41a318f..000000000 --- a/news/environment_fixes.rst +++ /dev/null @@ -1,30 +0,0 @@ -**Added:** - -* - -**Changed:** - -* xonsh/environ.py: new rule: for "registered" environment variables (in ``DEFAULT_VARS`` or via ``env.register()``), - if default is set to ``DefaultNotGiven``, then variable has no default and raises ``KeyError`` if it is not - actually defined in environment. Likewise, ``"var" in __xonsh__.env`` will return False. -* Changed defaults for ANSICON, TERM and VIRTUAL_ENV to ``DefaultNotGiven``, so code can rationally test whether - the expected external program has defined these variables. No need to do this for variables that xonsh - itself defines. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed #3703 and #3739, recent code change made it impossible to tell whether a (registered) environment variable - was missing from environment or present and set to its registered default value. The test for ANSICON was - failing due to this. - -**Security:** - -* diff --git a/news/exit.rst b/news/exit.rst deleted file mode 100644 index 755f9672c..000000000 --- a/news/exit.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added ``exit(exit_code)`` function by default in not interactive mode. Now importing ``exit`` from ``sys`` is not needed. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/fix_env_subst.rst b/news/fix_env_subst.rst deleted file mode 100644 index 79047f56c..000000000 --- a/news/fix_env_subst.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed environment variables substitution: unknown variables stay unreplaced now (#3818). - -**Security:** - -* diff --git a/news/fix_xontrib_link.rst b/news/fix_xontrib_link.rst deleted file mode 100644 index bc72bb7f5..000000000 --- a/news/fix_xontrib_link.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fixed xpg xontrib link - -**Security:** - -* diff --git a/news/gh_xsh.rst b/news/gh_xsh.rst deleted file mode 100644 index ffd869233..000000000 --- a/news/gh_xsh.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added Python syntax highlighting of xsh files on Github repo xonsh/xonsh - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/history_testing-ead.rst b/news/history_testing-ead.rst deleted file mode 100644 index 0d54b6392..000000000 --- a/news/history_testing-ead.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* history clear, history off and history on actions, for managing whether history in the current session is saved. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/name_in_error.rst b/news/name_in_error.rst deleted file mode 100644 index fa8a1d88e..000000000 --- a/news/name_in_error.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* ValueErrors from environ.register now report the name of the bad env var - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/no_color_deprecation.rst b/news/no_color_deprecation.rst deleted file mode 100644 index 54f1091d3..000000000 --- a/news/no_color_deprecation.rst +++ /dev/null @@ -1,25 +0,0 @@ -**Added:** - -* Add a new color ``DEFAULT`` that is used to designate the terminal's default color. -* Add a new special color token ``RESET`` used to reset all attributes. -* Add a new xonsh tool 'print_warning' that prints a traceback with a warning message. - -**Changed:** - -* Moved internal uses of ``NO_COLOR`` to ``RESET``. - -**Deprecated:** - -* Deprecated the ``NO_COLOR`` color reset token in favor of ``RESET``. - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/onepath.rst b/news/onepath.rst deleted file mode 100644 index 88bc018a4..000000000 --- a/news/onepath.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added `xontrib-onepath `_ to associate files with apps in xonsh shell like in graphical OS. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/prevent-git-locking-when-getting-status.rst b/news/prevent-git-locking-when-getting-status.rst deleted file mode 100644 index 47a0ae44c..000000000 --- a/news/prevent-git-locking-when-getting-status.rst +++ /dev/null @@ -1,26 +0,0 @@ -**Added:** - -* - -**Changed:** - -* When retrieving the git status or other fields for building the prompt xonsh will run - the git commands with ``$GIT_OPTIONAL_LOCKS=0``. For details on what this entails see - the git documentation for - `GIT_OPTIONAL_LOCKS `_. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/printx.rst b/news/printx.rst deleted file mode 100644 index e6c1f1e9a..000000000 --- a/news/printx.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added ``print_color`` and ``printx`` functions to builtins as reference to ``xonsh.tools.print_color``. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/prompt-speed.rst b/news/prompt-speed.rst deleted file mode 100644 index 5ac871e51..000000000 --- a/news/prompt-speed.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* Minor improvements to the get prompt speed. (Mostly in git.) - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/ptk-complete-select-first.rst b/news/ptk-complete-select-first.rst deleted file mode 100644 index 7a4b64bff..000000000 --- a/news/ptk-complete-select-first.rst +++ /dev/null @@ -1,25 +0,0 @@ -**Added:** - -* - -**Changed:** - -* ptk key binding for TAB -- hitting TAB to start completion now automatically selects the first displayed completion (if any). - hitting TAB when in insert mode inserts TAB, as heretofore. This more exactly follows behavior of readline ``menu-complete``. - There is no configuration option for tailoring this behavior. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/shift_del.rst b/news/shift_del.rst deleted file mode 100644 index 9f1d2e3f9..000000000 --- a/news/shift_del.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added to xontrib whole_word_jumping: Shift+Delete hotkey to delete whole word. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/tutorial_literal.rst b/news/tutorial_literal.rst deleted file mode 100644 index 4a30e5867..000000000 --- a/news/tutorial_literal.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added "Advanced String Literals" to the "Tutorial". - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/windows_app_execution_aliases.rst b/news/windows_app_execution_aliases.rst deleted file mode 100644 index a5689b00b..000000000 --- a/news/windows_app_execution_aliases.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* Fix crash when xonsh tries to run windows app execution aliases. - -**Security:** - -* diff --git a/news/xonfig-kernel.rst b/news/xonfig-kernel.rst deleted file mode 100644 index 578ac7dab..000000000 --- a/news/xonfig-kernel.rst +++ /dev/null @@ -1,31 +0,0 @@ -**Added:** - -* ``xonfig jupyter-kernel`` new subcommand to generate xonsh kernel spec for jupyter. - Installing a new xonsh kernel for jupyter automatically removes any other one registered with jupyter, - otherwise the new one might not be used. - -**Changed:** - -* ``xonfig info`` displays whether jupyter detected in environment and - also path of xonsh jupyter kernel spec, if any. - -**Deprecated:** - -* - -**Removed:** - -* setup no longer (tries to) install jupyter kernel automatically, - user must run ``xonfig jupyter-kernel`` manually. - -**Fixed:** - -* Setup wasn't consistently detecting jupyter in environment; ``python setup.py install`` worked, but - ``pip install .`` wouldn't (because pip mucks with ``sys.path``), - nor would install from wheel (because it doesn't run ``setup.py``). -* ``xonfig info`` now displays actual value of ON_MSYS and ON_CYGWIN instead of lazy bool type. - (maybe was happening only on Windows?) - -**Security:** - -* diff --git a/news/xontrib-powerline-binding.rst b/news/xontrib-powerline-binding.rst deleted file mode 100644 index da67b493b..000000000 --- a/news/xontrib-powerline-binding.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* Added xontrib ``powerline-binding`` (https://github.com/dyuri/xontrib-powerline-binding) - uses ``powerline`` to render the prompt. - -**Changed:** - -* - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -* diff --git a/news/xontrib_descr.rst b/news/xontrib_descr.rst deleted file mode 100644 index 9ff290e23..000000000 --- a/news/xontrib_descr.rst +++ /dev/null @@ -1,23 +0,0 @@ -**Added:** - -* - -**Changed:** - -* xontrib-argcomplete and xontrib-pipeliner description improvement. - -**Deprecated:** - -* - -**Removed:** - -* - -**Fixed:** - -* - -**Security:** - -*