con-f-use / xontrib-histcpy

Useful aliases and shortcuts for extracting links and text from command output history in xonsh
https://pypi.org/project/xontrib-histcpy/
GNU General Public License v3.0
4 stars 3 forks source link

xontrib-histcpy

Useful aliases and shortcuts for extracting links and text from command output history in xonsh.

xontrib-histcpy in action


Usage

If you use prompt toolkit, histcpy will bind the follow shortcuts:

The same functionality and more is available with the following command aliases (even when not using ptk):

Currently, histcpy can only work with the default $XONSH_HISTORY_BACKEND (i.e. it does not work with the sqlite backend, only json). You also need to set $XONSH_STORE_STDOUT=True, obviously.

Installation

Just do a

pip install xontrib-histcpy

or you can clone the repo with pip

pip install git+https://github.com/con-f-use/xontrib-histcpy

Configuration

To automatically load histcpy on startup, put

xontrib load histcpy

in your .xonshrc.

ToDo

Alternative