|PICK(1)||General Commands Manual||PICK(1)|
pick — fuzzy
pick allows users to select from a set of
choices using an ncurses(3X) interface with fuzzy search
pick accepts a list of choices as input
and produces the selected choice as output.
pick supports these options and
- output a help message and exit.
- output the version and exit.
- supply an initial search query.
- read and display descriptions.
-doption is supplied, input lines will be split into two parts by the last occurence of
IFS. Both parts will be displayed but only the first part will be used when searching.
- output description of selected on exit.
- enable the use of the alternate screen terminal feature.
- disable the use of the alternate screen terminal feature.
interface is operated with the following keys:
Up/Down or Ctrl-P/Ctrl-N
- Select between choices matching the current search query.
- Output the currently selected choice and exit.
- Printable characters are added to the search query input field and will refine the current search query.
Left/Right or Ctrl-B/Ctrl-F
- Move the cursor left and right in the search query input field.
- Move the cursor to the beginning of the line in the search query input field.
- Move the cursor to the end of the line in the search query input field.
- Delete one character to the left of the cursor in the search query input field.
- Delete the character under the cursor in the search query input field.
- Delete to the beginning of the closest word to the left in the search query input field.
- Delete to the beginning of the line in the search query input field.
- Delete to the end of the line in the search query input field.
The following environment variables will affect the execution of
pick can be used to select anything and is
very effective when combined with utilities like
Select a file in the current directory to open using xdg-open(1):
find -type f | pick | xargs xdg-open
Select a man page to display with man(1):
apropos -l . | fltr | pick -do | tac | xargs man
|August 17, 2014||Debian|