logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fzy - A fuzzy text selector menu for the terminal.

Author

       John Hawthorn <john.hawthorn@gmail.com>

fzy 1.0                                            2018-09-23                                             FZY(1)

Description

fzyisafuzzytextselector/filefinderfortheterminalusingasearch similar to that of TextMate or
       CmdT.

       fzy reads a list of newline-separated items from stdin to be displayed as a menu in the  terminal.   Upon
       pressing ENTER, the currently selected item is printed to stdout.

       Entering  text  narrows  the items using fuzzy matching. Results are sorted using heuristics for the best
       match.

Keys

ENTER  Print the selected item to stdout and exit

       Ctrl+c,Esc
              Exit with status 1, without making a selection.

       UpArrow,Ctrl+p
              Select the previous item

       DownArrow,Ctrl+n
              Select the next item

       Tab    Replace the current search string with the selected item

       Backspace,Ctrl+h
              Delete the character before the cursor

       Ctrl+w Delete the word before the cursor

       Ctrl+u Delete the entire line

Name

       fzy - A fuzzy text selector menu for the terminal.

Options

-l, --lines=LINES
              How many lines of items to display. If unspecified, defaults to 10 lines.

       -p, --prompt=PROMPT
              Input prompt (default: '> ')

       -s, --show-scores
              Show the scores for each item.

       -t, --tty=TTY
              Use TTY instead of the default tty device (/dev/tty).

       -q, --query=QUERY
              Use QUERY as the initial search query.

       -e, --show-matches=QUERY
              Non-interactive mode. Print the matches in sorted order for QUERY to stdout.

       -h, --help
              Usage help.

       -v, --version
              Usage help.

Synopsis

fzy[OPTION]...

Usage Examples

ls|fzy
              Present a menu of items in the current directory

       ls|fzy-l25
              Same as above, but show 25 lines of items

       vi$(find-typef|fzy)
              List files under the current directory and open the one selected in vi.

       cd$(find-typed|fzy)
              Present all directories under current path, and change to the one selected.

       psaux|fzy|awk'{print$2}'|xargskill
              List running processes, kill the selected process

       gitcheckout$(gitbranch|cut-c3-|fzy)
              Same as above, but switching git branches.

See Also