Skip to main content

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 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.

Metadata

Release files for xontrib-histcpy 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xontrib-histcpy 0.1
File Size Uploaded Provenance Actions
xontrib-histcpy-0.1.tar.gz 4.0 kB Without provenance Details for xontrib-histcpy-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xontrib-histcpy 0.1
File Interpreter ABI Platform Actions
xontrib_histcpy-0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for xontrib_histcpy-0.1-py2.py3-none-any.whl

Total release size: 20.6 kB

Release files / xontrib-histcpy-0.1.tar.gz

Download URL xontrib-histcpy-0.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ccc4557c33b8798ff745472d4dd8bef501f05e764400c939c0a75f71df035353
BLAKE2b-256 checksum
How to use checksums
61b2439efd00ef14bedbcc8cf0b6f8056a8da65e288601ee5b21952958bd8bfa
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / xontrib_histcpy-0.1-py2.py3-none-any.whl

Download URL xontrib_histcpy-0.1-py2.py3-none-any.whl
Size 16.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
fb096aacdaf2efcb74b38f185bc67272e78bff93d0825807f2942555b062defe
BLAKE2b-256 checksum
How to use checksums
56ce315237e3cfd251c75035e493e97a84b5dbd37b831edebbabe408c2524416
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for xontrib-histcpy 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page