Skip to content
Myr

CHANGELOG.md

This file

Path

CHANGELOG.md

3,472 lines · 142.9 KiB · Markdown

Last changed by

landed by oscabrielc0a193e

History of this file

Take it

The walk stopped after 200 commits: lines older than 76efddd point at it.

bash: shift-delete to delete history entries during CTRL-RJunegunn Choibefore adoption76efddd

lines 1–3why, one step back
1CHANGELOG
2=========3

Fix --gap-line cutting a grapheme clusterJunegunn Choibefore adoption961793c

lines 4–5why, one step back
40.74.5
5------6- Fixed `--popup` unzooming the window when opened over a zoomed pane on tmux 3.8 or above (#4927, junegunn/fzf.vim#1625) (@jereviikari)7 - On tmux 3.7, the window is still unzoomed, as tmux 3.7b crashes when a floating pane is created over a zoomed window

Fix --gap-line cutting a grapheme clusterJunegunn Choibefore adoption961793c

line 8why, one step back
8- Fixed `--gap-line` cutting a grapheme cluster when filling the last cells of the line (#4920)

Drop unrecognized escape sequences instead of typing them (#4926)Junegunn Choibefore adoptionc009c10

line 9why, one step back
9- Fixed an escape sequence fzf does not recognize being partly consumed, which leaked the rest into the query (#4926)

Check escape sequence bytes before counting them (#4929)Junegunn Choibefore adoptionb563e20

line 10why, one step back
10- Fixed a key lost when it arrived in the same read as an escape sequence

Trigger focus event after reload (#4931)Junegunn Choibefore adoption25adb67

lines 11–13why, one step back
11- Fixed `focus` event not triggered after `reload` when the new item is at the same position as the previous one (#4930)
12 - With `--id-nth`, the event is not triggered if the focus moves directly from an item to another item with the same key13 - A `focus` binding that runs `reload` now triggers itself again after each reload, unless `--id-nth` is set and the key does not change

fzf-tmux: validate attached layout size valueJunegunn Choibefore adoptionf126ff2

lines 14–15why, one step back
14- Security fixes
15 - 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)

completion(zsh): use private mktemp dir for completion FIFOJunegunn Choibefore adoptioncbc11e4

lines 16–17why, one step back
16 - zsh completion now creates its FIFO in a private `mktemp -d` directory instead of a predictable `/tmp` path (GHSA-7rj6-7pqx-v7rm)
17 - Reported by Sai Sreewathsa Kovalluri, Shon Babu, and Kannan K (Researchers) of Innspark Solutions

Fix --gap-line cutting a grapheme clusterJunegunn Choibefore adoption961793c

line 18why, one step back
18

Run fzf asynchronously in the Vim plugin (#4897)Junegunn Choibefore adoption5cb7bab

lines 19–20why, one step back
190.74.4
20------

Update CHANGELOGJunegunn Choibefore adoption52f4319

lines 21–22why, one step back
21- Fixed an escape sequence split across reads being parsed as a fragment, which leaked the rest into the query (#4899)
22 - 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`

Fix --tiebreak=pathname with non-ASCII textJunegunn Choibefore adoptionb395cfb

line 23why, one step back
23- Fixed `--tiebreak=pathname` not detecting the last path separator when the line contains a non-ASCII character before it (#4902)

Fix stale progress in --listen status payload (#4907)Junegunn Choibefore adoption7e63399

lines 24–25why, one step back
24- 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)
25 - 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

Fix adaptive height with an inline header or footer borderJunegunn Choibefore adoption1372d04

lines 26–27why, one step back
26- 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)
27 - e.g. `seq 10 | fzf --height=~100% --list-border --header-lines=1 --header-lines-border=inline`

Update CHANGELOGJunegunn Choibefore adoption013532d

lines 28–29why, one step back
28- 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)
29- Fixed fzf exiting with status 2 while waiting for a key, when `--listen` is used and 100+ signals interrupt the wait (#4917)

Run fzf asynchronously in the Vim plugin (#4897)Junegunn Choibefore adoption5cb7bab

lines 30–37why, one step back
30- Vim plugin
31 - fzf no longer blocks the editor, so live previews keep working while fzf is open32 - `fzf#run` returns an empty list when it runs fzf asynchronously. Use `sink`, `sinklist`, or `exit` to get the result33 - The popup layout now works under Zellij34 - Added `popup` as a synonym of the `tmux` layout key35 ```vim36 let g:fzf_layout = { 'popup': '90%,70%' }37 ```

[vim] Open fzf in a tmux or Zellij floating pane by default (#4905)Junegunn Choibefore adoptiona52ac84

lines 38–40why, one step back
38 - 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
39 - Requires tmux 3.7+ or Zellij 0.44+40 - Set `g:fzf_layout` to pick a different layout

Update CHANGELOGJunegunn Choibefore adoption013532d

lines 41–47why, one step back
41- fish
42 - Fixed custom CTRL-T command not using the prefixed target directory in some cases (#4498) (@bitraid)43 - Optimized description alignment of completion items (#4910) (@bitraid)44- nushell45 - Added key bindings for Helix editing modes, on nushell 0.115.0 or above (#4914) (@sim590)46 - Fixed CTRL-T inserting the selected paths unquoted47 - p4p3r (@P4P3R-HAK) reported the security vulnerability and suggested the fix

Run fzf asynchronously in the Vim plugin (#4897)Junegunn Choibefore adoption5cb7bab

line 48why, one step back
48

Break preview lines on IND to support chafa in preview window on tmuxJunegunn Choibefore adoption0579bb0

lines 49–50why, one step back
490.74.3
50------

Update CHANGELOGJunegunn Choibefore adoptionab1ee05

line 51why, one step back
51- Performance optimizations for non-ASCII input

0.74.3Junegunn Choibefore adoption15f64c4

line 52why, one step back
52 - ASCII queries are up to 16x faster

Update CHANGELOGJunegunn Choibefore adoptionab1ee05

line 53why, one step back
53 - Non-ASCII queries are up to 12x faster

0.74.3Junegunn Choibefore adoption15f64c4

lines 54–55why, one step back
54 - Reading accented Latin input is up to 37% faster
55 - Reading CJK input reduces memory use by up to 29%

Update CHANGELOGJunegunn Choibefore adoptionab1ee05

line 56why, one step back
56 - ASCII input is unaffected

Break preview lines on IND to support chafa in preview window on tmuxJunegunn Choibefore adoption0579bb0

line 57why, one step back
57- 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)

Update CHANGELOGJunegunn Choibefore adoptionab1ee05

line 58why, one step back
58- Fixed `replace-query` corrupting the item text when the query is edited afterwards

Restore bracketed paste mode instead of forcing it offJunegunn Choibefore adoptiondab626b

lines 59–60why, one step back
59- 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)
60- 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)

Break preview lines on IND to support chafa in preview window on tmuxJunegunn Choibefore adoption0579bb0

line 61why, one step back
61

Update CHANGELOGJunegunn Choibefore adoption2209a94

lines 62–63why, one step back
620.74.2
63------

Add fast path for two-character patterns in FuzzyMatchV2Junegunn Choibefore adoptionf779e6a

line 64why, one step back
64- Performance optimizations for short queries

Update CHANGELOGJunegunn Choibefore adoptionb661538

line 65why, one step back
65 - Short queries scan the largest candidate sets, and the first keystroke scans the whole input

Add fast path for two-character patterns in FuzzyMatchV2Junegunn Choibefore adoptionf779e6a

lines 66–67why, one step back
66 - Single-character queries are up to 2.4x faster
67 - Two-character queries are up to 1.4x faster

Update CHANGELOGJunegunn Choibefore adoptionb661538

lines 68–71why, one step back
68- Faster sorting of search results, skipping redundant radix passes
69- `change-border-label` and `transform-border-label` now work on the native border of a tmux or Zellij floating pane70- Fixed Kitty graphics sequences from a preview command being taken by tmux as pane title requests71- Fixed an image at the top of the preview being torn by `--preview-window ~N`

Update CHANGELOGJunegunn Choibefore adoption2209a94

line 72why, one step back
72- Fixed nondeterministic match highlight positions

Update CHANGELOGJunegunn Choibefore adoptionb661538

line 73why, one step back
73- Fixed signal and resize handlers persisting after `Run()` returns when fzf is used as a library

Update CHANGELOGJunegunn Choibefore adoption2209a94

lines 74–75why, one step back
74- fzf now detects terminal resize on Windows in `--height` mode (#4790) (@Cyrus580529)
75- fish: fixed history command being affected by user initialization scripts, and improved timestamp colors in CTRL-R (#4862) (@bitraid)

0.74.2Junegunn Choibefore adoption3337be9

lines 76–77why, one step back
76- zsh: fixed CTRL-R not propagating the exit status of fzf when perl is available (#4871) (@LangLangBart, @Toliak)
77- zsh: fixed `chpwd` hook functions being called twice by ALT-C (#4879) (@LangLangBart, @lucc)

Update CHANGELOGJunegunn Choibefore adoption2209a94

line 78why, one step back
78

Update CHANGELOGJunegunn Choibefore adoption7e134f0

lines 79–80why, one step back
790.74.1
80------

Hide default separator when a border separates input from listJunegunn Choibefore adoption6030226

lines 81–87why, one step back
81- 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
82 ```sh83 # No separator shown below the header border84 fzf --style full --input-border none --header foo8586 # Separator shown; no border separates the input section from the list section87 fzf --style full --input-border none --header foo --no-header-border

Apply facing-line rule to input border as wellJunegunn Choibefore adoption7fe4831

line 88why, one step back
88

Hide separator next to preview window at 'next' position when decidableJunegunn Choibefore adoptione58c5e6

lines 89–91why, one step back
89 # No separator below the border of the preview window at 'next' position
90 fzf --preview : --preview-window next91

Apply facing-line rule to input border as wellJunegunn Choibefore adoption7fe4831

lines 92–94why, one step back
92 # Conversely, separator is now shown when the input border does not draw
93 # a line facing the list section94 fzf --input-border bottom

Hide default separator when a border separates input from listJunegunn Choibefore adoption6030226

line 95why, one step back
95 ```

Update CHANGELOGJunegunn Choibefore adoptione877b6f

line 96why, one step back
96- Rendering improvements

Update CHANGELOGJunegunn Choibefore adoption7e134f0

lines 97–100why, one step back
97 - Each frame is now wrapped in synchronized update mode (mode 2026) to reduce flickering on supported terminals
98 - Reduced rendering output by 10-23% by skipping redundant SGR sequences99 - Fixed ghost characters and misplaced colors inside Zellij by using CHA instead of CR + CUF for horizontal cursor movement (#4858, zellij-org/zellij#5370)100 - Fixed cursor restoration on exit with `--height --no-clear` inside Neovim terminal by using DECSC/DECRC instead of `CSI s`/`CSI u`

Update CHANGELOGJunegunn Choibefore adoptione877b6f

lines 101–102why, one step back
101- nushell: fixed deprecation error of `str downcase` on nushell 0.114.0 or above (#4857) (@sim590)
102- Each release now includes `.deb` packages for easy installation on Debian-based distros (#4859)

Update CHANGELOGJunegunn Choibefore adoption7e134f0

line 103why, one step back
103

0.74.0Junegunn Choibefore adoption6765f46

lines 104–107why, one step back
1040.74.0
105------106_Release highlights: https://junegunn.github.io/fzf/releases/0.74.0/_107

Use floating pane instead of popup on tmux 3.7 or above (#4850) (#4852)Junegunn Choibefore adoption1e31e5d

lines 108–110why, one step back
108- On tmux 3.7 or above, `--popup` starts fzf in a floating pane instead of a popup (#4850)
109 - 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 it110 - A floating pane always has a native border, which is what makes the pane movable and resizable, so `border-native` is implied

Set --border-label as the title of the tmux floating pane (#4853)Junegunn Choibefore adoption77e6394

line 111why, one step back
111 - 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)

Use floating pane instead of popup on tmux 3.7 or above (#4850) (#4852)Junegunn Choibefore adoption1e31e5d

line 112why, one step back
112 ```sh

0.74.0Junegunn Choibefore adoption6765f46

line 113why, one step back
113 fzf --popup --border

Set --border-label as the title of the tmux floating pane (#4853)Junegunn Choibefore adoption77e6394

lines 114–117why, one step back
114 ```
115 - `--border-label` is set as the title of the floating pane, and is displayed on the border if `pane-border-status` is enabled in tmux116 ```sh117 fzf --popup --border-label ' fzf '

Use floating pane instead of popup on tmux 3.7 or above (#4850) (#4852)Junegunn Choibefore adoption1e31e5d

line 118why, one step back
118 ```

Default to native border for Zellij floating pane (#4854)Junegunn Choibefore adoptione54f11c

lines 119–120why, one step back
119- 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`
120 - `--border-label` is set as the name of the pane, displayed on the native border

Add result-final eventJunegunn Choibefore adoption5dd698b

lines 121–128why, one step back
121- Added `result-final` event, a variant of `result` that is not triggered while the input stream is still open (#4835)
122 - Use it for one-shot, per-query actions that would otherwise re-fire on every intermediate snapshot during loading123 ```sh124 # 'result' fires per intermediate snapshot (header keeps updating during load);125 # 'result-final' fires once after the stream closes (footer shows the final count)126 (seq 100; sleep 1; seq 100) | fzf --query 1 \127 --bind 'result:transform-header(echo result: $FZF_MATCH_COUNT),result-final:transform-footer(echo final: $FZF_MATCH_COUNT)'128 ```

Add 'wait' action to block until search completion (#4825)Junegunn Choibefore adoption8ec443b

lines 129–139why, one step back
129- Added `wait` action to block subsequent actions until search completes (#4825)
130 - Useful for chaining query-changing actions with motion actions to ensure operations on complete results131 ```sh132 # Wait for search to complete before moving to the best match133 fzf --bind 'start:change-query(foo)+wait+best'134 ```135 - 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 loaded136 ```sh137 # Move to the last item after the input is fully loaded138 (seq 1000; sleep 1; seq 1001 2000) | fzf --bind 'start:wait+last'139 ```

Bind alt-left/alt-right to backward-word/forward-word by defaultJunegunn Choibefore adoption3951df8

line 140why, one step back
140- Bound `alt-left` to `backward-word` and `alt-right` to `forward-word` by default (#4833)

Update CHANGELOGJunegunn Choibefore adoptionc110aec

lines 141–153why, one step back
141- Bug fixes and improvements
142 - 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)143 - `transform` and `bg-transform` now allow a bare `put` action in the output to insert the key that triggered the action144 ```sh145 # Insert the typed key ('a') into the query146 fzf --bind 'a:transform:echo put'147 ```148 - `ALT-C` in zsh no longer resolves symbolic links when changing the directory, consistent with the `cd` builtin (#4816) (@silverneko)149 - Fixed horizontal mouse wheel events being treated as vertical scrolling (#4848) (@jason5122)150 - Fixed `bw` theme not inheriting overridden colors151 - fish: `CTRL-R` now works when `$fish_color_normal` or `$fish_color_comment` is empty or invalid (#4831) (@bitraid)152 - Fixed empty-shell detection in the install script (#4813)153 - Fixed the install script writing nushell source lines into the config files of other shells (#4812)

Add result-final eventJunegunn Choibefore adoption5dd698b

line 154why, one step back
154

0.73.1Junegunn Choibefore adoptionce4bef7

lines 155–157why, one step back
1550.73.1
156------157- Bug fixes

Fix typo in CHANGELOGJunegunn Choibefore adoption07c5cd4

line 158why, one step back
158 - Skip `$FZF_CURRENT_ITEM` export when the item contains a NUL byte; `exec(2)` rejects the env, breaking preview and other child commands (#4806)

0.73.1Junegunn Choibefore adoptionce4bef7

lines 159–160why, one step back
159 - 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)
160

Preserve wrap state across change-preview-windowJunegunn Choibefore adoptionb4a86a9

lines 161–162why, one step back
1610.73.0
162------

0.73.0Junegunn Choibefore adoptiona24deef

lines 163–169why, one step back
163_Release highlights: https://junegunn.github.io/fzf/releases/0.73.0/_
164165- Nushell integration via `fzf --nushell` and the installer (#4630) (@sim590)166- 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)167- Timer-driven `every(N)` event for `--bind`, where `N` is seconds168- Added `$FZF_IDLE_TIME` (whole seconds) and `$FZF_IDLE_TIME_MS` (milliseconds), holding the elapsed time since the last user activity169 - Pair with `every(N)` to build idle-based behavior such as auto-accept or auto-quit (#1211)

Add every(N) bind event and FZF_IDLE_TIME env var (#4797)Junegunn Choibefore adoptionfcc3c6a

lines 170–180why, one step back
170 ```sh
171 # Live process list; --track --id-nth 2 keeps the cursor on the same PID across reloads172 fzf --header-lines 1 --track --id-nth 2 --bind 'start,every(2):reload-sync:ps -ef'173174 # Auto-accept after 10 seconds of inactivity, with a countdown in the footer after 5s175 fzf --bind 'every(1):bg-transform:176 if [[ $FZF_IDLE_TIME -lt 5 ]]; then echo change-footer:177 elif [[ $FZF_IDLE_TIME -lt 10 ]]; then echo "change-footer:auto-accept in $((10 - FZF_IDLE_TIME))s"178 else echo accept179 fi'180 ```

0.73.0Junegunn Choibefore adoptiona24deef

line 181why, one step back
181- Added `$FZF_CURRENT_ITEM` for shells where quoting `{}` is awkward (#4802)

Preserve wrap state across change-preview-windowJunegunn Choibefore adoptionb4a86a9

line 182why, one step back
182- Bug fixes

0.73.0Junegunn Choibefore adoptiona24deef

lines 183–188why, one step back
183 - Scoring: non-word characters at the start of input or after a delimiter now receive the same boundary bonus as word characters (#4795)
184 - `change-preview-window` no longer resets `wrap` / `wrap-word` state set via `toggle-preview-wrap` / `toggle-preview-wrap-word` (#4791)185 - Stripped UTF-8-encoded C1 control characters from rendered items to prevent terminal control-sequence injection186 - Fixed integer-overflow panic in `FuzzyMatchV2` on 32-bit builds (Michal Majchrowicz, Marcin Wyczechowski, AFINE Team)187 - Fixed `bg-transform` `reload` / `exclude` payloads being dropped188 - Fixed rendering glitch with preview window on the left combined with footer

Preserve wrap state across change-preview-windowJunegunn Choibefore adoptionb4a86a9

line 189why, one step back
189

Add --{header,header-lines,footer}-border=inlineJunegunn Choibefore adoptiond754cfa

lines 190–191why, one step back
1900.72.0
191------

0.72.0Junegunn Choibefore adoption6fefe02

lines 192–193why, one step back
192_Release highlights: https://junegunn.github.io/fzf/releases/0.72.0/_
193

Update CHANGELOG: clarify inline list-border shape requirementsJunegunn Choibefore adoption0142fe9

lines 194–195why, one step back
194- `--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.
195 - 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.

Add --{header,header-lines,footer}-border=inlineJunegunn Choibefore adoptiond754cfa

lines 196–197why, one step back
196 - Sections stack. Example combining all three:
197 ```sh

Change the example command in the 0.72.0 changelogJunegunn Choibefore adoption27dab24

line 198why, one step back
198 ps -ef | fzf --reverse --style full \

Add --{header,header-lines,footer}-border=inlineJunegunn Choibefore adoptiond754cfa

lines 199–200why, one step back
199 --header 'Select a process' --header-lines 1 \
200 --bind 'load:transform-footer:echo $FZF_TOTAL_COUNT processes' \

Change the example command in the 0.72.0 changelogJunegunn Choibefore adoption27dab24

line 201why, one step back
201 --header-border dashed --header-first \

0.72.0Junegunn Choibefore adoption6fefe02

line 202why, one step back
202 --header-lines-border inline --footer-border inline

Add --{header,header-lines,footer}-border=inlineJunegunn Choibefore adoptiond754cfa

lines 203–205why, one step back
203 ```
204 - `--header-label` and `--footer-label` render on their respective separator row.205 - The separator inherits `--color list-border` when the section's own border color is not explicitly set.

Update CHANGELOG (0.72.0)Junegunn Choibefore adoption43f0508

line 206why, one step back
206 - `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.

Add dashed border styleJunegunn Choibefore adoption7782da6

lines 207–209why, one step back
207- New `dashed` border style with dashed edges (`╶` / `┆`) and rounded corners.
208 - `--border=dashed`, `--list-border=dashed`, etc.209 - Works with inline sections (T-junctions render correctly).

Update CHANGELOG (0.72.0)Junegunn Choibefore adoption43f0508

lines 210–214why, one step back
210- [vim] Move and resize popup window when detecting `VimResized` event (#4778) (@Vulcalien)
211- Bug fixes212 - Fixed gutter display in `--style=minimal`213 - Fixed arrow keys / Home / End without modifiers being ignored under the kitty keyboard protocol (#4776) (@TymekDev)214 - bash: Persist history deletion when `histappend` is on (#4764)

Add --{header,header-lines,footer}-border=inlineJunegunn Choibefore adoptiond754cfa

line 215why, one step back
215

bash: shift-delete to delete history entries during CTRL-RJunegunn Choibefore adoption76efddd

lines 216–217why, one step back
2160.71.0
217------

0.71.0Junegunn Choibefore adoption62899fd

lines 218–219why, one step back
218_Release highlights: https://junegunn.github.io/fzf/releases/0.71.0/_
219

Support zellij floating pane via --popup (new name for --tmux) (#4145)Junegunn Choibefore adoption6f17d49

lines 220–223why, one step back
220- Added `--popup` as a new name for `--tmux` with Zellij support
221 - `--popup` starts fzf in a tmux popup or a Zellij floating pane222 - `--tmux` is now an alias for `--popup`223 - Requires tmux 3.3+ or Zellij 0.44+

bash: shift-delete to delete history entries during CTRL-RJunegunn Choibefore adoption76efddd

lines 224–237why, one step back
224- Cross-reload item identity with `--id-nth`
225 - Added `--id-nth=NTH` to define item identity fields for cross-reload operations226 - When a `reload` is triggered with tracking enabled, fzf searches for the tracked item by its identity fields in the new list.227 - `--track --id-nth ..` tracks by the entire line228 - `--track --id-nth 1` tracks by the first field229 - `--track` without `--id-nth` retains the existing index-based tracking behavior230 - The UI is temporarily blocked (prompt dimmed, input disabled) until the item is found or loading completes.231 - Press `Escape` or `Ctrl-C` to cancel the blocked state without quitting232 - Info line shows `+T*` / `+t*` while searching233 - With `--multi`, selected items are preserved across `reload-sync` by matching their identity fields234- Performance improvements235 - The search performance now scales linearly with the number of CPU cores, as we dropped static partitioning to allow better load balancing across threads.236 ```237 === query: 'linux' ===

0.71.0Junegunn Choibefore adoption62899fd

lines 238–242why, one step back
238 [all] baseline: 21.95ms current: 17.47ms (1.26x) matches: 179966 (12.79%)
239 [1T] baseline: 179.63ms current: 180.53ms (1.00x) matches: 179966 (12.79%)240 [2T] baseline: 97.38ms current: 90.05ms (1.08x) matches: 179966 (12.79%)241 [4T] baseline: 53.83ms current: 44.77ms (1.20x) matches: 179966 (12.79%)242 [8T] baseline: 41.66ms current: 22.58ms (1.84x) matches: 179966 (12.79%)

bash: shift-delete to delete history entries during CTRL-RJunegunn Choibefore adoption76efddd

lines 243–246why, one step back
243 ```
244 - Improved the cache structure, reducing memory footprint per entry by 86x.245 - With the reduced per-entry cost, the cache now has broader coverage.246- Shell integration improvements

bash: CTRL-R now supports multi-select and batch deletionJunegunn Choibefore adoptiona00df93

line 247why, one step back
247 - bash: CTRL-R now supports multi-select and `shift-delete` to delete history entries (#4715)

Update changelogbitraidbefore adoptiond7a132b

lines 248–251why, one step back
248 - fish:
249 - Improved command history (CTRL-R) (#4703) (@bitraid)250 - Rewrite completion script (SHIFT-TAB) (#4731) (@bitraid)251 - Increase minimum fish version requirement to 3.4.0 (#4731) (@bitraid)

bash: shift-delete to delete history entries during CTRL-RJunegunn Choibefore adoption76efddd

line 252why, one step back
252- `GET /` HTTP endpoint now includes `positions` field in each match entry, providing the indices of matched characters for external highlighting (#4726)

0.71.0Junegunn Choibefore adoption62899fd

line 253why, one step back
253- Allow adaptive height with negative value (`--height=~-HEIGHT`) (#4682)

bash: shift-delete to delete history entries during CTRL-RJunegunn Choibefore adoption76efddd

lines 254–259why, one step back
254- Bug fixes
255 - `--walker=follow` no longer follows symlinks whose target is an ancestor of the walker root, avoiding severe resource exhaustion when a symlink points outside the tree (e.g. Wine's `z:` → `/`) (#4710)256 - Fixed AWK tokenizer not treating a new line character as whitespace257 - Fixed `--{accept,with}-nth` removing trailing whitespaces with a non-default `--delimiter`258 - Fixed OSC8 hyperlinks being mangled when the URL contains unicode characters (#4707)259 - Fixed `--with-shell` not handling quoted arguments correctly (#4709)

0.71.0Junegunn Choibefore adoption62899fd

lines 260–265why, one step back
260 - Fixed child processes not being terminated on Windows (#4723) (@pjeby)
261 - Fixed preview scrollbar not rendered after `toggle-preview`262 - Fixed preview follow/scroll with long wrapped lines263 - Fixed tab width when `--frozen-left` is used264 - Fixed preview mouse events being processed when no preview window exists265 - zsh: Fixed history widget when `sh_glob` option is on (#4714) (@EvanHahn)

bash: shift-delete to delete history entries during CTRL-RJunegunn Choibefore adoption76efddd

lines 266–3472why, one step back
266
2670.70.0268------269- Added `change-with-nth` action for dynamically changing the `--with-nth` option.270 - Requires `--with-nth` to be set initially.271 - Multiple options separated by `|` can be given to cycle through.272 ```sh273 echo -e "a b c\nd e f\ng h i" | fzf --with-nth .. \274 --bind 'space:change-with-nth(1|2|3|1,3|2,3|)'275 ```276- Added `change-header-lines` action for dynamically changing the `--header-lines` option277- Performance improvements (1.3x to 1.9x faster filtering depending on query)278 ```279 === query: 'l' ===280 [all] baseline: 168.87ms current: 95.21ms (1.77x) matches: 5069891 (94.78%)281 [1T] baseline: 1652.22ms current: 841.40ms (1.96x) matches: 5069891 (94.78%)282283 === query: 'lin' ===284 [all] baseline: 343.27ms current: 252.59ms (1.36x) matches: 3516507 (65.74%)285 [1T] baseline: 3199.89ms current: 2230.64ms (1.43x) matches: 3516507 (65.74%)286287 === query: 'linux' ===288 [all] baseline: 85.47ms current: 63.72ms (1.34x) matches: 307229 (5.74%)289 [1T] baseline: 774.64ms current: 589.32ms (1.31x) matches: 307229 (5.74%)290291 === query: 'linuxlinux' ===292 [all] baseline: 55.13ms current: 35.67ms (1.55x) matches: 12230 (0.23%)293 [1T] baseline: 461.99ms current: 332.38ms (1.39x) matches: 12230 (0.23%)294295 === query: 'linuxlinuxlinux' ===296 [all] baseline: 51.77ms current: 32.53ms (1.59x) matches: 865 (0.02%)297 [1T] baseline: 409.99ms current: 296.33ms (1.38x) matches: 865 (0.02%)298 ```299- Fixed `nth` attribute merge order to respect precedence hierarchy (#4697)300- bash: Replaced `printf` with builtin `printf` to bypass local indirections (#4684) (@DarrenBishop)3013020.68.0303------304- Implemented word wrapping in the list section305 - Added `--wrap=word` (or `--wrap-word`) option and `toggle-wrap-word` action for word-level line wrapping in the list section306 - Changed default binding of `ctrl-/` and `alt-/` from `toggle-wrap` to `toggle-wrap-word`307 ```sh308 fzf --wrap=word309 ```310- Implemented word wrapping in the preview window311 - Added `wrap-word` flag for `--preview-window` to enable word-level wrapping312 - Added `toggle-preview-wrap-word` action313 ```sh314 fzf --preview 'bat --style=plain --color=always {}' \315 --preview-window wrap-word \316 --bind space:toggle-preview-wrap-word317 ```318- Added support for underline style variants in `--color`: `underline-double`, `underline-curly`, `underline-dotted`, `underline-dashed`319 ```sh320 fzf --color 'fg:underline-curly,current-fg:underline-dashed'321 ```322- Added support for underline styles (`4:N`) and underline colors (SGR 58/59)323 ```sh324 # In the list section325 printf '\e[4:3;58;2;255;0;0mRed curly underline\e[0m\n' | fzf --ansi326327 # In the preview window328 fzf --preview "printf '\e[4:3;58;2;255;0;0mRed curly underline\e[0m\n'"329 ```330- Added `--preview-wrap-sign` to set a different wrap indicator for the preview window331- Added `alt-gutter` color option (#4602) (@hedgieinsocks)332- Added `$FZF_WRAP` environment variable to child processes (`char` or `word` when wrapping is enabled) (#4672) (@bitraid)333- fish: Improved command history (CTRL-R) (#4672) (@bitraid)334 - Enabled syntax highlighting in the list on fish 4.3.3+335 - Added syntax-highlighted preview window that auto-shows for long or multi-line commands336 - Added `ALT-ENTER` to reformat and insert selected commands337 - Improved handling of bulk deletion of selected history entries (`SHIFT-DELETE`)338- Added fish completion support (#4605) (@lalvarezt)339- zsh: Handle multi-line history selection (#4595) (@LangLangBart)340- Bug fixes341 - Fixed `_fzf_compgen_{path,dir}` to respect `FZF_COMPLETION_{PATH,DIR}_OPTS` (#4592) (@shtse8, @LangLangBart)342 - Fixed `--preview-window follow` not working correctly with wrapping (#3243, #4258)343 - Fixed symlinks to directories being returned as files (#4676) (@skk64)344 - Fixed SIGHUP signal handling (#4668) (@LangLangBart)345 - Fixed preview process not killed on exit (#4667)346 - Fixed coloring of items with zero-width characters (#4620)347 - Fixed `track-current` unset after a combined movement action (#4649)348 - Fixed `--accept-nth` being ignored in filter mode (#4636) (@charemma)349 - Fixed display width calculation with `maxWidth` (#4596) (@LangLangBart)350 - Fixed clearing of the rest of the current line on start (#4652)351 - Fixed `x-api-key` header not required for GET requests (#4627)352 - Fixed key reading not cancelled when `execute` triggered via a server request (#4653)353 - Fixed rebind of readline command `redraw-current-line` (#4635) (@jameslazo)354 - Fixed `fzf-tmux` `TERM` quoting and added `mktemp` usage (#4664) (@Goofygiraffe06)355 - Do not allow very long queries in `FuzzyMatchV2` (#4608)3563570.67.0358------359- Added `--freeze-left=N` option to keep the leftmost N columns always visible.360 ```sh361 # Keep the file name column fixed and always visible362 git grep --line-number --color=always -- '' |363 fzf --ansi --delimiter : --freeze-left 1364365 # Can be used with --keep-right366 git grep --line-number --color=always -- '' |367 fzf --ansi --delimiter : --freeze-left 1 --keep-right368 ```369- Also added `--freeze-right=N` option to keep the rightmost N columns always visible.370 ```sh371 # Stronger version of --keep-right that always keeps the right-end visible372 fd | fzf --freeze-right 1373374 # Keep the base name always visible375 fd | fzf --freeze-right 1 --delimiter /376377 # Keep both leftmost and rightmost components visible378 fd | fzf --freeze-left 1 --freeze-right 1 --delimiter /379 ```380- Updated `--info=inline` to print the spinner (load indicator).381- Bug fixes3823830.66.1384------385- Bug fixes386 - Fixed a bug preventing 'ctrl-h' from being bound to an action (#4556)387 - Fixed `--no-color` / `NO_COLOR` theme (#4561)3883890.66.0390------391392### Quick summary393394This version introduces many new features centered around the new "raw" mode.395396| Type | Class | Name | Description |397| :-- | :-- | :-- | :-- |398| New | Option | `--raw` | Enable raw mode by default |399| New | Option | `--gutter CHAR` | Set the gutter column character |400| New | Option | `--gutter-raw CHAR` | Set the gutter column character in raw mode |401| Enhancement | Option | `--listen SOCKET` | Added support for Unix domain sockets |402| New | Action | `toggle-raw` | Toggle raw mode |403| New | Action | `enable-raw` | Enable raw mode |404| New | Action | `disable-raw` | Disable raw mode |405| New | Action | `up-match` | Move up to the matching item |406| New | Action | `down-match` | Move down to the matching item |407| New | Action | `best` | Move to the matching item with the best score |408| New | Color | `nomatch` | Color for non-matching items in raw mode |409| New | Env Var | `FZF_RAW` | Matching status in raw mode (0, 1, or undefined) |410| New | Env Var | `FZF_DIRECTION` | `up` or `down` depending on the layout |411| New | Env Var | `FZF_SOCK` | Path to the Unix domain socket fzf is listening on |412| Enhancement | Key | `CTRL-N` | `down` -> `down-match` |413| Enhancement | Key | `CTRL-P` | `up` -> `up-match` |414| Enhancement | Shell | `CTRL-R` binding | Toggle raw mode with `ALT-R` |415| Enhancement | Shell | `CTRL-R` binding | Opt-out with an empty `FZF_CTRL_R_COMMAND` |416417### 1. Introducing "raw" mode418419![](https://github.com/user-attachments/assets/9640ae11-b5f7-43fb-95f1-c29307fc17c2)420421This version introduces a new "raw" mode (named so because it shows the list422"unfiltered"). In raw mode, non-matching items stay in their original positions,423but appear dimmed. This allows you to see the surrounding items of a match and424better understand the context of it. You can enable raw mode by default with425`--raw`, but it's often more useful when toggled dynamically with the426`toggle-raw` action.427428```sh429tree | fzf --reverse --bind alt-r:toggle-raw430```431432While non-matching items are displayed in a dimmed color, they are treated just433like matching items, so you place the cursor on them and perform any action. If434you prefer to navigate only through matching items, use the `down-match` and435`up-match` actions, which are from now on bound to `CTRL-N` and `CTRL-P`436respectively, and also to `ALT-DOWN` and `ALT-UP`.437438| Key | Action | With `--history` |439| :-- | :-- | :-- |440| `down` | `down` | |441| `up` | `up` | |442| `ctrl-j` | `down` | |443| `ctrl-k` | `up` | |444| `ctrl-n` | `down-match` | `next-history` |445| `ctrl-p` | `up-match` | `prev-history` |446| `alt-down` | `down-match` | |447| `alt-up` | `up-match` | |448449> [!NOTE]450> `CTRL-N` and `CTRL-P` are bound to `next-history` and `prev-history` when451> `--history` option is enabled, so in that case, you'll need to manually bind452> them, or use `ALT-DOWN` and `ALT-UP` instead.453454> [!TIP]455> `up-match` and `down-match` are equivalent to `up` and `down` when not in456> raw mode, so you can safely bind them to `up` and `arrow` keys if you prefer.457> ```sh458> fzf --bind up:up-match,down:down-match459> ```460461#### Customizing the behavior462463In raw mode, the input list is presented in its original order, unfiltered, and464your cursor will not move to the matching item automatically. Here are ways to465customize the behavior.466467```sh468# When the result list is updated, move the cursor to the item with the best score469# (assuming sorting is not disabled)470fzf --raw --bind result:best471472# Move to the first matching item in the original list473# - $FZF_RAW is set to 0 when raw mode is enabled and the current item is a non-match474# - $FZF_DIRECTION is set to either 'up' or 'down' depending on the layout direction475fzf --raw --bind 'result:first+transform:[[ $FZF_RAW = 0 ]] && echo $FZF_DIRECTION-match'476```477478#### Customizing the look479480##### Gutter481482To make the mode visually distinct, the gutter column is rendered in a dashed483line using `▖` character. But you can customize it with the `--gutter-raw CHAR`484option.485486```sh487# Use a thinner gutter instead of the default dashed line488fzf --bind alt-r:toggle-raw --gutter-raw ▎489```490491##### Color and style of non-matching items492493Non-matching items are displayed in a dimmed color by default, but you can494change it with the `--color nomatch:...` option.495496```sh497fzf --raw --color nomatch:red498fzf --raw --color nomatch:red:dim499fzf --raw --color nomatch:red:dim:strikethrough500fzf --raw --color nomatch:red:dim:strikethrough:italic501```502503For colored input, dimming alone may not be enough, and you may prefer to remove504colors entirely. For that case, a new special style attribute `strip` has been505added.506507```sh508fd --color always | fzf --ansi --raw --color nomatch:dim:strip:strikethrough509```510511#### Conditional actions for raw mode512513You may want to perform different actions depending on whether the current item514is a match or not. For that, fzf now exports `$FZF_RAW` environment variable.515516It's:517518- Undefined if raw mode is disabled519- `1` if the current item is a match520- `0` otherwise521522```sh523# Do not allow selecting non-matching items524fzf --raw --bind 'enter:transform:[[ ${FZF_RAW-1} = 1 ]] && echo accept || echo bell'525```526527#### Leveraging raw mode in shell integration528529The `CTRL-R` binding (command history) now lets you toggle raw mode with `ALT-R`.530531### 2. Style changes532533The screenshot on the right shows the updated gutter style:534535![](https://github.com/user-attachments/assets/8ea7b5ef-c99e-4686-905b-22eb078b700a)536537This version includes a few minor updates to fzf's classic visual style:538539- The gutter column is now narrower, rendered with the left-half block character (`▌`).540- Markers no longer use background colors.541- The `--color base16` theme (alias: `16`) has been updated for better compatibility with both dark and light themes.542543### 3. `--listen` now supports Unix domain sockets544545If an argument to `--listen` ends with `.sock`, fzf will listen on a Unix546domain socket at the specified path.547548```sh549fzf --listen /tmp/fzf.sock --no-tmux550551# GET552curl --unix-socket /tmp/fzf.sock http553554# POST555curl --unix-socket /tmp/fzf.sock http -d up556```557558Note that any existing file at the given path will be removed before creating559the socket, so avoid using an important file path.560561### 4. Added options562563#### `--gutter CHAR`564565The gutter column can now be customized using `--gutter CHAR` and styled with566`--color gutter:...`. Examples:567568```sh569# Right-aligned gutter570fzf --gutter '▐'571572# Even thinner gutter573fzf --gutter '▎'574575# Yellow checker pattern576fzf --gutter '▚' --color gutter:yellow577578# Classic style579fzf --gutter ' ' --color gutter:reverse580```581582#### `--gutter-raw CHAR`583584As noted above, the `--gutter-raw CHAR` option was also added for customizing the gutter column in raw mode.585586### 5. Added actions587588The following actions were introduced to support working with raw mode:589590| Action | Description |591| :-- | :-- |592| `toggle-raw` | Toggle raw mode |593| `enable-raw` | Enable raw mode |594| `disable-raw` | Disable raw mode |595| `up-match` | Move up to the matching item; identical to `up` if raw mode is disabled |596| `down-match` | Move down to the matching item; identical to `down` if raw mode is disabled |597| `best` | Move to the matching item with the best score; identical to `first` if raw mode is disabled |598599### 6. Added environment variables600601#### `$FZF_DIRECTION`602603`$FZF_DIRECTION` is now exported to child processes, indicating the list direction of the current layout:604605- `up` for the default layout606- `down` for `reverse` or `reverse-list`607608This simplifies writing transform actions involving layout-dependent actions609like `{up,down}-match`, `{up,down}-selected`, and `toggle+{up,down}`.610611```sh612fzf --raw --bind 'result:first+transform:[[ $FZF_RAW = 0 ]] && echo $FZF_DIRECTION-match'613```614615#### `$FZF_SOCK`616617When fzf is listening on a Unix domain socket using `--listen`, the path to the618socket is exported as `$FZF_SOCK`, analogous to `$FZF_PORT` for TCP sockets.619620#### `$FZF_RAW`621622As described above, `$FZF_RAW` is now exported to child processes in raw mode,623indicating whether the current item is a match (`1`) or not (`0`). It is not624defined when not in raw mode.625626#### `$FZF_CTRL_R_COMMAND`627628You can opt-out `CTRL-R` binding from the shell integration by setting629`FZF_CTRL_R_COMMAND` to an empty string. Setting it to any other value is not630supported and will result in a warning.631632```sh633# Disable the CTRL-R binding from the shell integration634FZF_CTRL_R_COMMAND= eval "$(fzf --bash)"635```636637### 7. Added key support for `--bind`638639Pull request [#3996](https://github.com/junegunn/fzf/pull/3996) added support640for many additional keys for `--bind` option, such as `ctrl-backspace`.641642### 8. Breaking changes643644#### Hiding the gutter column645646In the previous versions, the recommended way to hide the gutter column was to647set `--color gutter:-1`. That's because the gutter column was just a space648character, reversed. But now that it's using a visible character (`▌`), applying649the default color is no longer enough to hide it. Instead, you can set it to650a space character.651652```sh653# Hide the gutter column654fzf --gutter ' '655656# Classic style657fzf --gutter ' ' --color gutter:reverse658```659660#### `--color` option661662In the previous versions, some elements had default style attributes applied and663you would have to explicitly unset them with `regular` attribute if you wanted664to reset them. This is no longer needed now, as the default style attributes665are applied only when you do not specify any color or style for that element.666667```sh668# No 'dim', just red and italic.669fzf --ghost 'Type to search' --color ghost:red:italic670```671672#### Compatibility changes673674Starting with this release, fzf is built with Go 1.23. Support for some old OS versions has been dropped.675676See https://go.dev/wiki/MinimumRequirements.6776780.65.2679------680- Bug fixes and improvements681 - Fix incorrect truncation of `--info-command` with `--info=inline-right` (#4479)682 - [install] Support old uname in macOS (#4492)683 - [bash 3] Fix `CTRL-T` and `ALT-C` to preserve the last yank (#4496)684 - Do not unset `FZF_DEFAULT_*` variables when using winpty (#4497) (#4400)685 - Fix rendering of items with tabs when using a non-default ellipsis (#4505)686- **This is the final release to support Windows 7.**687 - Future versions will be built with the latest Go toolchain, which has dropped support for Windows 7.6886890.65.1690------691- Fixed incorrect `$FZF_CLICK_HEADER_WORD` and `$FZF_CLICK_FOOTER_WORD` when the header or footer contains ANSI escape sequences and tab characters.692- Fixed a bug where you cannot unset the default `--nth` using `change-nth` action.693- Fixed a highlighting bug when using `--color fg:dim,nth:regular` pattern over ANSI-colored items.6946950.65.0696------697- Added `click-footer` event that is triggered when the footer section is clicked. When the event is triggered, the following environment variables are set:698 - `$FZF_CLICK_FOOTER_COLUMN` - clicked column (1-based)699 - `$FZF_CLICK_FOOTER_LINE` - clicked line (1-based)700 - `$FZF_CLICK_FOOTER_WORD` - the word under the cursor701 ```sh702 fzf --footer $'[Edit] [View]\n[Copy to clipboard]' \703 --with-shell 'bash -c' \704 --bind 'click-footer:transform:705 [[ $FZF_CLICK_FOOTER_WORD =~ Edit ]] && echo "execute:vim \{}"706 [[ $FZF_CLICK_FOOTER_WORD =~ View ]] && echo "execute:view \{}"707 (( FZF_CLICK_FOOTER_LINE == 2 )) && (( FZF_CLICK_FOOTER_COLUMN < 20 )) &&708 echo "execute-silent(echo -n \{} | pbcopy)+bell"709 '710 ```711- Added `trigger(...)` action that triggers events bound to another key or event.712 ```sh713 # You can click on each key name to trigger the actions bound to that key714 fzf --footer 'Ctrl-E: Edit / Ctrl-V: View / Ctrl-Y: Copy to clipboard' \715 --with-shell 'bash -c' \716 --bind 'ctrl-e:execute:vim {}' \717 --bind 'ctrl-v:execute:view {}' \718 --bind 'ctrl-y:execute-silent(echo -n {} | pbcopy)+bell' \719 --bind 'click-footer:transform:720 [[ $FZF_CLICK_FOOTER_WORD =~ Ctrl ]] && echo "trigger(${FZF_CLICK_FOOTER_WORD%:})"721 '722 ```723 - You can specify a series of keys and events724 ```sh725 fzf --bind 'a:up,b:trigger(a,a,a)'726 ```727- Added support for `{*n}` and `{*nf}` placeholder.728 - `{*n}` evaluates to the zero-based ordinal index of all matched items.729 - `{*nf}` evaluates to the temporary file containing that.730- Bug fixes and improvements731 - [neovim] Fixed margin background color when `&winborder` is used (#4453)732 - Fixed rendering error when hiding a preview window without border (#4465)733 - fix(shell): check for mawk existence before version check (#4468)734 - Thanks to @LangLangBart and @akinomyoga735 - Fixed `--no-header-lines-border` behavior (08027e7a)7367370.64.0738------739- Added `multi` event that is triggered when the multi-selection has changed.740 ```sh741 fzf --multi \742 --bind 'ctrl-a:select-all,ctrl-d:deselect-all' \743 --bind 'multi:transform-footer:(( FZF_SELECT_COUNT )) && echo "Selected $FZF_SELECT_COUNT item(s)"'744 ```745- [Halfwidth and fullwidth alphanumeric and punctuation characters](https://en.wikipedia.org/wiki/Halfwidth_and_Fullwidth_Forms_(Unicode_block)) are now internally normalized to their ASCII equivalents to allow matching with ASCII queries.746 ```sh747 echo ABC| fzf -q abc748 ```749- Renamed `clear-selection` action to `clear-multi` for consistency.750 - `clear-selection` remains supported as an alias for backward compatibility.751- Bug fixes752 - Fixed a bug that could cause fzf to abort due to incorrect update ordering.753 - Fixed a bug where some multi-selections were lost when using `exclude` or `change-nth`.7547550.63.0756------757_Release highlights: https://junegunn.github.io/fzf/releases/0.63.0/_758759- Added footer. The default border style for footer is `line`, which draws a single separator line.760 ```sh761 fzf --reverse --footer "fzf: friend zone forever"762 ```763 - Options764 - `--footer[=STRING]`765 - `--footer-border[=STYLE]`766 - `--footer-label=LABEL`767 - `--footer-label-pos=COL[:bottom]`768 - Colors769 - `footer`770 - `footer-bg`771 - `footer-border`772 - `footer-label`773 - Actions774 - `change-footer`775 - `transform-footer`776 - `bg-transform-footer`777 - `change-footer-label`778 - `transform-footer-label`779 - `bg-transform-footer-label`780- `line` border style is now allowed for all types of border except for `--list-border`.781 ```sh782 fzf --height 50% --style full:line --preview 'cat {}' \783 --bind 'focus:bg-transform-header(file {})+bg-transform-footer(wc {})'784 ```785- Added `{*}` placeholder flag that evaluates to all matched items.786 ```bash787 seq 10000 | fzf --preview "awk '{sum += \$1} END {print sum}' {*f}"788 ```789 - Use this with caution, as it can make fzf sluggish for large lists.790- Added asynchronous transform actions with `bg-` prefix that run asynchronously in the background, along with `bg-cancel` action to cancel currently running `bg-transform` actions.791 ```sh792 # Implement popup that disappears after 1 second793 # * Use footer as the popup794 # * Use `bell` to ring the terminal bell795 # * Use `bg-transform-footer` to clear the footer after 1 second796 # * Use `bg-cancel` to cancel currently running background transform actions797 fzf --multi --list-border \798 --bind 'enter:execute-silent(echo -n {+} | pbcopy)+bell' \799 --bind 'enter:+transform-footer(echo Copied {} to clipboard)' \800 --bind 'enter:+bg-cancel+bg-transform-footer(sleep 1)'801802 # It's okay for the commands to take a little while because they run in the background803 GETTER='curl -s http://metaphorpsum.com/sentences/1'804 fzf --style full --border --preview : \805 --bind "focus:bg-transform-header:$GETTER" \806 --bind "focus:+bg-transform-footer:$GETTER" \807 --bind "focus:+bg-transform-border-label:$GETTER" \808 --bind "focus:+bg-transform-preview-label:$GETTER" \809 --bind "focus:+bg-transform-input-label:$GETTER" \810 --bind "focus:+bg-transform-list-label:$GETTER" \811 --bind "focus:+bg-transform-header-label:$GETTER" \812 --bind "focus:+bg-transform-footer-label:$GETTER" \813 --bind "focus:+bg-transform-ghost:$GETTER" \814 --bind "focus:+bg-transform-prompt:$GETTER"815 ```816- Added support for full-line background color in the list section817 ```sh818 for i in $(seq 16 255); do819 echo -e "\x1b[48;5;${i}m\x1b[0Khello"820 done | fzf --ansi821 ```822- SSH completion enhancements by @akinomyoga823- Bug fixes and improvements8248250.62.0826------827- Relaxed the `--color` option syntax to allow whitespace-separated entries (in addition to commas), making multi-line definitions easier to write and read828 ```sh829 # seoul256-light830 fzf --style full --color='831 fg:#616161 fg+:#616161832 bg:#ffffff bg+:#e9e9e9 alt-bg:#f1f1f1833 hl:#719872 hl+:#719899834 pointer:#e12672 marker:#e17899835 header:#719872836 spinner:#719899 info:#727100837 prompt:#0099bd query:#616161838 border:#e1e1e1839 '840 ```841- Added `alt-bg` color to create striped lines to visually separate rows842 ```sh843 fzf --color bg:237,alt-bg:238,current-bg:236 --highlight-line844845 declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |846 bat --plain --language bash --color always |847 fzf --read0 --ansi --reverse --multi \848 --color bg:237,alt-bg:238,current-bg:236 --highlight-line849 ```850- [fish] Improvements in CTRL-R binding (@bitraid)851 - You can trigger CTRL-R in the middle of a command to insert the selected item852 - You can delete history items with SHIFT-DEL853- Bug fixes and improvements854 - Fixed unnecessary 100ms delay after `reload` (#4364)855 - Fixed `selected-bg` not applied to colored items (#4372)8568570.61.3858------859- Reverted #4351 as it caused `tmux run-shell 'fzf --tmux'` to fail (#4559 #4560)860- More environment variables for child processes (#4356)8618620.61.2863------864- Fixed panic when using header border without pointer/marker (@phanen)865- Fixed `--tmux` option when already inside a tmux popup (@peikk0)866- Bug fixes and improvements in CTRL-T binding of fish (#4334) (@bitraid)867- Added `--no-tty-default` option to make fzf search for the current TTY device instead of defaulting to `/dev/tty` (#4242)8688690.61.1870------871- Disable bracketed-paste mode on exit. This fixes issue where pasting breaks after running fzf on old bash versions that don't support the mode.8728730.61.0874------875- Added `--ghost=TEXT` to display a ghost text when the input is empty876 ```sh877 # Display "Type to search" when the input is empty878 fzf --ghost "Type to search"879 ```880- Added `change-ghost` and `transform-ghost` actions for dynamically changing the ghost text881- Added `change-pointer` and `transform-pointer` actions for dynamically changing the pointer sign882- Added `r` flag for placeholder expression (raw mode) for unquoted output883- Bug fixes and improvements8848850.60.3886------887- Bug fixes and improvements888 - [fish] Enable multiple history commands insertion (#4280) (@bitraid)889 - [walker] Append '/' to directory entries on MSYS2 (#4281)890 - Trim trailing whitespaces after processing ANSI sequences (#4282)891 - Remove temp files before `become` when using `--tmux` option (#4283)892 - Fix condition for using item numlines cache (#4285) (@alex-huff)893 - Make `--accept-nth` compatible with `--select-1` (#4287)894 - Increase the query length limit from 300 to 1000 (#4292)895 - [windows] Prevent fzf from consuming user input while paused (#4260)8968970.60.2898------899- Template for `--with-nth` and `--accept-nth` now supports `{n}` which evaluates to the zero-based ordinal index of the item900- Fixed a regression that caused the last field in the "nth" expression to be trimmed when a regular expression delimiter is used901 - Thanks to @phanen for the fix902- Fixed 'jump' action when the pointer is an empty string9039040.60.1905------906- Bug fixes and minor improvements907 - Built-in walker now prints directory entries with a trailing slash908 - Fixed a bug causing unexpected behavior with [fzf-tab](https://github.com/Aloxaf/fzf-tab). Please upgrade if you use it.909- Thanks to @alexeisersun, @bitraid, @Lompik, and @fsc0 for the contributions9109110.60.0912------913_Release highlights: https://junegunn.github.io/fzf/releases/0.60.0/_914915- Added `--accept-nth` for choosing output fields916 ```sh917 ps -ef | fzf --multi --header-lines 1 | awk '{print $2}'918 # Becomes919 ps -ef | fzf --multi --header-lines 1 --accept-nth 2920921 git branch | fzf | cut -c3-922 # Can be rewritten as923 git branch | fzf --accept-nth -1924 ```925- `--accept-nth` and `--with-nth` now support a template that includes multiple field index expressions in curly braces926 ```sh927 echo foo,bar,baz | fzf --delimiter , --accept-nth '{1}, {3}, {2}'928 # foo, baz, bar929930 echo foo,bar,baz | fzf --delimiter , --with-nth '{1},{3},{2},{1..2}'931 # foo,baz,bar,foo,bar932 ```933- Added `exclude` and `exclude-multi` actions for dynamically excluding items934 ```sh935 seq 100 | fzf --bind 'ctrl-x:exclude'936937 # 'exclude-multi' will exclude the selected items or the current item938 seq 100 | fzf --multi --bind 'ctrl-x:exclude-multi'939 ```940- Preview window now prints wrap indicator when wrapping is enabled941 ```sh942 seq 100 | xargs | fzf --wrap --preview 'echo {}' --preview-window wrap943 ```944- Bug fixes and improvements9459460.59.0947------948_Release highlights: https://junegunn.github.io/fzf/releases/0.59.0/_949950- Prioritizing file name matches (#4192)951 - Added a new tiebreak option `pathname` for prioritizing file name matches952 - `--scheme=path` now sets `--tiebreak=pathname,length`953 - fzf will automatically choose `path` scheme954 * when the input is a TTY device, where fzf would start its built-in walker or run `$FZF_DEFAULT_COMMAND` which is usually a command for listing files,955 * but not when `reload` or `transform` action is bound to `start` event, because in that case, fzf can't be sure of the input type.956- Added `--header-lines-border` to display header from `--header-lines` with a separate border957 ```sh958 # Use --header-lines-border to separate two headers959 ps -ef | fzf --style full --layout reverse --header-lines 1 \960 --bind 'ctrl-r:reload(ps -ef)' --header 'Press CTRL-R to reload' \961 --header-lines-border bottom --no-list-border962 ```963- `click-header` event now sets `$FZF_CLICK_HEADER_WORD` and `$FZF_CLICK_HEADER_NTH`. You can use them to implement a clickable header for changing the search scope using the new `transform-nth` action.964 ```sh965 # Click on the header line to limit search scope966 ps -ef | fzf --style full --layout reverse --header-lines 1 \967 --header-lines-border bottom --no-list-border \968 --color fg:dim,nth:regular \969 --bind 'click-header:transform-nth(970 echo $FZF_CLICK_HEADER_NTH971 )+transform-prompt(972 echo "$FZF_CLICK_HEADER_WORD> "973 )'974 ```975 - `$FZF_KEY` was updated to expose the type of the click. e.g. `click`, `ctrl-click`, etc. You can use it to implement a more sophisticated behavior.976 - `kill` completion for bash and zsh were updated to use this feature977- Added `--no-input` option to completely disable and hide the input section978 ```sh979 # Click header to trigger search980 fzf --header '[src] [test]' --no-input --layout reverse \981 --header-border bottom --input-border \982 --bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}'983984 # Vim-like mode switch985 fzf --layout reverse-list --no-input \986 --bind 'j:down,k:up,/:show-input+unbind(j,k,/)' \987 --bind 'enter,esc,ctrl-c:transform:988 if [[ $FZF_INPUT_STATE = enabled ]]; then989 echo "rebind(j,k,/)+hide-input"990 elif [[ $FZF_KEY = enter ]]; then991 echo accept992 else993 echo abort994 fi995 '996 ```997 - You can later show the input section using `show-input` or `toggle-input` action, and hide it again using `hide-input`, or `toggle-input`.998- Extended `{q}` placeholder to support ranges. e.g. `{q:1}`, `{q:2..}`, etc.999- Added `search(...)` and `transform-search(...)` action to trigger an fzf search with an arbitrary query string. This can be used to extend the search syntax of fzf. In the following example, fzf will use the first word of the query to trigger ripgrep search, and use the rest of the query to perform fzf search within the result.1000 ```sh1001 export TEMP=$(mktemp -u)1002 trap 'rm -f "$TEMP"' EXIT10031004 TRANSFORMER='1005 rg_pat={q:1} # The first word is passed to ripgrep1006 fzf_pat={q:2..} # The rest are passed to fzf10071008 if ! [[ -r "$TEMP" ]] || [[ $rg_pat != $(cat "$TEMP") ]]; then1009 echo "$rg_pat" > "$TEMP"1010 printf "reload:sleep 0.1; rg --column --line-number --no-heading --color=always --smart-case %q || true" "$rg_pat"1011 fi1012 echo "+search:$fzf_pat"1013 '1014 fzf --ansi --disabled \1015 --with-shell 'bash -c' \1016 --bind "start,change:transform:$TRANSFORMER"1017 ```1018- You can now bind actions to multiple keys and events at once by writing a comma-separated list of keys and events before the colon1019 ```sh1020 # Load 'ps -ef' output on start and reload it on CTRL-R1021 fzf --bind 'start,ctrl-r:reload:ps -ef'1022 ```1023- `--min-height` option now takes a number followed by `+`, which tells fzf to show at least that many items in the list section. The default value is now changed to `10+`.1024 ```sh1025 # You will only see the input section which takes 3 lines1026 fzf --style=full --height 1% --min-height 310271028 # You will see 3 items in the list section1029 fzf --style full --height 1% --min-height 3+1030 ```1031 - Shell integration scripts were updated to use `--min-height 20+` by default1032- `--header-lines` will be displayed at the top in `reverse-list` layout1033- Added `bell` action to ring the terminal bell1034 ```sh1035 # Press CTRL-Y to copy the current line to the clipboard and ring the bell1036 fzf --bind 'ctrl-y:execute-silent(echo -n {} | pbcopy)+bell'1037 ```1038- Added `toggle-bind` action1039- Bug fixes and improvements1040- Fixed fish script to support fish 3.1.2 or later (@bitraid)104110420.58.01043------1044_Release highlights: https://junegunn.github.io/fzf/releases/0.58.0/_10451046This version introduces three new border types, `--list-border`, `--input-border`, and `--header-border`, offering much greater flexibility for customizing the user interface.10471048<img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-4-borders.png" />10491050Also, fzf now offers "style presets" for quick customization, which can be activated using the `--style` option.10511052| Preset | Screenshot |1053| :--- | :--- |1054| `default` | <img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-style-default.png"/> |1055| `full` | <img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-style-full.png"/> |1056| `minimal` | <img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-style-minimal.png"/> |10571058- Style presets (#4160)1059 - `--style=full[:BORDER_STYLE]`1060 - `--style=default`1061 - `--style=minimal`1062- Border and label for the list section (#4148)1063 - Options1064 - `--list-border[=STYLE]`1065 - `--list-label=LABEL`1066 - `--list-label-pos=COL[:bottom]`1067 - Colors1068 - `list-fg`1069 - `list-bg`1070 - `list-border`1071 - `list-label`1072 - Actions1073 - `change-list-label`1074 - `transform-list-label`1075- Border and label for the input section (prompt line and info line) (#4154)1076 - Options1077 - `--input-border[=STYLE]`1078 - `--input-label=LABEL`1079 - `--input-label-pos=COL[:bottom]`1080 - Colors1081 - `input-fg` (`query`)1082 - `input-bg`1083 - `input-border`1084 - `input-label`1085 - Actions1086 - `change-input-label`1087 - `transform-input-label`1088- Border and label for the header section (#4159)1089 - Options1090 - `--header-border[=STYLE]`1091 - `--header-label=LABEL`1092 - `--header-label-pos=COL[:bottom]`1093 - Colors1094 - `header-fg` (`header`)1095 - `header-bg`1096 - `header-border`1097 - `header-label`1098 - Actions1099 - `change-header-label`1100 - `transform-header-label`1101- Added `--preview-border[=STYLE]` as short for `--preview-window=border[-STYLE]`1102- Added new preview border style `line` which draws a single separator line between the preview window and the rest of the interface1103- fzf will now render a dashed line (`┈┈`) in each `--gap` for better visual separation.1104 ```sh1105 # All bash/zsh functions, highlighted1106 declare -f |1107 perl -0 -pe 's/^}\n/}\0/gm' |1108 bat --plain --language bash --color always |1109 fzf --read0 --ansi --layout reverse --multi --highlight-line --gap1110 ```1111 * You can customize the line using `--gap-line[=STR]`.1112- You can specify `border-native` to `--tmux` so that native tmux border is used instead of `--border`. This can be useful if you start a different program from inside the popup.1113 ```sh1114 fzf --tmux border-native --bind 'enter:execute:less {}'1115 ```1116- Added `toggle-multi-line` action1117- Added `toggle-hscroll` action1118- Added `change-nth` action for dynamically changing the value of the `--nth` option1119 ```sh1120 # Start with --nth 1, then 2, then 3, then back to the default, 11121 echo 'foo foobar foobarbaz' | fzf --bind 'space:change-nth(2|3|)' --nth 1 -q foo1122 ```1123- `--nth` parts of each line can now be rendered in a different text style1124 ```sh1125 # nth in a different style1126 ls -al | fzf --nth -1 --color nth:italic1127 ls -al | fzf --nth -1 --color nth:reverse1128 ls -al | fzf --nth -1 --color nth:reverse:bold11291130 # Dim the other parts1131 ls -al | fzf --nth -1 --color nth:regular,fg:dim11321133 # With 'change-nth'. The current nth option is exported as $FZF_NTH.1134 ps -ef | fzf --reverse --header-lines 1 --header-border bottom --input-border \1135 --color nth:regular,fg:dim \1136 --bind 'ctrl-n:change-nth(8..|1|2|3|4|5|6|7|)' \1137 --bind 'result:transform-prompt:echo "${FZF_NTH}> "'1138 ```1139- A single-character delimiter is now treated as a plain string delimiter rather than a regular expression delimiter, even if it's a regular expression meta-character.1140 - This means you can just write `--delimiter '|'` instead of escaping it as `--delimiter '\|'`1141- Bug fixes1142- Bug fixes and improvements in fish scripts (thanks to @bitraid)114311440.57.01145------1146- You can now resize the preview window by dragging the border1147- Built-in walker improvements1148 - `--walker-root` can take multiple directory arguments. e.g. `--walker-root include src lib`1149 - `--walker-skip` can handle multi-component patterns. e.g. `--walker-skip target/build`1150- Removed long processing delay when displaying images in the preview window1151- `FZF_PREVIEW_*` environment variables are exported to all child processes (#4098)1152- Bug fixes in fish scripts115311540.56.31155------1156- Bug fixes in zsh scripts1157 - fix(zsh): handle backtick trigger edge case (#4090)1158 - revert(zsh): remove 'fc -RI' call in the history widget (#4093)1159 - Thanks to @LangLangBart for the contributions116011610.56.21162------1163- Bug fixes1164 - Fixed abnormal scrolling behavior when `--wrap` is set (#4083)1165 - [zsh] Fixed warning message when `ksh_arrays` is set (#4084)116611670.56.11168------1169- Bug fixes and improvements1170 - Fixed a race condition which would cause fzf to present stale results after `reload` (#4070)1171 - `page-up` and `page-down` actions now work correctly with multi-line items (#4069)1172 - `{n}` is allowed in `SCROLL` expression in `--preview-window` (#4079)1173 - [zsh] Fixed regression in history loading with shared option (#4071)1174 - [zsh] Better command extraction in zsh completion (#4082)1175- Thanks to @LangLangBart, @jaydee-coder, @alex-huff, and @vejkse for the contributions117611770.56.01178------1179- Added `--gap[=N]` option to display empty lines between items.1180 - This can be useful to visually separate adjacent multi-line items.1181 ```sh1182 # All bash functions, highlighted1183 declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |1184 bat --plain --language bash --color always |1185 fzf --read0 --ansi --reverse --multi --highlight-line --gap1186 ```1187 - Or just to make the list easier to read. For single-line items, you probably want to set `--color gutter:-1` as well to hide the gutter.1188 ```sh1189 fzf --info inline-right --gap --color gutter:-11190 ```1191- Added `noinfo` option to `--preview-window` to hide the scroll indicator in the preview window1192- Bug fixes1193 - Thanks to @LangLangBart, @akinomyoga, and @charlievieth for fixing the bugs119411950.55.01196------1197_Release highlights: https://junegunn.github.io/fzf/releases/0.55.0/_11981199- Added `exact-boundary-match` type to the search syntax. When a search term is single-quoted, fzf will search for the exact occurrences of the string with both ends at word boundaries.1200 ```sh1201 fzf --query "'here'" << EOF1202 come here1203 not there1204 EOF1205 ```1206- [bash] Fuzzy path completion is enabled for all commands1207 - 1. If the default completion is not already set1208 - 2. And if the current bash supports `complete -D` option1209 - However, fuzzy completion for some commands can be "dynamically" disabled by the dynamic completion loader1210 - See the comment in `__fzf_default_completion` function for more information1211- Comments are now allowed in `$FZF_DEFAULT_OPTS` and `$FZF_DEFAULT_OPTS_FILE`1212 ```sh1213 export FZF_DEFAULT_OPTS='1214 # Layout options1215 --layout=reverse1216 --info=inline-right # Show info on the right side of the prompt line1217 # ...1218 '1219 ```1220- Hyperlinks (OSC 8) are now supported in the preview window and in the main window1221 ```sh1222 printf '<< \e]8;;http://github.com/junegunn/fzf\e\\Link to \e[32mfz\e[0mf\e]8;;\e\\ >>' | fzf --ansi12231224 fzf --preview "printf '<< \e]8;;http://github.com/junegunn/fzf\e\\Link to \e[32mfz\e[0mf\e]8;;\e\\ >>'"1225 ```1226- The default `--ellipsis` is now `··` instead of `..`.1227- [vim] A spec can have `exit` callback that is called with the exit status of fzf1228 - This can be used to clean up temporary resources or restore the original state when fzf is closed without a selection1229- Fixed `--tmux bottom` when the status line is not at the bottom1230- Fixed extra scroll offset in multi-line mode (`--read0` or `--wrap`)1231- Added fallback `ps` command for `kill` completion on Cygwin123212330.54.31234------1235- Fixed incompatibility of adaptive height specification and 'start:reload'1236 ```sh1237 # A regression in 0.54.0 would cause this to fail1238 fzf --height '~100%' --bind 'start:reload:seq 10'1239 ```1240- Environment variables are now available to `$FZF_DEFAULT_COMMAND`1241 ```sh1242 FZF_DEFAULT_COMMAND='echo $FZF_QUERY' fzf --query foo1243 ```124412450.54.21246------1247- Fixed incorrect syntax highlighting of truncated multi-line entries1248- Updated GoReleaser to 2.1.0 to simplify notarization of macOS binaries1249 - macOS archives will be in `tar.gz` format instead of `zip` format since we no longer notarize the zip files but binaries1250- (Windows) Reverted a mintty fix in 0.54.01251 - As a result, mouse may not work on mintty in fullscreen mode. However, fzf will correctly read non-ASCII input in fullscreen mode (`--no-height`).1252 - fzf unfortunately cannot read non-ASCII input when not in fullscreen mode on Windows. So if you need to input non-ASCII characters, add `--no-height` to your `$FZF_DEFAULT_OPTS`.1253 - Any help in fixing this issue will be appreciated (#3799, #3847).125412550.54.11256------1257- Updated [fastwalk](https://github.com/charlievieth/fastwalk) dependency for built-in directory walker1258 - [fastwalk: add optional sorting and improve documentation](https://github.com/charlievieth/fastwalk/pull/27)1259 - [fastwalk: only check if MSYSTEM is set during MSYS/MSYS2](https://github.com/charlievieth/fastwalk/pull/28)1260 - Thanks to @charlievieth1261- Reverted ALT-C binding of fish to use `cd` instead of `builtin cd`1262 - `builtin cd` was introduced to work around a bug of `cd` coming from `zoxide init --cmd cd fish` where it cannot handle `--` argument.1263 - However, the default `cd` of fish is actually a wrapper function for supporting `cd -`, so we want to use it instead.1264 - See [#3928](https://github.com/junegunn/fzf/pull/3928) for more information and consider helping zoxide fix the bug.126512660.54.01267------1268_Release highlights: https://junegunn.github.io/fzf/releases/0.54.0/_12691270- Implemented line wrap of long items1271 - `--wrap` option enables line wrap1272 - `--wrap-sign` customizes the sign for wrapped lines (default: `↳ `)1273 - `toggle-wrap` action toggles line wrap1274 ```sh1275 history | fzf --tac --wrap --bind 'ctrl-/:toggle-wrap' --wrap-sign $'\t↳ '1276 ```1277 - fzf by default binds `CTRL-/` and `ALT-/` to `toggle-wrap`1278- Updated shell integration scripts to leverage line wrap1279 - CTRL-R binding includes `--wrap-sign $'\t↳ '` to indent wrapped lines1280 - `kill **` completion uses `--wrap` to show the whole line by default1281 instead of showing it in the preview window1282- Added `--info-command` option for customizing the info line1283 ```sh1284 # Prepend the current cursor position in yellow1285 fzf --info-command='echo -e "\x1b[33;1m$FZF_POS\x1b[m/$FZF_INFO 💛"'1286 ```1287 - `$FZF_INFO` is set to the original info text1288 - ANSI color codes are supported1289- Pointer and marker signs can be set to empty strings1290 ```sh1291 # Minimal style1292 fzf --pointer '' --marker '' --prompt '' --info hidden1293 ```1294- Better cache management and improved rendering for `--tail`1295- Improved `--sync` behavior1296 - When `--sync` is provided, fzf will not render the interface until the initial filtering and the associated actions (bound to any of `start`, `load`, `result`, or `focus`) are complete.1297 ```sh1298 # fzf will not render intermediate states1299 (sleep 1; seq 1000000; sleep 1) |1300 fzf --sync --query 5 --listen --bind start:up,load:up,result:up,focus:change-header:Ready1301 ```1302- GET endpoint is now available from `execute` and `transform` actions (it used to timeout due to lock conflict)1303 ```sh1304 fzf --listen --sync --bind 'focus:transform-header:curl -s localhost:$FZF_PORT?limit=0 | jq .'1305 ```1306- Added `offset-middle` action to place the current item is in the middle of the screen1307- fzf will not start the initial reader when `reload` or `reload-sync` is bound to `start` event. `fzf < /dev/null` or `: | fzf` are no longer required and extraneous `load` event will not fire due to the empty list.1308 ```sh1309 # Now this will work as expected. Previously, this would print an invalid header line.1310 # `fzf < /dev/null` or `: | fzf` would fix the problem, but then an extraneous1311 # `load` event would fire and the header would be prematurely updated.1312 fzf --header 'Loading ...' --header-lines 1 \1313 --bind 'start:reload:sleep 1; ps -ef' \1314 --bind 'load:change-header:Loaded!'1315 ```1316- Fixed mouse support on Windows1317- Fixed crash when using `--tiebreak=end` with very long items1318- zsh 5.0 compatibility (thanks to @LangLangBart)1319- Fixed `--walker-skip` to also skip symlinks to directories1320- Fixed `result` event not fired when input stream is not complete1321- New tags will have `v` prefix so that they are available on https://proxy.golang.org/132213230.53.01324------1325_Release highlights: https://junegunn.github.io/fzf/releases/0.53.0/_13261327- Multi-line display1328 - See [Processing multi-line items](https://junegunn.github.io/fzf/tips/processing-multi-line-items/)1329 - fzf can now display multi-line items1330 ```sh1331 # All bash functions, highlighted1332 declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |1333 bat --plain --language bash --color always |1334 fzf --read0 --ansi --reverse --multi --highlight-line13351336 # Ripgrep multi-line output1337 rg --pretty bash | perl -0777 -pe 's/\n\n/\n\0/gm' |1338 fzf --read0 --ansi --multi --highlight-line --reverse --tmux 70%1339 ```1340 - To disable multi-line display, use `--no-multi-line`1341 - CTRL-R bindings of bash, zsh, and fish have been updated to leverage multi-line display1342 - The default `--pointer` and `--marker` have been changed from `>` to Unicode bar characters as they look better with multi-line items1343 - Added `--marker-multi-line` to customize the select marker for multi-line entries with the default set to `╻┃╹`1344 ```1345 ╻First line1346 ┃...1347 ╹Last line1348 ```1349- Native tmux integration1350 - Added `--tmux` option to replace fzf-tmux script and simplify distribution1351 ```sh1352 # --tmux [center|top|bottom|left|right][,SIZE[%]][,SIZE[%]]1353 # Center, 100% width and 70% height1354 fzf --tmux 100%,70% --border horizontal --padding 1,213551356 # Left, 30% width1357 fzf --tmux left,30%13581359 # Bottom, 50% height1360 fzf --tmux bottom,50%1361 ```1362 - To keep the implementation simple, it only uses popups. You need tmux 3.3 or later.1363 - To use `--tmux` in Vim plugin:1364 ```vim1365 let g:fzf_layout = { 'tmux': '100%,70%' }1366 ```1367- Added support for endless input streams1368 - See [Browsing log stream with fzf](https://junegunn.github.io/fzf/tips/browsing-log-streams/)1369 - Added `--tail=NUM` option to limit the number of items to keep in memory. This is useful when you want to browse an endless stream of data (e.g. log stream) with fzf while limiting memory usage.1370 ```sh1371 # Interactive filtering of a log stream1372 tail -f *.log | fzf --tail 100000 --tac --no-sort --exact1373 ```1374- Better Windows Support1375 - fzf now works on Git bash (mintty) out of the box via winpty integration1376 - Many fixes and improvements for Windows1377- man page is now embedded in the binary; `fzf --man` to see it1378- Changed the default `--scroll-off` to 3, as we think it's a better default1379- Process started by `execute` action now directly writes to and reads from `/dev/tty`. Manual `/dev/tty` redirection for interactive programs is no longer required.1380 ```sh1381 # Vim will work fine without /dev/tty redirection1382 ls | fzf --bind 'space:execute:vim {}' > selected1383 ```1384- Added `print(...)` action to queue an arbitrary string to be printed on exit. This was mainly added to work around the limitation of `--expect` where it's not compatible with `--bind` on the same key and it would ignore other actions bound to it.1385 ```sh1386 # This doesn't work as expected because --expect is not compatible with --bind1387 fzf --multi --expect ctrl-y --bind 'ctrl-y:select-all'13881389 # This is something you can do instead1390 fzf --multi --bind 'enter:print()+accept,ctrl-y:select-all+print(ctrl-y)+accept'1391 ```1392 - We also considered making them compatible, but realized that some users may have been relying on the current behavior.1393- [`NO_COLOR`](https://no-color.org/) environment variable is now respected. If the variable is set, fzf defaults to `--no-color` unless otherwise specified.139413950.52.11396------1397- Fixed a critical bug in the Windows version1398 - Windows users are strongly encouraged to upgrade to this version139914000.52.01401------1402- Added `--highlight-line` to highlight the whole current line (à la `set cursorline` of Vim)1403- Added color names for selected lines: `selected-fg`, `selected-bg`, and `selected-hl`1404 ```sh1405 fzf --border --multi --info inline-right --layout reverse --marker ▏ --pointer ▌ --prompt '▌ ' \1406 --highlight-line --color gutter:-1,selected-bg:238,selected-fg:146,current-fg:1891407 ```1408- Added `click-header` event that is triggered when the header section is clicked. When the event is triggered, `$FZF_CLICK_HEADER_COLUMN` and `$FZF_CLICK_HEADER_LINE` are set.1409 ```sh1410 fd --type f |1411 fzf --header $'[Files] [Directories]' --header-first \1412 --bind 'click-header:transform:1413 (( FZF_CLICK_HEADER_COLUMN <= 7 )) && echo "reload(fd --type f)"1414 (( FZF_CLICK_HEADER_COLUMN >= 9 )) && echo "reload(fd --type d)"1415 '1416 ```1417- Add `$FZF_COMPLETION_{DIR,PATH}_OPTS` for separately customizing the behavior of fuzzy completion1418 ```sh1419 # Set --walker options without 'follow' not to follow symbolic links1420 FZF_COMPLETION_PATH_OPTS="--walker=file,dir,hidden"1421 FZF_COMPLETION_DIR_OPTS="--walker=dir,hidden"1422 ```1423- Fixed Windows argument escaping1424- Bug fixes and improvements1425- The code was heavily refactored to allow using fzf as a library in Go programs. The API is still experimental and subject to change.1426 - https://gist.github.com/junegunn/193990b65be48a38aac6ac49d5669170142714280.51.01429------1430- Added a new environment variable `$FZF_POS` exported to the child processes. It's the vertical position of the cursor in the list starting from 1.1431 ```sh1432 # Toggle selection to the top or to the bottom1433 seq 30 | fzf --multi --bind 'load:pos(10)' \1434 --bind 'shift-up:transform:for _ in $(seq $FZF_POS $FZF_MATCH_COUNT); do echo -n +toggle+up; done' \1435 --bind 'shift-down:transform:for _ in $(seq 1 $FZF_POS); do echo -n +toggle+down; done'1436 ```1437- Added `--with-shell` option to start child processes with a custom shell command and flags1438 ```sh1439 gem list | fzf --with-shell 'ruby -e' \1440 --preview 'pp Gem::Specification.find_by_name({1})' \1441 --bind 'ctrl-o:execute-silent:1442 spec = Gem::Specification.find_by_name({1})1443 [spec.homepage, *spec.metadata.filter { _1.end_with?("uri") }.values].uniq.each do1444 system "open", _11445 end1446 '1447 ```1448- Added `change-multi` action for dynamically changing `--multi` option1449 - `change-multi` - enable multi-select mode with no limit1450 - `change-multi(NUM)` - enable multi-select mode with a limit1451 - `change-multi(0)` - disable multi-select mode1452- Windows improvements1453 - `become` action is now supported on Windows1454 - Unlike in *nix, this does not use `execve(2)`. Instead it spawns a new process and waits for it to finish, so the exact behavior may differ.1455 - Fixed argument escaping for Windows cmd.exe. No redundant escaping of backslashes.1456- Bug fixes and improvements145714580.50.01459------1460- Search performance optimization. You can observe 50%+ improvement in some scenarios.1461 ```1462 $ rg --line-number --no-heading --smart-case . > $DATA14631464 $ wc < $DATA1465 5520118 26862362 89748779314661467 $ hyperfine -w 1 -L bin fzf-0.49.0,fzf-7ce6452,fzf-a5447b8,fzf '{bin} --filter "///" < $DATA | head -30'1468 Summary1469 fzf --filter "///" < $DATA | head -30 ran1470 1.16 ± 0.03 times faster than fzf-a5447b8 --filter "///" < $DATA | head -301471 1.23 ± 0.03 times faster than fzf-7ce6452 --filter "///" < $DATA | head -301472 1.52 ± 0.03 times faster than fzf-0.49.0 --filter "///" < $DATA | head -301473 ```1474- Added `jump` and `jump-cancel` events that are triggered when leaving `jump` mode1475 ```sh1476 # Default behavior1477 fzf --bind space:jump14781479 # Same as jump-accept action1480 fzf --bind space:jump,jump:accept14811482 # Accept on jump, abort on cancel1483 fzf --bind space:jump,jump:accept,jump-cancel:abort14841485 # Change header on jump-cancel1486 fzf --bind 'space:change-header(Type jump label)+jump,jump-cancel:change-header:Jump cancelled'1487 ```1488- Added a new environment variable `$FZF_KEY` exported to the child processes. It's the name of the last key pressed.1489 ```sh1490 fzf --bind 'space:jump,jump:accept,jump-cancel:transform:[[ $FZF_KEY =~ ctrl-c ]] && echo abort'1491 ```1492- fzf can be built with profiling options. See [BUILD.md](BUILD.md) for more information.1493- Bug fixes149414950.49.01496------1497- Ingestion performance improved by around 40% (more or less depending on options)1498- `--info=hidden` and `--info=inline-right` will no longer hide the horizontal separator by default. This gives you more flexibility in customizing the layout.1499 ```sh1500 fzf --border --info=inline-right1501 fzf --border --info=inline-right --separator ═1502 fzf --border --info=inline-right --no-separator1503 fzf --border --info=hidden1504 fzf --border --info=hidden --separator ━1505 fzf --border --info=hidden --no-separator1506 ```1507- Added two environment variables exported to the child processes1508 - `FZF_PREVIEW_LABEL`1509 - `FZF_BORDER_LABEL`1510 ```sh1511 # Use the current value of $FZF_PREVIEW_LABEL to determine which actions to perform1512 git ls-files |1513 fzf --header 'Press CTRL-P to change preview mode' \1514 --bind='ctrl-p:transform:[[ $FZF_PREVIEW_LABEL =~ cat ]] \1515 && echo "change-preview(git log --color=always \{})+change-preview-label([[ log ]])" \1516 || echo "change-preview(bat --color=always \{})+change-preview-label([[ cat ]])"'1517 ```1518- Renamed `track` action to `track-current` to highlight the difference between the global tracking state set by `--track` and a one-off tracking action1519 - `track` is still available as an alias1520- Added `untrack-current` and `toggle-track-current` actions1521 - `*-current` actions are no-op when the global tracking state is set1522- Bug fixes and minor improvements152315240.48.11525------1526- CTRL-T and ALT-C bindings can be disabled by setting `FZF_CTRL_T_COMMAND` and `FZF_ALT_C_COMMAND` to empty strings respectively when sourcing the script1527 ```sh1528 # bash1529 FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= eval "$(fzf --bash)"15301531 # zsh1532 FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= eval "$(fzf --zsh)"15331534 # fish1535 fzf --fish | FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= source1536 ```1537 - Setting the variables after sourcing the script will have no effect1538- Bug fixes153915400.48.01541------1542- Shell integration scripts are now embedded in the fzf binary. This simplifies the distribution, and the users are less likely to have problems caused by using incompatible scripts and binaries.1543 - bash1544 ```sh1545 # Set up fzf key bindings and fuzzy completion1546 eval "$(fzf --bash)"1547 ```1548 - zsh1549 ```sh1550 # Set up fzf key bindings and fuzzy completion1551 eval "$(fzf --zsh)"1552 ```1553 - fish1554 ```fish1555 # Set up fzf key bindings1556 fzf --fish | source1557 ```1558- Added options for customizing the behavior of the built-in walker1559 | Option | Description | Default |1560 | --- | --- | --- |1561 | `--walker=OPTS` | Walker options (`[file][,dir][,follow][,hidden]`) | `file,follow,hidden` |1562 | `--walker-root=DIR` | Root directory from which to start walker | `.` |1563 | `--walker-skip=DIRS` | Comma-separated list of directory names to skip | `.git,node_modules` |1564 - Examples1565 ```sh1566 # Built-in walker is only used by standalone fzf when $FZF_DEFAULT_COMMAND is not set1567 unset FZF_DEFAULT_COMMAND15681569 fzf # default: --walker=file,follow,hidden --walker-root=. --walker-skip=.git,node_modules1570 fzf --walker=file,dir,hidden,follow --walker-skip=.git,node_modules,target15711572 # Walker options in $FZF_DEFAULT_OPTS1573 export FZF_DEFAULT_OPTS="--walker=file,dir,hidden,follow --walker-skip=.git,node_modules,target"1574 fzf15751576 # Reading from STDIN; --walker is ignored1577 seq 100 | fzf --walker=dir15781579 # Reading from $FZF_DEFAULT_COMMAND; --walker is ignored1580 export FZF_DEFAULT_COMMAND='seq 100'1581 fzf --walker=dir1582 ```1583- Shell integration scripts have been updated to use the built-in walker with these new options and they are now much faster out of the box.158415850.47.01586------1587- Replaced ["the default find command"][find] with a built-in directory walker to simplify the code and to achieve better performance and consistent behavior across platforms.1588 This doesn't affect you if you have `$FZF_DEFAULT_COMMAND` set.1589 - Breaking changes:1590 - Unlike [the previous "find" command][find], the new traversal code will list hidden files, but hidden directories will still be ignored1591 - No filtering of `devtmpfs` or `proc` types1592 - Traversal is parallelized, so the order of the entries will be different each time1593 - You may wonder why fzf implements directory walker anyway when it's a filter program following the [Unix philosophy][unix].1594 But fzf has had [the walker code for years][walker] to tackle the performance problem on Windows. And I decided to use the same approach on different platforms as well for the benefits listed above.1595 - Built-in walker is using the excellent [charlievieth/fastwalk][fastwalk] library, which easily outperforms its competitors and supports safely following symlinks.1596- Added `$FZF_DEFAULT_OPTS_FILE` to allow managing default options in a file1597 - See [#3618](https://github.com/junegunn/fzf/pull/3618)1598 - Option precedence from lower to higher1599 1. Options read from `$FZF_DEFAULT_OPTS_FILE`1600 1. Options from `$FZF_DEFAULT_OPTS`1601 1. Options from command-line arguments1602- Bug fixes and improvements16031604[find]: https://github.com/junegunn/fzf/blob/0.46.1/src/constants.go#L60-L641605[walker]: https://github.com/junegunn/fzf/pull/18471606[fastwalk]: https://github.com/charlievieth/fastwalk1607[unix]: https://en.wikipedia.org/wiki/Unix_philosophy160816090.46.11610------1611- Bug fixes and improvements1612- Fixed Windows binaries1613- Downgraded Go version to 1.20 to support older versions of Windows1614 - https://tip.golang.org/doc/go1.21#windows1615- Updated [rivo/uniseg](https://github.com/rivo/uniseg) dependency to v0.4.6161616170.46.01618------1619- Added two new events1620 - `result` - triggered when the filtering for the current query is complete and the result list is ready1621 - `resize` - triggered when the terminal size is changed1622- fzf now exports the following environment variables to the child processes1623 | Variable | Description |1624 | --- | --- |1625 | `FZF_LINES` | Number of lines fzf takes up excluding padding and margin |1626 | `FZF_COLUMNS` | Number of columns fzf takes up excluding padding and margin |1627 | `FZF_TOTAL_COUNT` | Total number of items |1628 | `FZF_MATCH_COUNT` | Number of matched items |1629 | `FZF_SELECT_COUNT` | Number of selected items |1630 | `FZF_QUERY` | Current query string |1631 | `FZF_PROMPT` | Prompt string |1632 | `FZF_ACTION` | The name of the last action performed |1633 - This allows you to write sophisticated transformations like so1634 ```sh1635 # Script to dynamically resize the preview window1636 transformer='1637 # 1 line for info, another for prompt, and 2 more lines for preview window border1638 lines=$(( FZF_LINES - FZF_MATCH_COUNT - 4 ))1639 if [[ $FZF_MATCH_COUNT -eq 0 ]]; then1640 echo "change-preview-window:hidden"1641 elif [[ $lines -gt 3 ]]; then1642 echo "change-preview-window:$lines"1643 elif [[ $FZF_PREVIEW_LINES -ne 3 ]]; then1644 echo "change-preview-window:3"1645 fi1646 '1647 seq 10000 | fzf --preview 'seq {} 10000' --preview-window up \1648 --bind "result:transform:$transformer" \1649 --bind "resize:transform:$transformer"1650 ```1651 - And we're phasing out `{fzf:prompt}` and `{fzf:action}`1652- Changed [mattn/go-runewidth](https://github.com/mattn/go-runewidth) dependency to [rivo/uniseg](https://github.com/rivo/uniseg) for accurate results1653 - Set `--ambidouble` if your terminal displays ambiguous width characters (e.g. box-drawing characters for borders) as 2 columns1654 - `RUNEWIDTH_EASTASIAN=1` is still respected for backward compatibility, but it's recommended that you use this new option instead1655- Bug fixes165616570.45.01658------1659- Added `transform` action to conditionally perform a series of actions1660 ```sh1661 # Disallow selecting an empty line1662 echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |1663 fzf --height '~100%' --reverse --header 'Select one' \1664 --bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"'16651666 # Move cursor past the empty line1667 echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |1668 fzf --height '~100%' --reverse --header 'Select one' \1669 --bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"' \1670 --bind 'focus:transform:[[ -n {} ]] && exit; [[ {fzf:action} =~ up$ ]] && echo up || echo down'16711672 # A single key binding to toggle between modes1673 fd --type file |1674 fzf --prompt 'Files> ' \1675 --header 'CTRL-T: Switch between Files/Directories' \1676 --bind 'ctrl-t:transform:[[ ! {fzf:prompt} =~ Files ]] &&1677 echo "change-prompt(Files> )+reload(fd --type file)" ||1678 echo "change-prompt(Directories> )+reload(fd --type directory)"'1679 ```1680- Added placeholder expressions1681 - `{fzf:action}` - The name of the last action performed1682 - `{fzf:prompt}` - Prompt string (including ANSI color codes)1683 - `{fzf:query}` - Synonym for `{q}`1684- Added support for negative height1685 ```sh1686 # Terminal height minus 1, so you can still see the command line1687 fzf --height=-11688 ```1689 - This handles a terminal resize better than `--height=$(($(tput lines) - 1))`1690- Added `accept-or-print-query` action that acts like `accept` but prints the1691 current query when there's no match for the query1692 ```sh1693 # You can make CTRL-R paste the current query when there's no match1694 export FZF_CTRL_R_OPTS='--bind enter:accept-or-print-query'1695 ```1696 - Note that there are alternative ways to implement the same strategy1697 ```sh1698 # 'become' is apparently more versatile but it's not available on Windows.1699 export FZF_CTRL_R_OPTS='--bind "enter:become:if [ -z {} ]; then echo {q}; else echo {}; fi"'17001701 # Using the new 'transform' action1702 export FZF_CTRL_R_OPTS='--bind "enter:transform:[ -z {} ] && echo print-query || echo accept"'1703 ```1704- Added `show-header` and `hide-header` actions1705- Bug fixes170617070.44.11708------1709- Fixed crash when preview window is hidden on `focus` event171017110.44.01712------1713- (Experimental) Sixel image support in preview window (not available on Windows)1714 - [bin/fzf-preview.sh](bin/fzf-preview.sh) is added to demonstrate how to1715 display an image using Kitty image protocol or Sixel. You can use it1716 like so:1717 ```sh1718 fzf --preview='fzf-preview.sh {}'1719 ```1720- (Experimental) iTerm2 inline image protocol support in preview window (not available on Windows)1721 ```sh1722 # Using https://iterm2.com/utilities/imgcat1723 fzf --preview 'imgcat -W $FZF_PREVIEW_COLUMNS -H $FZF_PREVIEW_LINES {}'1724 ```1725- HTTP server can be configured to accept remote connections1726 ```sh1727 # FZF_API_KEY is required for a non-localhost listen address1728 export FZF_API_KEY="$(head -c 32 /dev/urandom | base64)"1729 fzf --listen 0.0.0.0:62661730 ```1731 - To allow remote process execution, use `--listen-unsafe` instead1732 (`execute*`, `reload*`, `become`, `preview`, `change-preview`, `transform-*`)1733 ```sh1734 fzf --listen-unsafe 0.0.0.0:62661735 ```1736- Bug fixes173717380.43.01739------1740- (Experimental) Added support for Kitty image protocol in the preview window1741 (not available on Windows)1742 ```sh1743 fzf --preview='1744 if file --mime-type {} | grep -qF image/; then1745 # --transfer-mode=memory is the fastest option but if you want fzf to be able1746 # to redraw the image on terminal resize or on 'change-preview-window',1747 # you need to use --transfer-mode=stream.1748 kitty icat --clear --transfer-mode=memory --unicode-placeholder --stdin=no --place=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}@0x0 {} | sed \$d1749 else1750 bat --color=always {}1751 fi1752 '1753 ```1754- (Experimental) `--listen` server can report program state in JSON format (`GET /`)1755 ```sh1756 # fzf server started in "headless" mode1757 fzf --listen 6266 2> /dev/null17581759 # Get program state1760 curl localhost:6266 | jq .17611762 # Increase the number of items returned (default: 100)1763 curl localhost:6266?limit=1000 | jq .1764 ```1765- `--listen` server can be secured by setting `$FZF_API_KEY` environment1766 variable.1767 ```sh1768 export FZF_API_KEY="$(head -c 32 /dev/urandom | base64)"17691770 # Server1771 fzf --listen 626617721773 # Client1774 curl localhost:6266 -H "x-api-key: $FZF_API_KEY" -d 'change-query(yo)'1775 ```1776- Added `toggle-header` action1777- Added mouse events for `--bind`1778 - `scroll-up` (bound to `up`)1779 - `scroll-down` (bound to `down`)1780 - `shift-scroll-up` (bound to `toggle+up`)1781 - `shift-scroll-down` (bound to `toggle+down`)1782 - `shift-left-click` (bound to `toggle`)1783 - `shift-right-click` (bound to `toggle`)1784 - `preview-scroll-up` (bound to `preview-up`)1785 - `preview-scroll-down` (bound to `preview-down`)1786 ```sh1787 # Twice faster scrolling both in the main window and the preview window1788 fzf --bind 'scroll-up:up+up,scroll-down:down+down' \1789 --bind 'preview-scroll-up:preview-up+preview-up' \1790 --bind 'preview-scroll-down:preview-down+preview-down' \1791 --preview 'cat {}'1792 ```1793- Added `offset-up` and `offset-down` actions1794 ```sh1795 # Scrolling will behave similarly to CTRL-E and CTRL-Y of vim1796 fzf --bind scroll-up:offset-up,scroll-down:offset-down \1797 --bind ctrl-y:offset-up,ctrl-e:offset-down \1798 --scroll-off=51799 ```1800- Shell extensions1801 - Updated bash completion for fzf options1802 - bash key bindings no longer requires perl; it will use awk or mawk1803 instead if perl is not found1804 - Basic context-aware completion for ssh command1805 - Applied `--scheme=path` for better ordering of the result1806- Bug fixes and improvements180718080.42.01809------1810- Added new info style: `--info=right`1811- Added new info style: `--info=inline-right`1812- Added new border style `thinblock` which uses symbols for legacy computing1813 [one eighth block elements](https://en.wikipedia.org/wiki/Symbols_for_Legacy_Computing)1814 - Similarly to `block`, this style is suitable when using a different1815 background color because the window is completely contained within the border.1816 ```sh1817 BAT_THEME=GitHub fzf --info=right --border=thinblock --preview-window=border-thinblock \1818 --margin=3 --scrollbar=▏▕ --preview='bat --color=always --style=numbers {}' \1819 --color=light,query:238,fg:238,bg:251,bg+:249,gutter:251,border:248,preview-bg:2531820 ```1821 - This style may not render correctly depending on the font and the1822 terminal emulator.182318240.41.11825------1826- Fixed a bug where preview window is not updated when `--disabled` is set and1827 a reload is triggered by `change:reload` binding182818290.41.01830------1831- Added color name `preview-border` and `preview-scrollbar`1832- Added new border style `block` which uses [block elements](https://en.wikipedia.org/wiki/Block_Elements)1833- `--scrollbar` can take two characters, one for the main window, the other1834 for the preview window1835- Putting it altogether:1836 ```sh1837 fzf-tmux -p 80% --padding 1,2 --preview 'bat --style=plain --color=always {}' \1838 --color 'bg:237,bg+:235,gutter:237,border:238,scrollbar:236' \1839 --color 'preview-bg:235,preview-border:236,preview-scrollbar:234' \1840 --preview-window 'border-block' --border block --scrollbar '▌▐'1841 ```1842- Bug fixes and improvements184318440.40.01845------1846- Added `zero` event that is triggered when there's no match1847 ```sh1848 # Reload the candidate list when there's no match1849 echo $RANDOM | fzf --bind 'zero:reload(echo $RANDOM)+clear-query' --height 31850 ```1851- New actions1852 - Added `track` action which makes fzf track the current item when the1853 search result is updated. If the user manually moves the cursor, or the1854 item is not in the updated search result, tracking is automatically1855 disabled. Tracking is useful when you want to see the surrounding items1856 by deleting the query string.1857 ```sh1858 # Narrow down the list with a query, point to a command,1859 # and hit CTRL-T to see its surrounding commands.1860 export FZF_CTRL_R_OPTS="1861 --preview 'echo {}' --preview-window up:3:hidden:wrap1862 --bind 'ctrl-/:toggle-preview'1863 --bind 'ctrl-t:track+clear-query'1864 --bind 'ctrl-y:execute-silent(echo -n {2..} | pbcopy)+abort'1865 --color header:italic1866 --header 'Press CTRL-Y to copy command into clipboard'"1867 ```1868 - Added `change-header(...)`1869 - Added `transform-header(...)`1870 - Added `toggle-track` action1871- Fixed `--track` behavior when used with `--tac`1872 - However, using `--track` with `--tac` is not recommended. The resulting1873 behavior can be very confusing.1874- Bug fixes and improvements187518760.39.01877------1878- Added `one` event that is triggered when there's only one match1879 ```sh1880 # Automatically select the only match1881 seq 10 | fzf --bind one:accept1882 ```1883- Added `--track` option that makes fzf track the current selection when the1884 result list is updated. This can be useful when browsing logs using fzf with1885 sorting disabled.1886 ```sh1887 git log --oneline --graph --color=always | nl |1888 fzf --ansi --track --no-sort --layout=reverse-list1889 ```1890- If you use `--listen` option without a port number fzf will automatically1891 allocate an available port and export it as `$FZF_PORT` environment1892 variable.1893 ```sh1894 # Automatic port assignment1895 fzf --listen --bind 'start:execute-silent:echo $FZF_PORT > /tmp/fzf-port'18961897 # Say hello1898 curl "localhost:$(cat /tmp/fzf-port)" -d 'preview:echo Hello, fzf is listening on $FZF_PORT.'1899 ```1900- A carriage return and a line feed character will be rendered as dim ␍ and1901 ␊ respectively.1902 ```sh1903 printf "foo\rbar\nbaz" | fzf --read0 --preview 'echo {}'1904 ```1905- fzf will stop rendering a non-displayable characters as a space. This will1906 likely cause less glitches in the preview window.1907 ```sh1908 fzf --preview 'head -1000 /dev/random'1909 ```1910- Bug fixes and improvements191119120.38.01913------1914- New actions1915 - `become(...)` - Replace the current fzf process with the specified1916 command using `execve(2)` system call.1917 See https://github.com/junegunn/fzf#turning-into-a-different-process for1918 more information.1919 ```sh1920 # Open selected files in Vim1921 fzf --multi --bind 'enter:become(vim {+})'19221923 # Open the file in Vim and go to the line1924 git grep --line-number . |1925 fzf --delimiter : --nth 3.. --bind 'enter:become(vim {1} +{2})'1926 ```1927 - This action is not supported on Windows1928 - `show-preview`1929 - `hide-preview`1930- Bug fixes1931 - `--preview-window 0,hidden` should not execute the preview command until1932 `toggle-preview` action is triggered193319340.37.01935------1936- Added a way to customize the separator of inline info1937 ```sh1938 fzf --info 'inline: ╱ ' --prompt '╱ ' --color prompt:bright-yellow1939 ```1940- New event1941 - `focus` - Triggered when the focus changes due to a vertical cursor1942 movement or a search result update1943 ```sh1944 fzf --bind 'focus:transform-preview-label:echo [ {} ]' --preview 'cat {}'19451946 # Any action bound to the event runs synchronously and thus can make the interface sluggish1947 # e.g. lolcat isn't one of the fastest programs, and every cursor movement in1948 # fzf will be noticeably affected by its execution time1949 fzf --bind 'focus:transform-preview-label:echo [ {} ] | lolcat -f' --preview 'cat {}'19501951 # Beware not to introduce an infinite loop1952 seq 10 | fzf --bind 'focus:up' --cycle1953 ```1954- New actions1955 - `change-border-label`1956 - `change-preview-label`1957 - `transform-border-label`1958 - `transform-preview-label`1959- Bug fixes and improvements196019610.36.01962------1963- Added `--listen=HTTP_PORT` option to start HTTP server. It allows external1964 processes to send actions to perform via POST method.1965 ```sh1966 # Start HTTP server on port 62661967 fzf --listen 626619681969 # Send actions to the server1970 curl -XPOST localhost:6266 -d 'reload(seq 100)+change-prompt(hundred> )'1971 ```1972- Added draggable scrollbar to the main search window and the preview window1973 ```sh1974 # Hide scrollbar1975 fzf --no-scrollbar19761977 # Customize scrollbar1978 fzf --scrollbar ┆ --color scrollbar:blue1979 ```1980- New event1981 - Added `load` event that is triggered when the input stream is complete1982 and the initial processing of the list is complete.1983 ```sh1984 # Change the prompt to "loaded" when the input stream is complete1985 (seq 10; sleep 1; seq 11 20) | fzf --prompt 'Loading> ' --bind 'load:change-prompt:Loaded> '19861987 # You can use it instead of 'start' event without `--sync` if asynchronous1988 # trigger is not an issue.1989 (seq 10; sleep 1; seq 11 20) | fzf --bind 'load:last'1990 ```1991- New actions1992 - Added `pos(...)` action to move the cursor to the numeric position1993 - `first` and `last` are equivalent to `pos(1)` and `pos(-1)` respectively1994 ```sh1995 # Put the cursor on the 10th item1996 seq 100 | fzf --sync --bind 'start:pos(10)'19971998 # Put the cursor on the 10th to last item1999 seq 100 | fzf --sync --bind 'start:pos(-10)'2000 ```

The first 2,000 of 3,472 lines.