Git Product home page Git Product logo

lineselect's Introduction

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

  • Interactive Selection: Pause the pipeline's execution to manually select specific lines from the input stream.
  • Seamless Integration: Easily integrate the Interactive Line Selector into your existing command-line pipelines.
  • Optimized Workflow: Curate data on-the-fly for more accurate and meaningful results.

Usage

Incorporate the Interactive Line Selector into your pipeline:

<command producing input> | lineselect | <subsequent command>

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:

ls | lineselect | xargs rm

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:

  • Clap - A full featured, fast Command Line Argument Parser for Rust.
  • Dialoguer - Rust utility library for nice command line prompts and similar things.
  • Colored - Coloring terminal so simple you already know how to do it!

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.

lineselect's People

Contributors

urbanogilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lineselect's Issues

shortcut to select line and move down

to select larger area of text, it will be better to have option to select the line and move down rather than moving to each line and selecting it. is there any option to do so?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.