Skip to content

madbook/seline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

seline

Tool for interactively selecting input lines

se(lect) line(s)

seline is a command line tool for interactively selecting one (or more) lines from stdin and passing them to stdout. It is intended to be composed with other tools.

Installation

Via npm

npm install -g seline

Via yarn

yarn global add seline

Examples

Here are some example applications that I have been using

Select and delete multiple git branches

$ git branch | seline -m | xargs git branch -D

Checking out a recent git branch.

$ git branch --sort=-committerdate | grep -v '*' | seline | xargs git checkout

Select a branch, then select commits to cherry-pick

git branch | seline | xargs git log --oneline | seline -m | awk '{print $1}' | tail -r | xargs git cherry-pick

About

Tool for interactively selecting input lines

Resources

Stars

Watchers

Forks

Packages

No packages published