Crates.io | selector |
lib.rs | selector |
version | 1.2.0 |
source | src |
created_at | 2021-09-23 12:15:20.013266 |
updated_at | 2021-12-25 14:28:04.87222 |
description | Simple terminal application which lets the user select between its input arguments and prints out the the selected choice. |
homepage | https://github.com/MHmorgan/selector |
repository | https://github.com/MHmorgan/selector |
max_upload_size | |
id | 455324 |
size | 38,844 |
Simple terminal application which lets the user select between its input arguments and prints out the the selected choice.
The usage is simple and intuitive: use the arrow keys to move between values; press enter to select a value; type anything to filter the values; press backspace to remove the last filter character, or delete to clear the entire filter text. Whitespaces in the filter text are ignored and treated as separators between substrings, all of which must match a value for it to pass the filter.
Intended to be used in shell functions and aliases, such as:
alias goto='cd $(selector $HOME/*)'
# or
function goto {
local DIR=$(selector $HOME/*)/$1
cd $DIR
ls
}
cargo install selector