Useful aliases and shortcuts for extracting links and text from command output history in xonsh
Project description
xontrib-histcpy
Useful aliases and shortcuts for extracting links and text from command output history in xonsh.
Usage
If you use ptk(2)-prompts, histcpy will bind the follow shortcuts:
- Alt + u: Open one of the URLs that a previous command wrote to output in your web browser
- Alt + y: Copy one of the URLs to clipboard
The same functionality and more is available with the following command aliases (even when not using ptk):
getout: Copy the output of one of the last few commands to clipboard (without re-running the command - uses history)cpyclip: Copy one of the last few URLs that a command wrote to stdout to clipboard (Alt+y keybinding)cpyclip: Open one of the last few URLs that a command wrote to stdout in your browser (Alt+u keybinding)
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xontrib-histcpy-0.1.tar.gz.
File metadata
- Download URL: xontrib-histcpy-0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccc4557c33b8798ff745472d4dd8bef501f05e764400c939c0a75f71df035353
|
|
| MD5 |
2d5951b6466bb5ce7874ff66b470ee7d
|
|
| BLAKE2b-256 |
61b2439efd00ef14bedbcc8cf0b6f8056a8da65e288601ee5b21952958bd8bfa
|
File details
Details for the file xontrib_histcpy-0.1-py2.py3-none-any.whl.
File metadata
- Download URL: xontrib_histcpy-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb096aacdaf2efcb74b38f185bc67272e78bff93d0825807f2942555b062defe
|
|
| MD5 |
9cb2cacb999188dc0f147bc631334e61
|
|
| BLAKE2b-256 |
56ce315237e3cfd251c75035e493e97a84b5dbd37b831edebbabe408c2524416
|