Skip to content
Myr

0.10.0

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 8270f7f · Browse files · 6 files+168 added−46 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+168 added−46 removed

  • other:+168 added−46 removed

6 files+168 added−46 removed

modified:man/man1/fzf.1+113 added-41 removed
19 unmodified lines
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN22THE SOFTWARE.23..24.TH fzf 1 "June 2015" "fzf 0.9.13" "fzf - a command-line fuzzy finder"24.TH fzf 1 "June 2015" "fzf 0.10.0" "fzf - a command-line fuzzy finder"2526.SH NAME27fzf - a command-line fuzzy finder28
22 unmodified lines
51Comma-separated list of field index expressions for limiting search scope.52See \fBFIELD INDEX EXPRESSION\fR for details.53.TP54.BI "--with-nth=" "N[,..]"55Transform the item using the list of index expressions for search55Transform each item using index expressions within finder56.TP57.BI "-d, --delimiter=" "STR"58Field delimiter regex for \fI--nth\fR and \fI--with-nth\fR (default: AWK-style)58Field delimiter regex for \fB--nth\fR and \fB--with-nth\fR (default: AWK-style)59.SS Search result60.TP61.B "+s, --no-sort"62Do not sort the result
66 unmodified lines
129.TP130.B "--reverse"131Reverse orientation132.TP133.B "--cycle"134Enable cyclic scroll135.TP136.B "--no-hscroll"137Disable horizontal scroll138.TP139.B "--inline-info"
2 unmodified lines
142.BI "--prompt=" "STR"143Input prompt (default: '> ')144.TP145.BI "--toggle-sort=" "KEY"143Key to toggle sort (\fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR,144or any single character)146Key to toggle sort. For the list of the allowed key names, see \fB--bind\fR.147.TP148.BI "--bind=" "KEYBINDS"149Comma-separated list of custom key bindings. Each key binding expression150follows the following format: \fBKEY:ACTION\fR
1 unmodified line
152e.g. \fBfzf --bind=ctrl-j:accept,ctrl-k:kill-line\fR153.RE154155.RS154.B KEY:155 \fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR, or any single character156.B AVAILABLE KEYS:157 \fIctrl-[a-z]\fR158 \fIalt-[a-z]\fR159 \fIf[1-4]\fR160 \fIenter\fR (\fIreturn\fR)161 \fIspace\fR162 \fIbspace\fR (\fIbs\fR)163 \fIalt-bspace\fR (\fIalt-bs\fR)164 \fItab\fR165 \fIbtab\fR (\fIshift-tab\fR)166 \fIesc\fR167 \fIdel\fR168 \fIup\fR169 \fIdown\fR170 \fIleft\fR171 \fIright\fR172 \fIhome\fR173 \fIend\fR174 \fIpgup\fR (\fIpage-up\fR)175 \fIpgdn\fR (\fIpage-down\fR)176 \fIshift-left\fR177 \fIshift-right\fR178 or any single character179.RE180181.RS159.B ACTION:160 abort161 accept162 backward-char163 backward-delete-char164 backward-kill-word165 backward-word166 beginning-of-line167 clear-screen168 delete-char169 down170 end-of-line171 forward-char172 forward-word173 kill-line (not bound)174 kill-word175 page-down176 page-up177 toggle (not bound)178 toggle-down179 toggle-sort (not bound; equivalent to \fB--toggle-sort\fR)180 toggle-up181 unix-line-discard182 unix-word-rubout183 up184 yank182 \fBACTION: DEFAULT BINDINGS:183 \fBabort\fR \fIctrl-c ctrl-g ctrl-q esc\fR184 \fBaccept\fR \fIctrl-m (enter)\fR185 \fBbackward-char\fR \fIctrl-b left\fR186 \fBbackward-delete-char\fR \fIctrl-h bspace\fR187 \fBbackward-kill-word\fR \fIalt-bs\fR188 \fBbackward-word\fR \fIalt-b shift-left\fR189 \fBbeginning-of-line\fR \fIctrl-a home\fR190 \fBclear-screen\fR \fIctrl-l\fR191 \fBdelete-char\fR \fIctrl-d del\fR192 \fBdeselect-all\fR193 \fBdown\fR \fIctrl-j ctrl-n down\fR194 \fBend-of-line\fR \fIctrl-e end\fR195 \fBexecute(...)\fR (see below for the details)196 \fBforward-char\fR \fIctrl-f right\fR197 \fBforward-word\fR \fIalt-f shift-right\fR198 \fBignore\fR199 \fBkill-line\fR200 \fBkill-word\fR \fIalt-d\fR201 \fBnext-history\fR (\fIctrl-n\fR on \fB--history\fR)202 \fBpage-down\fR \fIpgdn\fR203 \fBpage-up\fR \fIpgup\fR204 \fBprevious-history\fR (\fIctrl-p\fR on \fB--history\fR)205 \fBselect-all\fR206 \fBtoggle\fR207 \fBtoggle-all\fR208 \fBtoggle-down\fR \fIctrl-i (tab)\fR209 \fBtoggle-sort\fR (equivalent to \fB--toggle-sort\fR)210 \fBtoggle-up\fR \fIbtab (shift-tab)\fR211 \fBunix-line-discard\fR \fIctrl-u\fR212 \fBunix-word-rubout\fR \fIctrl-w\fR213 \fBup\fR \fIctrl-k ctrl-p up\fR214 \fByank\fR \fIctrl-y\fR215.RE216217.RS218With \fBexecute(...)\fR action, you can execute arbitrary commands without219leaving fzf. For example, you can turn fzf into a simple file browser by220binding \fBenter\fR key to \fBless\fR command like follows.221222.RS223\fBfzf --bind "enter:execute(less {})"\fR224.RE225226\fB{}\fR is the placeholder for the double-quoted string of the current line.227If the command contains parentheses, you can use any of the following228alternative notations to avoid parse errors.229230 \fBexecute[...]\fR231 \fBexecute~...~\fR232 \fBexecute!...!\fR233 \fBexecute@...@\fR234 \fBexecute#...#\fR235 \fBexecute$...$\fR236 \fBexecute%...%\fR237 \fBexecute^...^\fR238 \fBexecute&...&\fR239 \fBexecute*...*\fR240 \fBexecute;...;\fR241 \fBexecute/.../\fR242 \fBexecute|...|\fR243 \fBexecute:...\fR244.RS245This is the special form that frees you from parse errors as it does not expect246the closing character. The catch is that it should be the last one in the247comma-separated list.248.RE249.RE250.TP251.BI "--history=" "HISTORY_FILE"252Load search history from the specified file and update the file on completion.253When enabled, \fBCTRL-N\fR and \fBCTRL-P\fR are automatically remapped to254\fBnext-history\fR and \fBprevious-history\fR.255.TP256.BI "--history-size=" "N"257Maximum number of entries in the history file (default: 1000). The file is258automatically truncated when the number of the lines exceeds the value.259.SS Scripting260.TP261.BI "-q, --query=" "STR"262Start the finder with the given query
11 unmodified lines
274.B "--print-query"275Print query as the first line276.TP277.BI "--expect=" "KEY[,..]"205Comma-separated list of keys (\fIctrl-[a-z]\fR, \fIalt-[a-z]\fR, \fIf[1-4]\fR,206or any single character) that can be used to complete fzf in addition to the207default enter key. When this option is set, fzf will print the name of the key208pressed as the first line of its output (or as the second line if278Comma-separated list of keys that can be used to complete fzf in addition to279the default enter key. When this option is set, fzf will print the name of the280key pressed as the first line of its output (or as the second line if281\fB--print-query\fR is also used). The line will be empty if fzf is completed282with the default enter key.283.RS284e.g. \fBfzf --expect=ctrl-v,ctrl-t,alt-s,f1,f2,~,@\fR
21 unmodified lines
306307.SH FIELD INDEX EXPRESSION308309A field index expression can be a non-zero integer or a range expression238([BEGIN]..[END]). \fI--nth\fR and \fI--with-nth\fR take a comma-separated list310([BEGIN]..[END]). \fB--nth\fR and \fB--with-nth\fR take a comma-separated list311of field index expressions.312313.SS Examples314.BR 1 " The 1st field"
14 unmodified lines
329.br330331.SH EXTENDED SEARCH MODE332261With \fI-x\fR or \fI--extended\fR option, fzf will start in "extended-search333With \fB-x\fR or \fB--extended\fR option, fzf will start in "extended-search334mode". In this mode, you can specify multiple patterns delimited by spaces,335such as: \fB'wild ^music .mp3$ sbtrkt !rmx\fR336337.SS Exact-match (quoted)
11 unmodified lines
349from the result.350351.SS Extended-exact mode352If you don't need fuzzy matching at all and do not wish to "quote" (prefixing281with ') every word, start fzf with \fI-e\fR or \fI--extended-exact\fR option282(instead of \fI-x\fR or \fI--extended\fR).353with ') every word, start fzf with \fB-e\fR or \fB--extended-exact\fR option354(instead of \fB-x\fR or \fB--extended\fR).355356.SH AUTHOR357Junegunn Choi (\fIjunegunn.c@gmail.com\fR)358
5 unmodified lines
modified:shell/completion.bash+2 added-2 removed
44 unmodified lines
45 --print-query46 --expect47 --toggle-sort48 --sync49 --null49 --cycle50 --history51 --history-max"51 --history-size"5253 case "${prev}" in54 --tiebreak)55 COMPREPLY=( $(compgen -W "length begin end index" -- ${cur}) )
216 unmodified lines
modified:src/constants.go+1 added-1 removed
6 unmodified lines
7)89const (10 // Current version11 Version = "0.9.13"11 Version = "0.10.0"1213 // Core14 coordinatorDelayMax time.Duration = 100 * time.Millisecond15 coordinatorDelayStep time.Duration = 10 * time.Millisecond
33 unmodified lines
modified:src/options.go+1 added-1 removed
21 unmodified lines
22 +i Case-sensitive match23 -n, --nth=N[,..] Comma-separated list of field index expressions24 for limiting search scope. Each can be a non-zero25 integer or a range expression ([BEGIN]..[END])26 --with-nth=N[,..] Transform the item using index expressions for search26 --with-nth=N[,..] Transform item using index expressions within finder27 -d, --delimiter=STR Field delimiter regex for --nth (default: AWK-style)28 +s, --no-sort Do not sort the result29 --tac Reverse the order of the input30 --tiebreak=CRI Sort criterion when the scores are tied;
750 unmodified lines
modified:CHANGELOG.md+50 added
1CHANGELOG2=========340.10.05------67### New features89- More actions for `--bind`10 - `select-all`11 - `deselect-all`12 - `toggle-all`13 - `ignore`14- `execute(...)` action for running arbitrary command without leaving fzf15 - `fzf --bind "ctrl-m:execute(less {})"`16 - `fzf --bind "ctrl-t:execute(tmux new-window -d 'vim {}')"`17 - If the command contains parentheses, use any of the follows alternative18 notations to avoid parse errors19 - `execute[...]`20 - `execute~...~`21 - `execute!...!`22 - `execute@...@`23 - `execute#...#`24 - `execute$...$`25 - `execute%...%`26 - `execute^...^`27 - `execute&...&`28 - `execute*...*`29 - `execute;...;`30 - `execute/.../`31 - `execute|...|`32 - `execute:...`33 - This is the special form that frees you from parse errors as it34 does not expect the closing character35 - The catch is that it should be the last one in the36 comma-separated list37- Added support for optional search history38 - `--history HISTORY_FILE`39 - When used, `CTRL-N` and `CTRL-P` are automatically remapped to40 `next-history` and `previous-history`41 - `--history-size MAX_ENTRIES` (default: 1000)42- Cyclic scrolling can be enabled with `--cycle`43- Fixed the bug where the spinner was not spinning on idle input stream44 - e.g. `sleep 100 | fzf`4546### Minor improvements/fixes4748- Added synonyms for key names that can be specified for `--bind`,49 `--toggle-sort`, and `--expect`50- Fixed the color of multi-select marker on the current line51- Fixed to allow `^pattern$` in extended-search mode5253540.9.1355------5657### New features
183 unmodified lines
modified:install+1 added-1 removed
1#!/usr/bin/env bash23version=0.9.133version=0.10.045cd $(dirname $BASH_SOURCE)6fzf_base=$(pwd)7
270 unmodified lines