Skip to content

vozhyk-/ncurses-selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ncurses-selection

An ncurses menu for selecting a subset of given lines.

Reads newline-separated choices from standard input, allows the user to choose a subset of them, and writes what's selected to standard output.

Keys

  • arrow keys — move the cursor
  • Space — (un)select current choice
  • Return or q — accept the selection and quit

Example usage

Select files from ~ and delete them

ls -1d ~/* | ./sel | xargs -d$'\n' rm

About

An ncurses menu for selecting a subset of given lines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published