Skip to main content

coating creates a clickable pane, based on the standard input.

or more precise:

coating reads lines from STDIN, allowing you to interactively select a value, which is then returned to STDOUT.

example_interaction

  • coating enables interactive filters in piped commands
  • a unix-philosophy experiment
  • brings the mouse to the cli :)
  • a fzf inspired tool

But, what does it do?

  • Every non-white space becomes a token
  • Every token will be possible element for selection
  • After a selection, the token will be returned through standard output

Usage

Here are some examples, after the installation step

This will open the selected file/directory of the current directory in vim:

vim $(ls -C | coating)

Another possible usage is this:

ls -C | coating | xargs xdg-open

This opens the selected file with it's standard application.

For more ways to use coating check out the examples directory.

Html Parser

  • when run with the --tags flag, coating will look for HTML tags (excluding semantics) and makes tag bodies clickable.
  • this function allows for a predefinition of clickable elements, in contrast to the default case, where every non-whitespace character is clickable
  • if the tags are nested, only the highest level of tags is clickable
  • in the case ther are no tags in the text, every word will be tokenized and clickable.

Installation

You can install coating from the PyPI repositories using the following command:

pip install coating

or check the realease page for a manual installation.

on ubuntu first install ncurses-term:

apt install ncurses-term

Issues

On version with a python version lower than 3.10 the curses.BUTTON5 constant is not supported.

Please report possible issues here.

License

This project is licensed under the GPLv3 License.


Made with love by 🦝

Metadata

Release files for coating 0.0.2

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

Source distribution (sdist)

Source distribution for coating 0.0.2
File Size Uploaded
coating-0.0.2.tar.gz 20.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coating 0.0.2
File Interpreter ABI Platform
coating-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 40.3 kB

Release files / coating-0.0.2.tar.gz

Download URL coating-0.0.2.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ad1b8bf7cbbad563dd282504f7f55a7b5c3a480028c6b51156646b4ec4b4a1a5
BLAKE2b-256 checksum
How to use checksums
fa7556256fe199d942d9115cb96c75c5d461bfe6ccb01a173f7b11628b609a0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / coating-0.0.2-py3-none-any.whl

Download URL coating-0.0.2-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0c7fb94f9ba784640c662c47dc7a2844045657529b529c0afa2b41eaa5035bd
BLAKE2b-256 checksum
How to use checksums
90ea9d2801030a60cf58dd1e7583aca8ec4664df03de45944c3ec403eea3a739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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