#list #command-line #selection #interactive #menu #id #terminal

bin+lib ichoose

Interactive terminal list selection (lib+bin)

3 unstable releases

0.2.1 Jul 27, 2024
0.2.0 Jul 13, 2024
0.1.0 Jul 12, 2024

#2512 in Command line utilities

Download history 105/week @ 2024-07-22 28/week @ 2024-07-29 26/week @ 2024-09-16 20/week @ 2024-09-23 4/week @ 2024-09-30 1/week @ 2024-10-07

116 downloads per month
Used in iforgor

MIT/Apache

16KB
319 lines

ichoose

ichoose crate ichoose documentation

This crate manages the interactive menu with customizable features, which allows you to use it in your Rust applications or scripts. It supports customizing the lists being showed and enabling multi-selection.

The binary version for scripts allow performing a selection amongst a list provided in the standard input, formatted as one entry per line as ID @ NAME (if @ is not found then the line will be used both as the id and name). Once entries are selected it will returns only the ID, one per line. It can be used in piped command where grep would be used, but instead allows the user to perform the selection.

Multi-selection can be enabled with flag --multi, while title and bottom text can be customized using --title <TITLE> and --text <TEXT>.

Dependencies

~7–13MB
~139K SLoC