Skip to content

Commit

Permalink
Moving old xontribs to repositories (xonsh#5055)
Browse files Browse the repository at this point in the history
* Update and rename README to README.rst

* Create hello_world.py

* Update README.rst

* init

* remove bashisms

* Transfer abbrevs to xontrib-abbrevs

* Transfer free-cwd to xontrib-free-cwd

* news

* black

* Transfer fish-completer to xonsh/xontrib-fish-completer

* Transfer vox to xonsh/xontrib-vox

* Transfer pdb, xog to xonsh/xontrib-debug-tools

* remove hello_world

* fix tests

* black

* fix whitespaces

* fix readme

* Update python_virtual_environments.rst

* Update README.rst

* Update xontribs_transfer.rst

---------

Co-authored-by: a <[email protected]>
  • Loading branch information
anki-code and a committed Mar 17, 2023
1 parent 868fff9 commit 0424877
Show file tree
Hide file tree
Showing 25 changed files with 52 additions and 2,338 deletions.
9 changes: 6 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ And visit https://xon.sh for more information:

Extensions
**********
- `Core extensions (xontribs) <https://xon.sh/api/_autosummary/xontribs/xontrib.html>`_
- `External extensions on Github <https://github.com/topics/xontrib>`_
- `List of awesome xontribs <https://github.com/xonsh/awesome-xontribs>`_

Xonsh has the certain term for extensions and additional materials - xontrib - the short version of "contribution" word.

- `Xontribs on Github <https://github.com/topics/xontrib>`_
- `Awesome xontribs <https://github.com/xonsh/awesome-xontribs>`_
- `Core xontribs <https://xon.sh/api/_autosummary/xontribs/xontrib.html>`_
- `Create a xontrib step by step from template <https://github.com/xonsh/xontrib-template>`_

Projects that use xonsh or compatible
Expand Down
4 changes: 2 additions & 2 deletions docs/bash_to_xsh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,5 @@ to set :ref:`$XONSH_TRACE_SUBPROC <xonsh_trace_subproc>` to ``True``:
TRACE SUBPROC: (['echo', 'hello\n', 'world'], '|', ['grep', 'hello'])
If after time you still try to type ``export``, ``unset`` or ``!!`` commands
there are the `bashisms <https://xon.sh/xontribs.html#bashisms>`_
and `sh <https://xon.sh/xontribs.html#sh>`_ xontribs.
there are the `bashisms <https://github.com/xonsh/xontrib-bashisms>`_
and `sh <https://github.com/anki-code/xontrib-sh>`_ xontribs.
4 changes: 4 additions & 0 deletions docs/platform-issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ works by hooking the prompt to reset the current working directory to the root
drive folder whenever the shell is idle. It only works with the prompt-toolkit
back-end. To enable that behaviour run the following:

.. code-block:: xonshcon
>>> xpip install xontrib-free-cwd
Add this line to your ``~/.xonshrc`` file to have it always enabled.

.. code-block:: xonshcon
Expand Down
4 changes: 3 additions & 1 deletion docs/python_virtual_environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Python Virtual Environments

The usual tools for creating Python virtual environments—``venv``, ``virtualenv``, ``pew``—don't play well with xonsh. We won't dig deeper into why it is so, but the general gist is that these tools are hacky and hard-coded for bash, zsh, and other mainstream shells.

Luckily, xonsh ships with its own virtual environments manager called **Vox**.
Luckily, xonsh has its own virtual environments manager called **Vox**. Run to install Vox::

$ xpip install xontrib-vox

Vox
===
Expand Down
29 changes: 29 additions & 0 deletions news/xontribs_transfer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
**Added:**

* <news item>

**Changed:**

* ``abbrevs`` xontrib transferred to `xontrib-abbrevs <https://github.com/xonsh/xontrib-abbrevs>`_.
* ``bashisms`` xontrib transferred to `xontrib-bashisms <https://github.com/xonsh/xontrib-bashisms>`_.
* ``free_cwd`` xontrib transferred to `xontrib-free-cwd <https://github.com/xonsh/xontrib-free-cwd>`_.
* ``whole_word_jumping`` xontrib transferred to `xontrib-whole-word-jumping <https://github.com/xonsh/xontrib-whole-word-jumping>`_.
* ``fish_completer`` xontrib transferred to `xontrib-fish-completer <https://github.com/xonsh/xontrib-fish-completer>`_.
* ``vox``, ``autovox``, ``voxapi`` xontribs transferred to `xontrib-vox <https://github.com/xonsh/xontrib-vox>`_.
* ``pdb``, ``xog`` xontribs transferred to `xontrib-debug-tools <https://github.com/xonsh/xontrib-debug-tools>`_.

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* Fixed xontrib-jupyter to work in JupyterLab and terminal-based `Euporie <https://github.com/joouha/euporie>`_ environment.

**Security:**

* <news item>
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ per-file-ignores =
xonsh/tokenize.py:F821 F841,
xonsh/tools.py:E731 E305,
xonsh/xonfig.py:E731,
xontrib/vox.py:F821,
# remove these later
xonsh/color_tools.py:E305
xonsh/completers/_aliases.py:E305,
Expand Down
3 changes: 0 additions & 3 deletions tests/completers/test_xompletions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def test_xonfig(args, prefix, exp, xsh_with_aliases, monkeypatch, check_complete
None,
{
# the list may vary wrt the env. so testing only part of the coreutils.
"abbrevs",
"pdb",
"bashisms",
"coreutils",
},
),
Expand Down
51 changes: 0 additions & 51 deletions tests/test_bashisms.py

This file was deleted.

Loading

0 comments on commit 0424877

Please sign in to comment.