Home

Awesome

Line Select

CI Crates.io CI

Elevate your command-line pipelines using the Interactive Line Selector – a potent utility enabling interactive line selection from stdin. Seamlessly integrate, pause, select, and refine your pipeline, enhancing data processing precision.

Features

Usage

Incorporate the Interactive Line Selector into your pipeline:

<pre> &lt;command producing input&gt; | <b>lineselect</b> | &lt;subsequent command&gt; </pre>

Use arrow keys to navigate, press Space to select/deselect lines, and press Enter to proceed with the selected lines.

Example

Imagine you have a list of files in a directory and you want to selectively remove them using rm. Instead of using a complex find command, you can utilize the Interactive Line Selector to streamline the process:

<pre> ls | <b>lineselect</b> | xargs rm </pre>

Example

Installation

Cargo

cargo install lineselect

Debian

wget https://github.com/urbanogilson/lineselect/releases/download/v0.1.0/lineselect_0.1.0_amd64.deb
apt install ./lineselect_0.1.0_amd64.deb

Contributions

Contributions are welcome! If you have ideas for improvements or new features, please feel free to submit a pull request.

Acknowledgments

This project builds upon the fantastic work of the following projects:

Previous Implementation

This idea has been implemented before by chfritz/lineselect using JavaScript. Our project aims to provide an option in Rust with a single binary.

License

This project is licensed under the MIT License - see the LICENSE file for details.