2015-03-25 14:06:31 -04:00
|
|
|
.ig
|
|
|
|
The MIT License (MIT)
|
|
|
|
|
2016-01-12 12:16:26 -05:00
|
|
|
Copyright (c) 2016 Junegunn Choi
|
2015-03-25 14:06:31 -04:00
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
..
|
2016-08-20 16:00:27 -04:00
|
|
|
.TH fzf 1 "Aug 2016" "fzf 0.13.5" "fzf - a command-line fuzzy finder"
|
2015-03-25 14:06:31 -04:00
|
|
|
|
|
|
|
.SH NAME
|
|
|
|
fzf - a command-line fuzzy finder
|
|
|
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
fzf [options]
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
fzf is a general-purpose command-line fuzzy finder.
|
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
.SS Search mode
|
|
|
|
.TP
|
|
|
|
.B "-x, --extended"
|
2015-11-03 08:49:32 -05:00
|
|
|
Extended-search mode. Since 0.10.9, this is enabled by default. You can disable
|
|
|
|
it with \fB+x\fR or \fB--no-extended\fR.
|
2015-03-25 14:06:31 -04:00
|
|
|
.TP
|
2015-11-03 08:49:32 -05:00
|
|
|
.B "-e, --exact"
|
|
|
|
Enable exact-match
|
2015-03-25 14:06:31 -04:00
|
|
|
.TP
|
|
|
|
.B "-i"
|
|
|
|
Case-insensitive match (default: smart-case match)
|
|
|
|
.TP
|
|
|
|
.B "+i"
|
|
|
|
Case-sensitive match
|
|
|
|
.TP
|
|
|
|
.BI "-n, --nth=" "N[,..]"
|
|
|
|
Comma-separated list of field index expressions for limiting search scope.
|
2016-06-11 13:15:11 -04:00
|
|
|
See \fBFIELD INDEX EXPRESSION\fR for the details.
|
2015-03-25 14:06:31 -04:00
|
|
|
.TP
|
|
|
|
.BI "--with-nth=" "N[,..]"
|
2016-06-11 13:15:11 -04:00
|
|
|
Transform the presentation of each line using field index expressions
|
2015-03-25 14:06:31 -04:00
|
|
|
.TP
|
|
|
|
.BI "-d, --delimiter=" "STR"
|
2015-06-21 04:40:36 -04:00
|
|
|
Field delimiter regex for \fB--nth\fR and \fB--with-nth\fR (default: AWK-style)
|
2015-03-25 14:06:31 -04:00
|
|
|
.SS Search result
|
|
|
|
.TP
|
|
|
|
.B "+s, --no-sort"
|
|
|
|
Do not sort the result
|
|
|
|
.TP
|
|
|
|
.B "--tac"
|
|
|
|
Reverse the order of the input
|
2016-06-11 13:15:11 -04:00
|
|
|
|
2015-03-25 14:06:31 -04:00
|
|
|
.RS
|
|
|
|
e.g. \fBhistory | fzf --tac --no-sort\fR
|
|
|
|
.RE
|
2015-04-16 01:19:28 -04:00
|
|
|
.TP
|
2016-01-12 13:07:42 -05:00
|
|
|
.BI "--tiebreak=" "CRI[,..]"
|
|
|
|
Comma-separated list of sort criteria to apply when the scores are tied.
|
2015-04-16 01:19:28 -04:00
|
|
|
.br
|
2016-02-11 17:46:10 -05:00
|
|
|
|
2015-04-16 01:19:28 -04:00
|
|
|
.br
|
2016-06-11 13:15:11 -04:00
|
|
|
.BR length " Prefers line with shorter length"
|
2015-04-16 01:19:28 -04:00
|
|
|
.br
|
2016-06-11 13:15:11 -04:00
|
|
|
.BR begin " Prefers line with matched substring closer to the beginning"
|
2015-04-16 01:19:28 -04:00
|
|
|
.br
|
2016-06-11 13:15:11 -04:00
|
|
|
.BR end " Prefers line with matched substring closer to the end"
|
2015-04-16 01:19:28 -04:00
|
|
|
.br
|
2016-06-11 13:15:11 -04:00
|
|
|
.BR index " Prefers line that appeared earlier in the input stream"
|
2015-04-16 01:19:28 -04:00
|
|
|
.br
|
2016-02-11 17:46:10 -05:00
|
|
|
|
2016-01-12 13:07:42 -05:00
|
|
|
.br
|
|
|
|
- Each criterion should appear only once in the list
|
|
|
|
.br
|
|
|
|
- \fBindex\fR is only allowed at the end of the list
|
|
|
|
.br
|
|
|
|
- \fBindex\fR is implicitly appended to the list when not specified
|
|
|
|
.br
|
|
|
|
- Default is \fBlength\fR (or equivalently \fBlength\fR,index)
|
2016-06-11 13:15:11 -04:00
|
|
|
.br
|
|
|
|
- If \fBend\fR is found in the list, fzf will scan each line backwards
|
2015-03-25 14:06:31 -04:00
|
|
|
.SS Interface
|
|
|
|
.TP
|
|
|
|
.B "-m, --multi"
|
|
|
|
Enable multi-select with tab/shift-tab
|
|
|
|
.TP
|
|
|
|
.B "--no-mouse"
|
|
|
|
Disable mouse
|
|
|
|
.TP
|
2016-06-11 13:15:11 -04:00
|
|
|
.BI "--bind=" "KEYBINDS"
|
|
|
|
Comma-separated list of custom key bindings. See \fBKEY BINDINGS\fR for the
|
|
|
|
details.
|
2015-03-25 14:06:31 -04:00
|
|
|
.TP
|
2016-06-11 13:15:11 -04:00
|
|
|
.B "--cycle"
|
|
|
|
Enable cyclic scroll
|
|
|
|
.TP
|
|
|
|
.B "--no-hscroll"
|
|
|
|
Disable horizontal scroll
|
|
|
|
.TP
|
|
|
|
.BI "--hscroll-off=" "COL"
|
|
|
|
Number of screen columns to keep to the right of the highlighted substring
|
|
|
|
(default: 10). Setting it to a large value will cause the text to be positioned
|
|
|
|
on the center of the screen.
|
|
|
|
.TP
|
|
|
|
.BI "--jump-labels=" "CHARS"
|
|
|
|
Label characters for \fBjump\fR and \fBjump-accept\fR
|
|
|
|
.SS Layout
|
2015-03-25 14:06:31 -04:00
|
|
|
.TP
|
|
|
|
.B "--reverse"
|
|
|
|
Reverse orientation
|
|
|
|
.TP
|
2015-07-26 10:02:04 -04:00
|
|
|
.BI "--margin=" MARGIN
|
|
|
|
Comma-separated expression for margins around the finder.
|
|
|
|
.br
|
2016-02-11 17:46:10 -05:00
|
|
|
|
2015-07-26 10:02:04 -04:00
|
|
|
.br
|
|
|
|
.RS
|
|
|
|
.BR TRBL " Same margin for top, right, bottom, and left"
|
|
|
|
.br
|
|
|
|
.BR TB,RL " Vertical, horizontal margin"
|
|
|
|
.br
|
|
|
|
.BR T,RL,B " Top, horizontal, bottom margin"
|
|
|
|
.br
|
|
|
|
.BR T,R,B,L " Top, right, bottom, left margin"
|
|
|
|
.br
|
2016-02-11 17:46:10 -05:00
|
|
|
|
2015-07-26 10:02:04 -04:00
|
|
|
.br
|
|
|
|
Each part can be given in absolute number or in percentage relative to the
|
|
|
|
terminal size with \fB%\fR suffix.
|
|
|
|
.br
|
2016-02-11 17:46:10 -05:00
|
|
|
|
2015-07-26 10:02:04 -04:00
|
|
|
.br
|
|
|
|
e.g. \fBfzf --margin 10%\fR
|
|
|
|
\fBfzf --margin 1,5%\fR
|
|
|
|
.RE
|
|
|
|
.TP
|
2015-04-21 10:50:53 -04:00
|
|
|
.B "--inline-info"
|
|
|
|
Display finder info inline with the query
|
|
|
|
.TP
|
2015-03-25 14:06:31 -04:00
|
|
|
.BI "--prompt=" "STR"
|
|
|
|
Input prompt (default: '> ')
|
2015-03-28 13:59:32 -04:00
|
|
|
.TP
|
2016-06-11 13:15:11 -04:00
|
|
|
.BI "--header=" "STR"
|
|
|
|
The given string will be printed as the sticky header. The lines are displayed
|
|
|
|
in the given order from top to bottom regardless of \fB--reverse\fR option, and
|
|
|
|
are not affected by \fB--with-nth\fR. ANSI color codes are processed even when
|
|
|
|
\fB--ansi\fR is not set.
|
2015-03-31 09:05:02 -04:00
|
|
|
.TP
|
2016-06-11 13:15:11 -04:00
|
|
|
.BI "--header-lines=" "N"
|
|
|
|
The first N lines of the input are treated as the sticky header. When
|
|
|
|
\fB--with-nth\fR is set, the lines are transformed just like the other
|
|
|
|
lines that follow.
|
|
|
|
.SS Display
|
|
|
|
.TP
|
|
|
|
.B "--ansi"
|
|
|
|
Enable processing of ANSI color codes
|
|
|
|
.TP
|
|
|
|
.BI "--tabstop=" SPACES
|
|
|
|
Number of spaces for a tab character (default: 8)
|
|
|
|
.TP
|
|
|
|
.BI "--color=" "[BASE_SCHEME][,COLOR:ANSI]"
|
|
|
|
Color configuration. The name of the base color scheme is followed by custom
|
|
|
|
color mappings. Ansi color code of -1 denotes terminal default
|
|
|
|
foreground/background color.
|
2015-06-21 04:40:36 -04:00
|
|
|
|
|
|
|
.RS
|
2016-06-11 13:15:11 -04:00
|
|
|
e.g. \fBfzf --color=bg+:24\fR
|
|
|
|
\fBfzf --color=light,fg:232,bg:255,bg+:116,info:27\fR
|
2015-06-21 04:40:36 -04:00
|
|
|
.RE
|
|
|
|
|
|
|
|
.RS
|
2016-06-11 13:15:11 -04:00
|
|
|
.B BASE SCHEME:
|
|
|
|
(default: dark on 256-color terminal, otherwise 16)
|
2015-11-08 11:42:01 -05:00
|
|
|
|
2016-06-11 13:15:11 -04:00
|
|
|
\fBdark \fRColor scheme for dark 256-color terminal
|
|
|
|
\fBlight \fRColor scheme for light 256-color terminal
|
|
|
|
\fB16 \fRColor scheme for 16-color terminal
|
|
|
|
\fBbw \fRNo colors
|
2015-11-08 11:42:01 -05:00
|
|
|
|
2016-06-11 13:15:11 -04:00
|
|
|
.B COLOR:
|
|
|
|
\fBfg \fRText
|
|
|
|
\fBbg \fRBackground
|
|
|
|
\fBhl \fRHighlighted substrings
|
|
|
|
\fBfg+ \fRText (current line)
|
|
|
|
\fBbg+ \fRBackground (current line)
|
|
|
|
\fBhl+ \fRHighlighted substrings (current line)
|
|
|
|
\fBinfo \fRInfo
|
|
|
|
\fBprompt \fRPrompt
|
|
|
|
\fBpointer \fRPointer to the current line
|
|
|
|
\fBmarker \fRMulti-select marker
|
|
|
|
\fBspinner \fRStreaming input indicator
|
|
|
|
\fBheader \fRHeader
|
2015-06-21 04:40:36 -04:00
|
|
|
.RE
|
|
|
|
.TP
|
2016-06-11 13:15:11 -04:00
|
|
|
.B "--black"
|
|
|
|
Use black background
|
|
|
|
.SS History
|
|
|
|
.TP
|
2015-06-21 04:40:36 -04:00
|
|
|
.BI "--history=" "HISTORY_FILE"
|
|
|
|
Load search history from the specified file and update the file on completion.
|
|
|
|
When enabled, \fBCTRL-N\fR and \fBCTRL-P\fR are automatically remapped to
|
|
|
|
\fBnext-history\fR and \fBprevious-history\fR.
|
|
|
|
.TP
|
|
|
|
.BI "--history-size=" "N"
|
|
|
|
Maximum number of entries in the history file (default: 1000). The file is
|
|
|
|
automatically truncated when the number of the lines exceeds the value.
|
2016-06-11 13:15:11 -04:00
|
|
|
.SS Preview
|
2015-07-21 12:12:50 -04:00
|
|
|
.TP
|
2016-06-11 13:15:11 -04:00
|
|
|
.BI "--preview=" "COMMAND"
|
|
|
|
Execute the given command for the current line and display the result on the
|
|
|
|
preview window. \fB{}\fR is the placeholder for the quoted string of the
|
|
|
|
current line.
|
|
|
|
|
|
|
|
.RS
|
|
|
|
e.g. \fBfzf --preview="head -$LINES {}"\fR
|
|
|
|
.RE
|
2015-07-21 14:21:20 -04:00
|
|
|
.TP
|
2016-06-11 13:15:11 -04:00
|
|
|
.BI "--preview-window=" "[POSITION][:SIZE[%]][:hidden]"
|
|
|
|
Determine the layout of the preview window. If the argument ends with
|
|
|
|
\fB:hidden\fR, the preview window will be hidden by default until
|
|
|
|
\fBtoggle-preview\fR action is triggered.
|
|
|
|
|
|
|
|
.RS
|
|
|
|
.B POSITION: (default: right)
|
|
|
|
\fBup
|
|
|
|
\fBdown
|
|
|
|
\fBleft
|
|
|
|
\fBright
|
|
|
|
.RE
|
|
|
|
|
|
|
|
.RS
|
|
|
|
e.g. \fBfzf --preview="head {}" --preview-window=up:30%\fR
|
|
|
|
\fBfzf --preview="file {}" --preview-window=down:1\fR
|
|
|
|
.RE
|
2015-05-20 12:51:24 -04:00
|
|
|
.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[,..]"
|
2015-06-21 04:40:36 -04:00
|
|
|
Comma-separated list of keys 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
|
2015-05-20 12:51:24 -04:00
|
|
|
\fB--print-query\fR is also used). The line will be empty if fzf is completed
|
|
|
|
with the default enter key.
|
2016-06-11 13:15:11 -04:00
|
|
|
|
2015-05-20 12:51:24 -04:00
|
|
|
.RS
|
|
|
|
e.g. \fBfzf --expect=ctrl-v,ctrl-t,alt-s,f1,f2,~,@\fR
|
|
|
|
.RE
|
2015-05-20 08:25:15 -04:00
|
|
|
.TP
|
2015-03-25 14:06:31 -04:00
|
|
|
.B "--sync"
|
2015-03-28 15:08:37 -04:00
|
|
|
Synchronous search for multi-staged filtering. If specified, fzf will launch
|
|
|
|
ncurses finder only after the input stream is complete.
|
2016-06-11 13:15:11 -04:00
|
|
|
|
2015-03-25 14:06:31 -04:00
|
|
|
.RS
|
|
|
|
e.g. \fBfzf --multi | fzf --sync\fR
|
|
|
|
.RE
|
|
|
|
|
2016-06-11 13:15:11 -04:00
|
|
|
.SH ENVIRONMENT VARIABLES
|
2015-03-25 14:06:31 -04:00
|
|
|
.TP
|
|
|
|
.B FZF_DEFAULT_COMMAND
|
|
|
|
Default command to use when input is tty
|
|
|
|
.TP
|
|
|
|
.B FZF_DEFAULT_OPTS
|
2015-06-21 12:35:36 -04:00
|
|
|
Default options. e.g. \fBexport FZF_DEFAULT_OPTS="--extended --cycle"\fR
|
2015-03-25 14:06:31 -04:00
|
|
|
|
|
|
|
.SH EXIT STATUS
|
|
|
|
.BR 0 " Normal exit"
|
|
|
|
.br
|
2016-02-26 09:36:07 -05:00
|
|
|
.BR 1 " No match"
|
|
|
|
.br
|
|
|
|
.BR 2 " Error"
|
|
|
|
.br
|
|
|
|
.BR 130 " Interrupted with \fBCTRL-C\fR or \fBESC\fR"
|
2015-03-25 14:06:31 -04:00
|
|
|
|
|
|
|
.SH FIELD INDEX EXPRESSION
|
|
|
|
|
|
|
|
A field index expression can be a non-zero integer or a range expression
|
2015-06-21 04:40:36 -04:00
|
|
|
([BEGIN]..[END]). \fB--nth\fR and \fB--with-nth\fR take a comma-separated list
|
2015-03-25 14:06:31 -04:00
|
|
|
of field index expressions.
|
|
|
|
|
|
|
|
.SS Examples
|
|
|
|
.BR 1 " The 1st field"
|
|
|
|
.br
|
|
|
|
.BR 2 " The 2nd field"
|
|
|
|
.br
|
|
|
|
.BR -1 " The last field"
|
|
|
|
.br
|
|
|
|
.BR -2 " The 2nd to last field"
|
|
|
|
.br
|
|
|
|
.BR 3..5 " From the 3rd field to the 5th field"
|
|
|
|
.br
|
|
|
|
.BR 2.. " From the 2nd field to the last field"
|
|
|
|
.br
|
|
|
|
.BR ..-3 " From the 1st field to the 3rd to the last field"
|
|
|
|
.br
|
|
|
|
.BR .. " All the fields"
|
|
|
|
.br
|
|
|
|
|
|
|
|
.SH EXTENDED SEARCH MODE
|
|
|
|
|
2015-11-03 08:49:32 -05:00
|
|
|
Unless specified otherwise, fzf will start in "extended-search mode". In this
|
|
|
|
mode, you can specify multiple patterns delimited by spaces, such as: \fB'wild
|
|
|
|
^music .mp3$ sbtrkt !rmx\fR
|
2015-03-25 14:06:31 -04:00
|
|
|
|
|
|
|
.SS Exact-match (quoted)
|
2015-09-12 00:31:07 -04:00
|
|
|
A term that is prefixed by a single-quote character (\fB'\fR) is interpreted as
|
|
|
|
an "exact-match" (or "non-fuzzy") term. fzf will search for the exact
|
|
|
|
occurrences of the string.
|
2015-03-25 14:06:31 -04:00
|
|
|
|
|
|
|
.SS Anchored-match
|
2015-09-12 00:31:07 -04:00
|
|
|
A term can be prefixed by \fB^\fR, or suffixed by \fB$\fR to become an
|
2016-06-11 13:15:11 -04:00
|
|
|
anchored-match term. Then fzf will search for the lines that start with or end
|
2015-09-12 00:31:07 -04:00
|
|
|
with the given string. An anchored-match term is also an exact-match term.
|
2015-03-25 14:06:31 -04:00
|
|
|
|
|
|
|
.SS Negation
|
2016-06-11 13:15:11 -04:00
|
|
|
If a term is prefixed by \fB!\fR, fzf will exclude the lines that satisfy the
|
2015-09-12 00:31:07 -04:00
|
|
|
term from the result.
|
2015-03-25 14:06:31 -04:00
|
|
|
|
2015-11-03 08:49:32 -05:00
|
|
|
.SS Exact-match by default
|
2015-09-12 00:31:07 -04:00
|
|
|
If you don't prefer fuzzy matching and do not wish to "quote" (prefixing with
|
2015-11-03 08:49:32 -05:00
|
|
|
\fB'\fR) every word, start fzf with \fB-e\fR or \fB--exact\fR option. Note that
|
|
|
|
when \fB--exact\fR is set, \fB'\fR-prefix "unquotes" the term.
|
2015-03-25 14:06:31 -04:00
|
|
|
|
2015-11-08 10:58:20 -05:00
|
|
|
.SS OR operator
|
|
|
|
A single bar character term acts as an OR operator. For example, the following
|
|
|
|
query matches entries that start with \fBcore\fR and end with either \fBgo\fR,
|
|
|
|
\fBrb\fR, or \fBpy\fR.
|
|
|
|
|
|
|
|
e.g. \fB^core go$ | rb$ | py$\fR
|
|
|
|
|
2016-06-11 13:15:11 -04:00
|
|
|
.SH KEY BINDINGS
|
|
|
|
You can customize key bindings of fzf with \fB--bind\fR option which takes
|
|
|
|
a comma-separated list of key binding expressions. Each key binding expression
|
|
|
|
follows the following format: \fBKEY:ACTION\fR
|
|
|
|
|
|
|
|
e.g. \fBfzf --bind=ctrl-j:accept,ctrl-k:kill-line\fR
|
|
|
|
|
|
|
|
.B AVAILABLE KEYS: (SYNONYMS)
|
|
|
|
\fIctrl-[a-z]\fR
|
|
|
|
\fIalt-[a-z]\fR
|
|
|
|
\fIf[1-10]\fR
|
|
|
|
\fIenter\fR (\fIreturn\fR \fIctrl-m\fR)
|
|
|
|
\fIspace\fR
|
|
|
|
\fIbspace\fR (\fIbs\fR)
|
|
|
|
\fIalt-enter\fR
|
|
|
|
\fIalt-space\fR
|
|
|
|
\fIalt-bspace\fR (\fIalt-bs\fR)
|
|
|
|
\fIalt-/\fR
|
|
|
|
\fItab\fR
|
|
|
|
\fIbtab\fR (\fIshift-tab\fR)
|
|
|
|
\fIesc\fR
|
|
|
|
\fIdel\fR
|
|
|
|
\fIup\fR
|
|
|
|
\fIdown\fR
|
|
|
|
\fIleft\fR
|
|
|
|
\fIright\fR
|
|
|
|
\fIhome\fR
|
|
|
|
\fIend\fR
|
|
|
|
\fIpgup\fR (\fIpage-up\fR)
|
|
|
|
\fIpgdn\fR (\fIpage-down\fR)
|
|
|
|
\fIshift-left\fR
|
|
|
|
\fIshift-right\fR
|
|
|
|
\fIdouble-click\fR
|
|
|
|
or any single character
|
|
|
|
|
|
|
|
\fBACTION: DEFAULT BINDINGS (NOTES):
|
|
|
|
\fBabort\fR \fIctrl-c ctrl-g ctrl-q esc\fR
|
|
|
|
\fBaccept\fR \fIenter double-click\fR
|
|
|
|
\fBbackward-char\fR \fIctrl-b left\fR
|
|
|
|
\fBbackward-delete-char\fR \fIctrl-h bspace\fR
|
|
|
|
\fBbackward-kill-word\fR \fIalt-bs\fR
|
|
|
|
\fBbackward-word\fR \fIalt-b shift-left\fR
|
|
|
|
\fBbeginning-of-line\fR \fIctrl-a home\fR
|
|
|
|
\fBcancel\fR
|
|
|
|
\fBclear-screen\fR \fIctrl-l\fR
|
|
|
|
\fBdelete-char\fR \fIdel\fR
|
|
|
|
\fBdelete-char/eof\fR \fIctrl-d\fR
|
|
|
|
\fBdeselect-all\fR
|
|
|
|
\fBdown\fR \fIctrl-j ctrl-n down\fR
|
|
|
|
\fBend-of-line\fR \fIctrl-e end\fR
|
|
|
|
\fBexecute(...)\fR (see below for the details)
|
|
|
|
\fBexecute-multi(...)\fR (see below for the details)
|
|
|
|
\fBforward-char\fR \fIctrl-f right\fR
|
|
|
|
\fBforward-word\fR \fIalt-f shift-right\fR
|
|
|
|
\fBignore\fR
|
|
|
|
\fBjump\fR (EasyMotion-like 2-keystroke movement)
|
|
|
|
\fBjump-accept\fR (jump and accept)
|
|
|
|
\fBkill-line\fR
|
|
|
|
\fBkill-word\fR \fIalt-d\fR
|
|
|
|
\fBnext-history\fR (\fIctrl-n\fR on \fB--history\fR)
|
|
|
|
\fBpage-down\fR \fIpgdn\fR
|
|
|
|
\fBpage-up\fR \fIpgup\fR
|
|
|
|
\fBprevious-history\fR (\fIctrl-p\fR on \fB--history\fR)
|
|
|
|
\fBprint-query\fR (print query and exit)
|
|
|
|
\fBselect-all\fR
|
|
|
|
\fBtoggle\fR
|
|
|
|
\fBtoggle-all\fR
|
|
|
|
\fBtoggle-down\fR \fIctrl-i (tab)\fR
|
|
|
|
\fBtoggle-in\fR (\fB--reverse\fR ? \fBtoggle-up\fR : \fBtoggle-down\fR)
|
|
|
|
\fBtoggle-out\fR (\fB--reverse\fR ? \fBtoggle-down\fR : \fBtoggle-up\fR)
|
|
|
|
\fBtoggle-preview\fR
|
|
|
|
\fBtoggle-sort\fR (equivalent to \fB--toggle-sort\fR)
|
|
|
|
\fBtoggle-up\fR \fIbtab (shift-tab)\fR
|
|
|
|
\fBunix-line-discard\fR \fIctrl-u\fR
|
|
|
|
\fBunix-word-rubout\fR \fIctrl-w\fR
|
|
|
|
\fBup\fR \fIctrl-k ctrl-p up\fR
|
|
|
|
\fByank\fR \fIctrl-y\fR
|
|
|
|
|
|
|
|
With \fBexecute(...)\fR action, you can execute arbitrary commands without
|
|
|
|
leaving fzf. For example, you can turn fzf into a simple file browser by
|
|
|
|
binding \fBenter\fR key to \fBless\fR command like follows.
|
|
|
|
|
|
|
|
\fBfzf --bind "enter:execute(less {})"\fR
|
|
|
|
|
|
|
|
\fB{}\fR is the placeholder for the quoted string of the current line.
|
|
|
|
If the command contains parentheses, you can use any of the following
|
|
|
|
alternative notations to avoid parse errors.
|
|
|
|
|
|
|
|
\fBexecute[...]\fR
|
|
|
|
\fBexecute~...~\fR
|
|
|
|
\fBexecute!...!\fR
|
|
|
|
\fBexecute@...@\fR
|
|
|
|
\fBexecute#...#\fR
|
|
|
|
\fBexecute$...$\fR
|
|
|
|
\fBexecute%...%\fR
|
|
|
|
\fBexecute^...^\fR
|
|
|
|
\fBexecute&...&\fR
|
|
|
|
\fBexecute*...*\fR
|
|
|
|
\fBexecute;...;\fR
|
|
|
|
\fBexecute/.../\fR
|
|
|
|
\fBexecute|...|\fR
|
|
|
|
\fBexecute:...\fR
|
|
|
|
.RS
|
|
|
|
This is the special form that frees you from parse errors as it does not expect
|
|
|
|
the closing character. The catch is that it should be the last one in the
|
|
|
|
comma-separated list.
|
|
|
|
.RE
|
|
|
|
|
|
|
|
\fBexecute-multi(...)\fR is an alternative action that executes the command
|
|
|
|
with the selected entries when multi-select is enabled (\fB--multi\fR). With
|
|
|
|
this action, \fB{}\fR is replaced with the quoted strings of the selected
|
|
|
|
entries separated by spaces.
|
|
|
|
|
2015-03-25 14:06:31 -04:00
|
|
|
.SH AUTHOR
|
2015-03-25 21:31:11 -04:00
|
|
|
Junegunn Choi (\fIjunegunn.c@gmail.com\fR)
|
2015-03-25 14:06:31 -04:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
2015-09-12 00:31:07 -04:00
|
|
|
.B Project homepage:
|
|
|
|
.RS
|
2015-03-25 21:31:11 -04:00
|
|
|
.I https://github.com/junegunn/fzf
|
2015-09-12 00:31:07 -04:00
|
|
|
.RE
|
|
|
|
.br
|
2016-02-11 17:46:10 -05:00
|
|
|
|
2015-09-12 00:31:07 -04:00
|
|
|
.br
|
|
|
|
.B Extra Vim plugin:
|
|
|
|
.RS
|
|
|
|
.I https://github.com/junegunn/fzf.vim
|
|
|
|
.RE
|
2015-03-25 14:06:31 -04:00
|
|
|
|
|
|
|
.SH LICENSE
|
|
|
|
MIT
|