Skip to content

Grazen0/ppick

Repository files navigation

ppick · Tests

A simple, no-fuss CLI picker menu.

asciicast

It matches entries by prefix (hence the name, as in "prefix-pick") and exits the program as soon as there is only one selectable entry left.

Usage

Entries (newline-separated) are piped in via stdin, and the selected entry is piped via stdout. For example:

result=$(printf "foo\nbar\nbaz" | ppick)

Use ppick --help to find more about the possible flags.

Features

  • Unicode support (probably works already, but needs testing).
  • Allows showing the current query.
  • Mouse support.

Development

If you use Nix, you already know what to do (wink).

If not, just use Cargo. Everything should work out of the box.

Credits

  • mini.starter - main inspiration.
  • fzf - reference for program behavior.
  • yazi - reference for man pages and shell completion generation.

About

A simple, no-fuss CLI picker menu.

Topics

Resources

License

Stars

Watchers

Forks

Contributors