Skip to content

Releases

0.75.0

Choose a tag to compare

@junegunn junegunn released this 07 Nov 12:03
v0.75.0
c7bf2b8
  • Added {change,transform,bg-transform}-info-command actions (#4951) (@casperdcl)
    seq 100 | fzf --info-command 'echo "mode: A | $FZF_INFO"' \
                  --bind 'ctrl-a:change-info-command:echo "mode: A | $FZF_INFO"' \
                  --bind 'ctrl-b:change-info-command:echo "mode: B | $FZF_INFO"'
  • transform-nth and transform-with-nth (and their bg- variants) no longer split the output at |
    • Only change-nth and change-with-nth rotate through |-separated values
    • Fixed the bound command being replaced with the output. e.g. With transform-nth(echo '1|2'), the next key press ran 2|1 as a shell command.
    • A --with-nth template in the output can now contain |. e.g. {2}|{1} was cut to {2}.
  • change-nth and transform-nth now handle empty and invalid values the same way as change-with-nth and transform-with-nth
    • An empty value restores the default --nth. Previously, change-nth() and an empty transform-nth output searched all fields. Use change-nth(..) for that.
    • A non-empty invalid value is ignored. Previously, it restored the default --nth.
  • change-nth and change-with-nth now apply the value after the current one in the |-separated list
    • A value equal to the current one is skipped, e.g. the first value when it is the initial --nth
    • Invalid values in the list are skipped
    • The rotation follows the current value even when another binding changed it, or when the action is printed by transform (unless the list contains the same value more than once)
    • You can list the values in their natural order, starting with the initial one
      # Previously, you would have to write:
      ls -al | fzf --with-nth .. --bind 'space:change-with-nth:1|2|..'
      
      # Now you can write:
      ls -al | fzf --with-nth .. --bind 'space:change-with-nth:..|1|2'
  • Fixed --no-sort being ignored in filter mode with --sync, --tac, or --bench (#4940) (@NavpreetSSidhu)
  • Fixed --walker=follow skipping a symlink in one --walker-root when its target is an ancestor of another root (#4944) (@mabunemeh)
  • Fixed data races in the preview and the search result cache (#4947)
  • Fixed O(n^2) action parsing in --listen. A single ~1 MB request could block the server for ~30 s (@zachariah-mithani, AploSec)
  • Windows
    • Fixed --with-shell on Windows not detecting cmd, PowerShell, and pwsh, which made fzf quote commands and entries for a POSIX shell (#4936) (@vimkim)
      • e.g. With --with-shell "cmd.exe /d /c", --preview '"C:\Program Files\nu\bin\nu.exe" --version' failed
    • Added .msi installers for amd64 and arm64, also offered through winget (#4943) (@meop)
      • The portable package runs fzf through a symlink in the WinGet Links folder, which an administrator's SSH session refuses to follow
      • The MSI installs fzf.exe under Program Files and adds it to the system PATH
      • winget upgrade keeps an existing portable install. To switch to the MSI, run winget uninstall junegunn.fzf and winget install junegunn.fzf.
  • Vim plugin
    • Fixed garbage text on screen in Neovim with set title when the fzf command contains ANSI escape sequences (#4941)
  • nushell
    • The completion integration now requires nushell 0.116.1 or above, where an interactive completer can take the terminal through the @interactive attribute (#4934) (@sim590)

0.74.5

Choose a tag to compare

@junegunn junegunn released this 11 Oct 02:39
v0.74.5
c0a193e
  • Fixed --popup unzooming the window when opened over a zoomed pane on tmux 3.8 or above (#4927, junegunn/fzf.vim#1625) (@jereviikari)
    • On tmux 3.7, the window is still unzoomed, as tmux 3.7b crashes when a floating pane is created over a zoomed window
  • Fixed --gap-line cutting a grapheme cluster when filling the last cells of the line (#4920)
  • Fixed an escape sequence fzf does not recognize being partly consumed, which leaked the rest into the query (#4926)
  • Fixed a key lost when it arrived in the same read as an escape sequence
  • Fixed focus event not triggered after reload when the new item is at the same position as the previous one (#4930)
    • With --id-nth, the event is not triggered if the focus moves directly from an item to another item with the same key
    • A focus binding that runs reload now triggers itself again after each reload, unless --id-nth is set and the key does not change
  • Security fixes
    • fzf-tmux no longer evaluates an attached layout size (e.g. -l50) via bash arithmetic, which could run commands or inject tmux flags (GHSA-w6x2-f5m4-xw82)
    • zsh completion now creates its FIFO in a private mktemp -d directory instead of a predictable /tmp path (GHSA-7rj6-7pqx-v7rm)
    • Reported by Sai Sreewathsa Kovalluri, Shon Babu, and Kannan K (Researchers) of Innspark Solutions

0.74.4

Choose a tag to compare

@junegunn junegunn released this 12 Sep 00:24
v0.74.4
a140afe

Demo: Non-blocking fzf vim plugin on tmux floating pane

fzf-vim-show.mp4

  • Fixed an escape sequence split across reads being parsed as a fragment, which leaked the rest into the query (#4899)
    • e.g. A terminal answering the startup DECRQM query late left ?2004;2$y, CTRL-UP left 5A, and SGR mouse input left 0;1;1M
  • Fixed --tiebreak=pathname not detecting the last path separator when the line contains a non-ASCII character before it (#4902)
  • Fixed progress in the --listen status payload staying at 100 while a new search was running, which made a snapshot with a new query and the previous result set look complete (#4903)
    • It is now reset when a search starts and reaches 100 on the final result, so progress of 100 means the matches belong to the query reported next to them
  • Fixed adaptive height not reserving a line for the divider of an inline header or footer border, so the list came up one line short for each of them (#4904)
    • e.g. seq 10 | fzf --height=~100% --list-border --header-lines=1 --header-lines-border=inline
  • Fixed fzf erasing the line the prompt was on when it exits, which made the last line of the prompt flicker in fish, bash, and nushell (#4913)
  • Fixed fzf exiting with status 2 while waiting for a key, when --listen is used and 100+ signals interrupt the wait (#4917)
  • Vim plugin
    • fzf no longer blocks the editor, so live previews keep working while fzf is open
      • fzf#run returns an empty list when it runs fzf asynchronously. Use sink, sinklist, or exit to get the result
    • The popup layout now works under Zellij
    • Added popup as a synonym of the tmux layout key
      let g:fzf_layout = { 'popup': '90%,70%' }
    • fzf now opens in a tmux or Zellij floating pane by default, so the window it was started from stays visible and can be used while fzf is running
      • Requires tmux 3.7+ or Zellij 0.44+
      • Set g:fzf_layout to pick a different layout
  • fish
    • Fixed custom CTRL-T command not using the prefixed target directory in some cases (#4498) (@bitraid)
    • Optimized description alignment of completion items (#4910) (@bitraid)
  • nushell
    • Added key bindings for Helix editing modes, on nushell 0.115.0 or above (#4914) (@sim590)
    • Fixed CTRL-T inserting the selected paths unquoted
      • p4p3r (@P4P3R-HAK) reported the security vulnerability and suggested the fix

0.74.3

Choose a tag to compare

@junegunn junegunn released this 17 Aug 03:10
v0.74.3
15f64c4
  • Performance optimizations for non-ASCII input
    • ASCII queries are up to 16x faster
    • Non-ASCII queries are up to 12x faster
    • Reading accented Latin input is up to 37% faster
    • Reading CJK input reduces memory use by up to 29%
    • ASCII input is unaffected
  • Fixed an image from a preview command being torn apart when its rows are separated by IND instead of newlines, as chafa does under tmux (#4885)
  • Fixed replace-query corrupting the item text when the query is edited afterwards
  • fzf no longer turns bracketed paste mode off on exit when the terminal already had it on, which broke pasting in shells that run fzf from a line editor widget (#4887)
  • Fixed startup blocking on terminals that never answer escape sequences, such as FreeBSD virtual terminals. fzf waited for a reply until a key was pressed, then dropped that keystroke (#2860, #976)

0.74.2

Choose a tag to compare

@junegunn junegunn released this 01 Aug 00:17
v0.74.2
3337be9
  • Performance optimizations for short queries
    • Short queries scan the largest candidate sets, and the first keystroke scans the whole input
    • Single-character queries are up to 2.4x faster
    • Two-character queries are up to 1.4x faster
  • Faster sorting of search results, skipping redundant radix passes
  • change-border-label and transform-border-label now work on the native border of a tmux or Zellij floating pane
  • Fixed Kitty graphics sequences from a preview command being taken by tmux as pane title requests
  • Fixed an image at the top of the preview being torn by --preview-window ~N
  • Fixed nondeterministic match highlight positions
  • Fixed signal and resize handlers persisting after Run() returns when fzf is used as a library
  • fzf now detects terminal resize on Windows in --height mode (#4790) (@Cyrus580529)
  • fish: fixed history command being affected by user initialization scripts, and improved timestamp colors in CTRL-R (#4862) (@bitraid)
  • zsh: fixed CTRL-R not propagating the exit status of fzf when perl is available (#4871) (@LangLangBart, @Toliak)
  • zsh: fixed chpwd hook functions being called twice by ALT-C (#4879) (@LangLangBart, @lucc)

0.74.1

Choose a tag to compare

@junegunn junegunn released this 18 Jul 12:54
v0.74.1
eae8d9d
  • The default separator on the info line is no longer shown when the input section is already visually separated from the list section by a border line
    # No separator shown below the header border
    fzf --style full --input-border none --header foo
    
    # Separator shown; no border separates the input section from the list section
    fzf --style full --input-border none --header foo --no-header-border
    
    # No separator below the border of the preview window at 'next' position
    fzf --preview : --preview-window next
    
    # Conversely, separator is now shown when the input border does not draw
    # a line facing the list section
    fzf --input-border bottom
  • Rendering improvements
    • Each frame is now wrapped in synchronized update mode (mode 2026) to reduce flickering on supported terminals
    • Reduced rendering output by 10-23% by skipping redundant SGR sequences
    • Fixed ghost characters and misplaced colors inside Zellij by using CHA instead of CR + CUF for horizontal cursor movement (#4858, zellij-org/zellij#5370)
    • Fixed cursor restoration on exit with --height --no-clear inside Neovim terminal by using DECSC/DECRC instead of CSI s/CSI u
  • nushell: fixed deprecation error of str downcase on nushell 0.114.0 or above (#4857) (@sim590)
  • Each release now includes .deb packages for easy installation on Debian-based distros (#4859)

0.74.0

Choose a tag to compare

@junegunn junegunn released this 06 Jul 13:33
v0.74.0
6765f46
image

Release highlights: https://junegunn.github.io/fzf/releases/0.74.0/

  • On tmux 3.7 or above, --popup starts fzf in a floating pane instead of a popup (#4850)
    • Unlike a popup, a floating pane is not modal; you can switch to other panes and windows while fzf is running, move and resize the pane with the mouse, zoom it to fullscreen, and use copy-mode in it
    • A floating pane always has a native border, which is what makes the pane movable and resizable, so border-native is implied
    • A popup is used instead when a border style is explicitly specified with --border, so that the fzf-drawn border is the only border shown (none and line are treated as no border)
      fzf --popup --border
    • --border-label is set as the title of the floating pane, and is displayed on the border if pane-border-status is enabled in tmux
      fzf --popup --border-label ' fzf '
  • On Zellij, --popup uses the native border by default, consistent with tmux, so that the pane can be moved and resized with the mouse; fzf draws its own border when a border style is explicitly specified with --border
    • --border-label is set as the name of the pane, displayed on the native border
  • Added result-final event, a variant of result that is not triggered while the input stream is still open (#4835)
    • Use it for one-shot, per-query actions that would otherwise re-fire on every intermediate snapshot during loading
      # 'result' fires per intermediate snapshot (header keeps updating during load);
      # 'result-final' fires once after the stream closes (footer shows the final count)
      (seq 100; sleep 1; seq 100) | fzf --query 1 \
        --bind 'result:transform-header(echo result: $FZF_MATCH_COUNT),result-final:transform-footer(echo final: $FZF_MATCH_COUNT)'
  • Added wait action to block subsequent actions until search completes (#4825)
    • Useful for chaining query-changing actions with motion actions to ensure operations on complete results
      # Wait for search to complete before moving to the best match
      fzf --bind 'start:change-query(foo)+wait+best'
    • The initial loading of the input is also considered a search in progress, so start:wait can be used to wait until the input is fully loaded
      # Move to the last item after the input is fully loaded
      (seq 1000; sleep 1; seq 1001 2000) | fzf --bind 'start:wait+last'
  • Bound alt-left to backward-word and alt-right to forward-word by default (#4833)
  • Bug fixes and improvements
    • Skip $FZF_CURRENT_ITEM export when the item is larger than 64 KB; a huge item can overflow ARG_MAX and break preview and other child commands with E2BIG (#4806)
    • transform and bg-transform now allow a bare put action in the output to insert the key that triggered the action
      # Insert the typed key ('a') into the query
      fzf --bind 'a:transform:echo put'
    • ALT-C in zsh no longer resolves symbolic links when changing the directory, consistent with the cd builtin (#4816) (@silverneko)
    • Fixed horizontal mouse wheel events being treated as vertical scrolling (#4848) (@jason5122)
    • Fixed bw theme not inheriting overridden colors
    • fish: CTRL-R now works when $fish_color_normal or $fish_color_comment is empty or invalid (#4831) (@bitraid)
    • Fixed empty-shell detection in the install script (#4813)
    • Fixed the install script writing nushell source lines into the config files of other shells (#4812)

0.73.1

Choose a tag to compare

@github-actions github-actions released this 25 May 05:37
v0.73.1
ce4bef7
  • Bug fixes
    • Skip $FZF_CURRENT_ITEM export when the item contains a NUL byte; exec(2) rejects the env, breaking preview and other child commands (#4806)
    • Fixed O(n^2) HTTP body accumulation in --listen; a single ~390 KB request could block the single-threaded server for ~8 s (Michal Majchrowicz, Marcin Wyczechowski, AFINE Team)

0.73.0

Choose a tag to compare

@junegunn junegunn released this 23 May 15:19
v0.73.0
a24deef

Release highlights: https://junegunn.github.io/fzf/releases/0.73.0/

  • Nushell integration via fzf --nushell and the installer (#4630) (@sim590)
  • New --preview-window=next position that places the preview adjacent to the input section, on the list side: above the input in the default layout, below it in --layout=reverse (#4798)
  • Timer-driven every(N) event for --bind, where N is seconds
  • Added $FZF_IDLE_TIME (whole seconds) and $FZF_IDLE_TIME_MS (milliseconds), holding the elapsed time since the last user activity
    • Pair with every(N) to build idle-based behavior such as auto-accept or auto-quit (#1211)
      # Live process list; --track --id-nth 2 keeps the cursor on the same PID across reloads
      fzf --header-lines 1 --track --id-nth 2 --bind 'start,every(2):reload-sync:ps -ef'
      
      # Auto-accept after 10 seconds of inactivity, with a countdown in the footer after 5s
      fzf --bind 'every(1):bg-transform:
        if   [[ $FZF_IDLE_TIME -lt 5  ]]; then echo change-footer:
        elif [[ $FZF_IDLE_TIME -lt 10 ]]; then echo "change-footer:auto-accept in $((10 - FZF_IDLE_TIME))s"
        else echo accept
        fi'
  • Added $FZF_CURRENT_ITEM for shells where quoting {} is awkward (#4802)
  • Bug fixes
    • Scoring: non-word characters at the start of input or after a delimiter now receive the same boundary bonus as word characters (#4795)
    • change-preview-window no longer resets wrap / wrap-word state set via toggle-preview-wrap / toggle-preview-wrap-word (#4791)
    • Stripped UTF-8-encoded C1 control characters from rendered items to prevent terminal control-sequence injection
    • Fixed integer-overflow panic in FuzzyMatchV2 on 32-bit builds (Michal Majchrowicz, Marcin Wyczechowski, AFINE Team)
    • Fixed bg-transform reload / exclude payloads being dropped
    • Fixed rendering glitch with preview window on the left combined with footer

0.72.0

Choose a tag to compare

@junegunn junegunn released this 26 Apr 09:09
v0.72.0
6fefe02
17772131378862605481422441824188

Release highlights: https://junegunn.github.io/fzf/releases/0.72.0/

  • --header-border, --header-lines-border, and --footer-border now accept a new inline style that embeds the section inside the list frame, separated from the list content by a horizontal line. When the list border has side segments, the separator joins them as T-junctions.
    • Requires a --list-border shape that has both top and bottom segments (rounded, sharp, bold, double, block, thinblock, or horizontal); falls back to line otherwise. horizontal has no side borders, so the separator is drawn without T-junction endpoints.
    • Sections stack. Example combining all three:
      ps -ef | fzf --reverse --style full \
          --header 'Select a process' --header-lines 1 \
          --bind 'load:transform-footer:echo $FZF_TOTAL_COUNT processes' \
          --header-border dashed --header-first \
          --header-lines-border inline --footer-border inline
    • --header-label and --footer-label render on their respective separator row.
    • The separator inherits --color list-border when the section's own border color is not explicitly set.
    • inline takes precedence over --header-first: the inline section stays inside the list frame. --header-border=inline requires --header-lines-border to be inline or unset.
  • New dashed border style with dashed edges (β•Ά / ┆) and rounded corners.
    • --border=dashed, --list-border=dashed, etc.
    • Works with inline sections (T-junctions render correctly).
  • [vim] Move and resize popup window when detecting VimResized event (#4778) (@Vulcalien)
  • Bug fixes
    • Fixed gutter display in --style=minimal
    • Fixed arrow keys / Home / End without modifiers being ignored under the kitty keyboard protocol (#4776) (@TymekDev)
    • bash: Persist history deletion when histappend is on (#4764)