- Added
--layout
option with a new layout calledreverse-list
.--layout=reverse
is a synonym for--reverse
--layout=default
is a synonym for--no-reverse
- Preview window will be updated even when there is no match for the query
if any of the placeholder expressions (e.g.
{q}
,{+}
) evaluates to a non-empty string. - More keys for binding:
shift-{up,down}
,alt-{up,down,left,right}
- fzf can now start even when
/dev/tty
is not available by making an educated guess. - Updated the default command for Windows.
- Fixes and improvements on bash/zsh completion
- install and uninstall scripts now supports generating files under
XDG_CONFIG_HOME
on--xdg
flag.
See https://github.com/junegunn/fzf/milestone/12?closed=1 for the full list of changes.
$LINES
and$COLUMNS
are exported to preview command so that the command knows the exact size of the preview window.- Better error messages when the default command or
$FZF_DEFAULT_COMMAND
fails. - Reverted #1061 to avoid having duplicate entries in the list when find
command detected a file system loop (#1120). The default command now
requires that find supports
-fstype
option. - fzf now distinguishes mouse left click and right click (#1130)
- Right click is now bound to
toggle
action by default --bind
understandsleft-click
andright-click
- Right click is now bound to
- Added
replace-query
action (#1137)- Replaces query string with the current selection
- Added
accept-non-empty
action (#1162)- Same as accept, except that it prevents fzf from exiting without any selection
- Fixed custom background color of preview window (#1046)
- Fixed background color issues of Windows binary
- Fixed Windows binary to execute command using cmd.exe with no parsing and escaping (#1072)
- Added support for
window
layout on Vim 8 using Vim 8 terminal (#1055)
A maintenance release for auxiliary scripts. fzf binaries are not updated.
- Experimental support for the builtin terminal of Vim 8
- fzf can now run inside GVim
- Updated Vim plugin to better handle
&shell
issue on fish - Fixed a bug of fzf-tmux where invalid output is generated
- Fixed fzf-tmux to work even when
tput
does not work
- Performance optimization
- One can match literal spaces in extended-search mode with a space prepended by a backslash.
--expect
is now additive and can be specified multiple times.
- Performance optimization
- Fixed missing preview update
- Fixed invalid handling of ANSI colors in preview window
- Further improved
--ansi
performance
- Memory and performance optimization
- Around 20% performance improvement for general use cases
- Up to 5x faster processing of
--ansi
- Up to 50% reduction of memory usage
- Bug fixes and usability improvements
- Fixed handling of bracketed paste mode
- [ERROR] on info line when the default command failed
- More efficient rendering of preview window
--no-clear
updated for repetitive relaunching scenarios
- New
change
event andtop
action for--bind
fzf --bind change:top
- Move cursor to the top result whenever the query string is changed
fzf --bind 'ctrl-w:unix-word-rubout+top,ctrl-u:unix-line-discard+top'
top
combined withunix-word-rubout
andunix-line-discard
- Fixed inconsistent tiebreak scores when
--nth
is used - Proper display of tab characters in
--prompt
- Fixed not to
--cycle
on page-up/page-down to prevent overshoot - Git revision in
--version
output - Basic support for Cygwin environment
- Many fixes in Vim plugin on Windows/Cygwin (thanks to @janlazo)
- Added support for
ctrl-alt-[a-z]
key chords - CTRL-Z (SIGSTOP) now works with fzf
- fzf will export
$FZF_PREVIEW_WINDOW
so that the scripts can use it - Bug fixes and improvements in Vim plugin and shell extensions
- Minor bug fixes and improvements
- Added
--no-clear
option for scripting purposes
- Minor bug fixes
- Added
toggle-preview-wrap
action - Built with Go 1.8
- Added
--border
option to draw border above and below the finder - Bug fixes and improvements
- Fixed a bug where fzf incorrectly display the lines when straddling tab characters are trimmed
- Placeholder expression used in
--preview
andexecute
action can optionally take+
flag to be used with multiple selections- e.g.
git log --oneline | fzf --multi --preview 'git show {+1}'
- e.g.
- Added
execute-silent
action for executing a command silently without switching to the alternate screen. This is useful when the process is short-lived and you're not interested in its output.- e.g.
fzf --bind 'ctrl-y:execute!(echo -n {} | pbcopy)'
- e.g.
ctrl-space
is allowed in--bind
- Dropped ncurses dependency
- Binaries for freebsd, openbsd, arm5, arm6, arm7, and arm8
- Official 24-bit color support
- Added support for composite actions in
--bind
. Multiple actions can be chained using+
separator.- e.g.
fzf --bind 'ctrl-y:execute(echo -n {} | pbcopy)+abort'
- e.g.
--preview-window
with size 0 is allowed. This is used to make fzf execute preview command in the background without displaying the result.- Minor bug fixes and improvements
- Fixed
--height
option to properly fill the window with the background color - Added
half-page-up
andhalf-page-down
actions - Added
-L
flag to the default find command
- Added
--height HEIGHT[%]
option- fzf can now display finder without occupying the full screen
- Preview window will truncate long lines by default. Line wrap can be enabled
by
:wrap
flag in--preview-window
. - Latin script letters will be normalized before matching so that it's easier
to match against accented letters. e.g.
sodanco
can matchSó Danço Samba
.- Normalization can be disabled via
--literal
- Normalization can be disabled via
- Added
--filepath-word
to make word-wise movements/actions (alt-b
,alt-f
,alt-bs
,alt-d
) respect path separators
- Fixed rendering glitches introduced in 0.15.8
- The default escape delay is reduced to 50ms and is configurable via
$ESCDELAY
- Scroll indicator at the top-right corner of the preview window is always displayed when there's overflow
- Can now be built with ncurses 6 or tcell to support extra features
- ncurses 6
- Supports more than 256 color pairs
- Supports italics
- tcell
- 24-bit color support
- See https://github.com/junegunn/fzf/blob/master/BUILD.md
- ncurses 6
- Updated ANSI processor to handle more VT-100 escape sequences
- Added
--no-bold
(and--bold
) option - Improved escape sequence processing for WSL
- Added support for
alt-[0-9]
,f11
, andf12
for--bind
and--expect
- Fixed panic when color is disabled and header lines contain ANSI colors
- Windows binaries! (@kelleyma49)
- Fixed the bug where header lines are cleared when preview window is toggled
- Fixed not to display ^N and ^O on screen
- Fixed cursor keys (or any key sequence that starts with ESC) on WSL by making fzf wait for additional keystrokes after ESC for up to 100ms
- Setting foreground color will no longer set background color to black
- e.g.
fzf --color fg:153
- e.g.
--tiebreak=end
will consider relative position instead of absolute distance- Updated
fzf#wrap
function to respectg:fzf_colors
- Added support for range expression in preview and execute action
- e.g.
ls -l | fzf --preview="echo user={3} when={-4..-2}; cat {-1}" --header-lines=1
{q}
will be replaced to the single-quoted string of the current query
- e.g.
- Fixed to properly handle unicode whitespace characters
- Display scroll indicator in preview window
- Inverse search term will use exact matcher by default
- This is a breaking change, but I believe it makes much more sense. It is
almost impossible to predict which entries will be filtered out due to
a fuzzy inverse term. You can still perform inverse-fuzzy-match by
prepending
!'
to the term.
- This is a breaking change, but I believe it makes much more sense. It is
almost impossible to predict which entries will be filtered out due to
a fuzzy inverse term. You can still perform inverse-fuzzy-match by
prepending
- Added support for more ANSI attributes: dim, underline, blink, and reverse
- Fixed race condition in
toggle-preview
- Preview window is now scrollable
- With mouse scroll or with bindable actions
preview-up
preview-down
preview-page-up
preview-page-down
- With mouse scroll or with bindable actions
- Updated ANSI processor to support high intensity colors and ignore some VT100-related escape sequences
- Fixed panic when the pattern occurs after 2^15-th column
- Fixed rendering delay when displaying extremely long lines
- Improved fuzzy search algorithm
- Added
--algo=[v1|v2]
option so one can still choose the old algorithm which values the search performance over the quality of the result
- Added
- Advanced scoring criteria
--read0
to read input delimited by ASCII NUL character--print0
to print output delimited by ASCII NUL character
- Memory and performance optimization
- Up to 2x performance with half the amount of memory
- Performance optimization
- Memory footprint for ascii string is reduced by 60%
- 15 to 20% improvement of query performance
- Up to 45% better performance of
--nth
with non-regex delimiters
- Fixed invalid handling of
hidden
property of--preview-window
- Fixed duplicate rendering of the last line in preview window
- Fixed race condition where preview window is not properly cleared
- Fixed UI issue with large
--preview
output with many ANSI codes
- Added preview feature
--preview CMD
--preview-window POS[:SIZE][:hidden]
{}
in execute action is now replaced to the single-quoted (instead of double-quoted) string of the current line- Fixed to ignore control characters for bracketed paste mode
- 256-color capability detection does not require
256
in$TERM
- Added
print-query
action - More named keys for binding; F1 ~ F10, ALT-/, ALT-space, and ALT-enter
- Added
jump
andjump-accept
actions that implement EasyMotion-like movement
- Ranking algorithm introduced in 0.12.0 is now universally applied
- Fixed invalid cache reference in exact mode
- Fixes and improvements in Vim plugin and shell extensions
- Enhanced ranking algorithm
- Minor bug fixes
- Added
--hscroll-off=COL
option (default: 10) (#513) - Some fixes in Vim plugin and shell extensions
- Graceful exit on SIGTERM (#482)
$SHELL
instead ofsh
forexecute
action and$FZF_DEFAULT_COMMAND
(#481)- Changes in fuzzy completion API
_fzf_compgen_{path,dir}
_fzf_complete_COMMAND_post
for post-processing
--tiebreak
now accepts comma-separated list of sort criteria- Each criterion should appear only once in the list
index
is only allowed at the end of the listindex
is implicitly appended to the list when not specified- Default is
length
(or equivalentlylength,index
)
begin
criterion will ignore leading whitespaces when calculating the index- Added
toggle-in
andtoggle-out
actions- Switch direction depending on
--reverse
-ness export FZF_DEFAULT_OPTS="--bind tab:toggle-out,shift-tab:toggle-in"
- Switch direction depending on
- Reduced the initial delay when
--tac
is not given- fzf defers the initial rendering of the screen up to 100ms if the input
stream is ongoing to prevent unnecessary redraw during the initial
phase. However, 100ms delay is quite noticeable and might give the
impression that fzf is not snappy enough. This commit reduces the
maximum delay down to 20ms when
--tac
is not specified, in which case the input list quickly fills the entire screen.
- fzf defers the initial rendering of the screen up to 100ms if the input
stream is ongoing to prevent unnecessary redraw during the initial
phase. However, 100ms delay is quite noticeable and might give the
impression that fzf is not snappy enough. This commit reduces the
maximum delay down to 20ms when
- Added
--tabstop=SPACES
option
- Added OR operator for extended-search mode
- Added
--execute-multi
action - Fixed incorrect cursor position when unicode wide characters are used in
--prompt
- Fixes and improvements in shell extensions
- Extended-search mode is now enabled by default
--extended-exact
is deprecated and instead we have--exact
for orthogonally controlling "exactness" of search
- Fixed not to display non-printable characters
- Added
double-click
for--bind
option - More robust handling of SIGWINCH
- Fixed panic when trying to set colors after colors are disabled (#370)
- Fixed unserialized interrupt handling during execute action which often caused invalid memory access and crash
- Changed
--tiebreak=length
(default) to use trimmed length when--nth
is used
- Replaced
--header-file
with--header
option --header
and--header-lines
can be used together- Changed exit status
- 0: Okay
- 1: No match
- 2: Error
- 130: Interrupted
- 64-bit linux binary is statically-linked with ncurses to avoid compatibility issues.
'
-prefix to unquote the term in--extended-exact
mode- Backward scan when
--tiebreak=end
is set
- Fixed to remove ANSI code from output when
--with-nth
is set
- Fixed slow performance of
--with-nth
when used with--delimiter
- Regular expression engine of Golang as of now is very slow, so the fixed version will treat the given delimiter pattern as a plain string instead of a regular expression unless it contains special characters and is a valid regular expression.
- Simpler regular expression for delimiter for better performance
- Improvement in perceived response time of queries
- Eager, efficient rune array conversion
- Graceful exit when failed to initialize ncurses (invalid $TERM)
- Improved ranking algorithm when
--nth
option is set - Changed the default command not to fail when there are files whose names start with dash
- Added
--margin
option - Added options for sticky header
--header-file
--header-lines
- Added
cancel
action which clears the input or closes the finder when the input is already empty- e.g.
export FZF_DEFAULT_OPTS="--bind esc:cancel"
- e.g.
- Added
delete-char/eof
action to differentiateCTRL-D
andDEL
- Fixed to allow binding colon and comma keys
- Fixed ANSI processor to handle color regions spanning multiple lines
- More actions for
--bind
select-all
deselect-all
toggle-all
ignore
execute(...)
action for running arbitrary command without leaving fzffzf --bind "ctrl-m:execute(less {})"
fzf --bind "ctrl-t:execute(tmux new-window -d 'vim {}')"
- If the command contains parentheses, use any of the follows alternative
notations to avoid parse errors
execute[...]
execute~...~
execute!...!
execute@...@
execute#...#
execute$...$
execute%...%
execute^...^
execute&...&
execute*...*
execute;...;
execute/.../
execute|...|
execute:...
- 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
- Added support for optional search history
--history HISTORY_FILE
- When used,
CTRL-N
andCTRL-P
are automatically remapped tonext-history
andprevious-history
- When used,
--history-size MAX_ENTRIES
(default: 1000)
- Cyclic scrolling can be enabled with
--cycle
- Fixed the bug where the spinner was not spinning on idle input stream
- e.g.
sleep 100 | fzf
- e.g.
- Added synonyms for key names that can be specified for
--bind
,--toggle-sort
, and--expect
- Fixed the color of multi-select marker on the current line
- Fixed to allow
^pattern$
in extended-search mode
- Color customization with the extended
--color
option
- Fixed premature termination of Reader in the presence of a long line which is longer than 64KB
- Added
--bind
option for custom key bindings
- Fixed to update "inline-info" immediately after terminal resize
- Fixed ANSI code offset calculation
- Added
--inline-info
option for saving screen estate (#202)- Useful inside Neovim
- e.g.
let $FZF_DEFAULT_OPTS = $FZF_DEFAULT_OPTS.' --inline-info'
- Invalid mutation of input on case conversion (#209)
- Smart-case for each term in extended-search mode (#208)
- Fixed double-click result when scroll offset is positive
- Performance optimization
- Less aggressive memoization to limit memory usage
- Added color scheme for light background:
--color=light
- Added
--tiebreak
option (#191) - Added
--no-hscroll
option (#193) - Visual indication of
--toggle-sort
(#194)
- Fixed Unicode case handling (#186)
- Fixed to terminate on RuneError (#185)
- Added
--toggle-sort
option (#173)--toggle-sort=ctrl-r
is applied toCTRL-R
shell extension
- Fixed to print empty line if
--expect
is set and fzf is completed by--select-1
or--exit-0
(#172) - Fixed to allow comma character as an argument to
--expect
option
If you provide a comma-separated list of keys with --expect
option, fzf will
allow you to select the match and complete the finder when any of the keys is
pressed. Additionally, fzf will print the name of the key pressed as the first
line of the output so that your script can decide what to do next based on the
information.
fzf --expect=ctrl-v,ctrl-t,alt-s,f1,f2,~,@
The updated vim plugin uses this option to implement ctrlp-compatible key bindings.
- Fixed to ignore ANSI escape code
\e[K
(#162)
If you give --ansi
option to fzf, fzf will interpret ANSI color codes from
the input, display the item with the ANSI colors (true colors are not
supported), and strips the codes from the output. This option is off by
default as it entails some overhead.
By removing unnecessary copy of pointers, fzf will use significantly smaller
amount of memory when it's started. The difference is hugely noticeable when
the input is extremely large. (e.g. locate / | fzf
)
- Fixed panic on
--no-sort --filter ''
(#149)
One might argue that this option is unnecessary since we can already put tac
or tail -r
in the command pipeline to achieve the same result. However, the
advantage of --tac
is that it does not block until the input is complete.
--no-sort
option will no longer reverse the display order within finder. You
may want to use the new --tac
option with --no-sort
.
history | fzf +s --tac
When fzf works in filtering mode (--filter
) and sort is disabled
(--no-sort
), there's no need to block until input is complete. The new
version of fzf will print the matches on-the-fly when the following condition
is met:
--filter TERM --no-sort [--no-tac --no-sync]
or simply:
-f TERM +s
This change removes unnecessary delay in the use cases like the following:
fzf -f xxx +s | head -5
However, in this case, fzf processes the lines sequentially, so it cannot
utilize multiple cores, and fzf will run slightly slower than the previous
mode of execution where filtering is done in parallel after the entire input
is loaded. If the user is concerned about this performance problem, one can
add --sync
option to re-enable buffering.
- Added
--sync
option for multi-staged filtering
--select-1
and--exit-0
will start finder immediately when the condition cannot be met