From 3cdf71801e5abebeadce43a25eac461c033e8ede Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 21 May 2015 01:51:24 +0900 Subject: [PATCH] Update --help --- man/man1/fzf.1 | 56 +++++++++++++++++++++++++------------------------- src/options.go | 4 ++-- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index 86f07de..1a9720b 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 d0014a7..97efaa7 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