-
Notifications
You must be signed in to change notification settings - Fork 7
/
usage.txt
31 lines (28 loc) · 1.46 KB
/
usage.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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`"