UNPKG

node-fzf

Version:

fzf ( junegunn/fzf ) inspired cli utility for node

32 lines (28 loc) 1.5 kB
Usage: nfzf [options] Options: -n, --normal, --exact Use normal/exact text matching instead of fuzzy matching. -h, --help Display help (this text) -q, --query Start search with the given query prefilled. -1, --select-1 If there is only one match for the initial query (--query), do not start interactive finder and automatically select the only match --keep-right Fit to show end of result text (toggled with ctrl-e) --height % of screen space to use to for results (default 6 rows) Keyboard: <ctrl-s> switch between search modes (fuzzy, normal/exact) down,<ctrl-j>,<ctrl-n> scroll down up,<ctrl-k>,<ctrl-p> scroll up <ctrl-d> scroll down by page size <ctrl-u> scroll up by page size <ctrl-a> jump to start of input <ctrl-e> jump to end of input (and toggles --keep-right) <esc>,<ctrl-q>,<ctrl-c> cancel <return>,<ctrl-m> trigger callback/promise with current selection and exit <ctrl-w> delete last word from input <ctrl-b> jump back a word <ctrl-f> jump forward a word <backspace><ctrl-h> delete last input character Examples: find . | nfzf cat log.txt | nfzf -n mpv "`find ~/Dropbox/music/ | nfzf --exact --keep-right`"