summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-05-21 01:51:24 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-05-21 01:51:24 +0900
commit3cdf71801e5abebeadce43a25eac461c033e8ede (patch)
tree5097d2548c964885f40077ab315bbac4ef8c3105
parent801cf9ac6241dc4a01a5f4ba87fcc9746c15a20e (diff)
Update --help
-rw-r--r--man/man1/fzf.156
-rw-r--r--src/options.go4
2 files changed, 30 insertions, 30 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index 86f07deb..1a9720be 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -121,34 +121,6 @@ Display finder info inline with the query
.TP
.BI "--prompt=" "STR"
Input prompt (default: '> ')
-.SS Scripting
-.TP
-.BI "-q, --query=" "STR"
-Start the finder with the given query
-.TP
-.B "-1, --select-1"
-Automatically select the only match
-.TP
-.B "-0, --exit-0"
-Exit immediately when there's no match
-.TP
-.BI "-f, --filter=" "STR"
-Filter mode. Do not start interactive finder. When used with \fB--no-sort\fR,
-fzf becomes a fuzzy-version of grep.
-.TP
-.B "--print-query"
-Print query as the first line
-.TP
-.BI "--expect=" "KEY[,..]"
-Comma-separated list of keys (\fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR,
-or any single character) that can be used to complete fzf in addition to the
-default enter key. When this option is set, fzf will print the name of the key
-pressed as the first line of its output (or as the second line if
-\fB--print-query\fR is also used). The line will be empty if fzf is completed
-with the default enter key.
-.RS
-e.g. \fBfzf --expect=ctrl-v,ctrl-t,alt-s,f1,f2,~,@\fR
-.RE
.TP
.BI "--toggle-sort=" "KEY"
Key to toggle sort (\fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR,
@@ -194,6 +166,34 @@ e.g. \fBfzf --bind=ctrl-j:accept,ctrl-k:kill-line\fR
up
yank
.RE
+.SS Scripting
+.TP
+.BI "-q, --query=" "STR"
+Start the finder with the given query
+.TP
+.B "-1, --select-1"
+Automatically select the only match
+.TP
+.B "-0, --exit-0"
+Exit immediately when there's no match
+.TP
+.BI "-f, --filter=" "STR"
+Filter mode. Do not start interactive finder. When used with \fB--no-sort\fR,
+fzf becomes a fuzzy-version of grep.
+.TP
+.B "--print-query"
+Print query as the first line
+.TP
+.BI "--expect=" "KEY[,..]"
+Comma-separated list of keys (\fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR,
+or any single character) that can be used to complete fzf in addition to the
+default enter key. When this option is set, fzf will print the name of the key
+pressed as the first line of its output (or as the second line if
+\fB--print-query\fR is also used). The line will be empty if fzf is completed
+with the default enter key.
+.RS
+e.g. \fBfzf --expect=ctrl-v,ctrl-t,alt-s,f1,f2,~,@\fR
+.RE
.TP
.B "--sync"
Synchronous search for multi-staged filtering. If specified, fzf will launch
diff --git a/src/options.go b/src/options.go
index d0014a7b..97efaa7c 100644
--- a/src/options.go
+++ b/src/options.go
@@ -42,6 +42,8 @@ const usage = `usage: fzf [options]
--no-hscroll Disable horizontal scroll
--inline-info Display finder info inline with the query
--prompt=STR Input prompt (default: '> ')
+ --toggle-sort=KEY Key to toggle sort
+ --bind=KEYBINDS Custom key bindings. Refer to the man page.
Scripting
-q, --query=STR Start the finder with the given query
@@ -50,8 +52,6 @@ const usage = `usage: fzf [options]
-f, --filter=STR Filter mode. Do not start interactive finder.
--print-query Print query as the first line
--expect=KEYS Comma-separated list of keys to complete fzf
- --toggle-sort=KEY Key to toggle sort
- --bind=KEYBINDS Custom key bindings. Refer to the man page.
--sync Synchronous search for multi-staged filtering
Environment variables