You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/hugovk/linkotron
cd linkotron
python3 -m pip install .
Usage
Run linkotron or linky, they do the same thing.
$ linky --helpusage: linky [-h] [-V] [--no-copy] [-m | -r | -t] inputlinkotron: CLI to format GitHub links in a shorter format.positional arguments: input text containing GitHub links to shortenoptions: -h, --help show this help message and exit -V, --version show program's version number and exit --no-copy do not copy output to clipboardformatters: -m, --md, --markdown output in Markdown -r, --rst, --restructuredtext output in reStructuredText -t, --term, --terminal output in OSC 8 for terminal
Linkify a repo
$ linky https://github.com/python/pepsCopied! python/peps
Linkify an issue
$ linky https://github.com/python/peps/issues/1012Copied! python/peps#1012
Linkify a pull request
$ linky https://github.com/python/peps/pull/2399Copied! python/peps#2399
Linkify a commit
$ linky https://github.com/hugovk/cpython/commit/28b23555030d58fdb52b74a547cc621c49690de0Copied! hugovk/cpython#28b2355
Linkify a comment
$ linky https://github.com/python/peps/pull/2399#issuecomment-1063409480Copied! python/peps#2399 (comment)
Formatting
Markdown
$ linky --md https://github.com/python/peps/pull/2399Copied! [python/peps#2399](https://github.com/python/peps/pull/2399)
reStructuredText
$ linky --rst https://github.com/python/peps/pull/2399Copied! `python/peps#2399 <https://github.com/python/peps/pull/2399>`__
OSC 8 for terminal emulators
$ linky --terminal https://github.com/python/peps/pull/2399Copied! \033]8;;https://github.com/python/peps/pull/2399\033\\python/peps#2399\033]8;;\033\\