diff --git a/docs/_static/context_menu_windows.png b/docs/_static/context_menu_windows.png new file mode 100644 index 000000000..d1ec9f5e1 Binary files /dev/null and b/docs/_static/context_menu_windows.png differ diff --git a/docs/faq.rst b/docs/faq.rst index fadd6a026..890777a58 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -193,3 +193,22 @@ as recursive globbing is `new in Python 3.5 `_ 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()