mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Add FAQ for adding context menu
This commit is contained in:
parent
9b23723bf0
commit
189b19b188
2 changed files with 19 additions and 0 deletions
BIN
docs/_static/context_menu_windows.png
vendored
Normal file
BIN
docs/_static/context_menu_windows.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
19
docs/faq.rst
19
docs/faq.rst
|
@ -193,3 +193,22 @@ as recursive globbing is `new in Python 3.5 <https://docs.python.org/3/library/g
|
||||||
|
|
||||||
To keep available packages independent from underlying environments, use the provided `xpip` alias in the same way as `pip` is installed.
|
To keep available packages independent from underlying environments, use the provided `xpip` alias in the same way as `pip` is installed.
|
||||||
It will make sure that the installed packages are available to `xonsh`
|
It will make sure that the installed packages are available to `xonsh`
|
||||||
|
|
||||||
|
9. How to add xonsh into the context menu for Windows?
|
||||||
|
------------------------------------------------------
|
||||||
|
In Windows, there's a context menu support for opening a folder in a shell, such as `Open PowerShell window here`. You might want to have a similar menu that opens a folder in xonsh:
|
||||||
|
|
||||||
|
.. image:: _static/context_menu_windows.png
|
||||||
|
:width: 80 %
|
||||||
|
:alt: context_menu_windows
|
||||||
|
:align: center
|
||||||
|
|
||||||
|
Usually it involves modifying registry to get it, but `a contributed script <https://gist.github.com/nedsociety/91041691d0ac18bc8fd9e937ad21b055>`_ can be used for automating chores for you.
|
||||||
|
|
||||||
|
.. code-block:: xonshcon
|
||||||
|
|
||||||
|
# Open xonsh and copy-paste the following line:
|
||||||
|
>>> exec(__import__('urllib.request').request.urlopen(r'https://gist.githubusercontent.com/nedsociety/91041691d0ac18bc8fd9e937ad21b055/raw/xonsh_context_menu.py').read());xonsh_register_right_click()
|
||||||
|
|
||||||
|
# To remove the menu, use following line instead:
|
||||||
|
>>> exec(__import__('urllib.request').request.urlopen(r'https://gist.githubusercontent.com/nedsociety/91041691d0ac18bc8fd9e937ad21b055/raw/xonsh_context_menu.py').read());xonsh_unregister_right_click()
|
||||||
|
|
Loading…
Add table
Reference in a new issue